Commit Graph

194 Commits (45db357289b4e1eec09093c8bc5446520378f426)

Author SHA1 Message Date
pukkandan a538772969
[cleanup] Misc
Closes 
Chris Caruso f737fb16d8
[ExtractAudio] Handle outtmpl without ext ()
Authored by: carusocr
Closes 
pukkandan d80ca5deaa
[utils] `mimetype2ext`: weba is not standard
Fix bug in fbb7383306, 2647c933b8
Closes 
pukkandan 08e29b9f1f
[cleanup] Misc
Closes , closes 
Matthew 8e40b9d1ec
Improve plugin architecture ()
to make plugins easier to develop and use:
* Plugins are now loaded as namespace packages.
* Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.).
* Plugin packages can be installed and managed via pip, or dropped into any of the documented locations.
* Users do not need to edit any code files to install plugins.
* Backwards-compatible with previous plugin architecture.

As a side-effect, yt-dlp will now search in a few more locations for config files.

Closes https://github.com/yt-dlp/yt-dlp/issues/1389

Authored by: flashdagger, coletdjnz, pukkandan, Grub4K
Co-authored-by: Marcel <flashdagger@googlemail.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
pukkandan 69f5fe45b9
[FFmpegVideoConvertor] Add `gif` to `--recode-video`
Robert Geislinger 7aaf4cd2a8
[cleanup] Misc
Closes , Closes 

Authored by: pukkandan, Alienmaster
pukkandan 8522226d2f
[ThumbnailsConvertor] Fix filename escaping
Closes 
Authored by: pukkandan, dirkf
ClosedPort22 fbb0ee7747
[compat] Fix `shutils.move` in restricted ACL mode on BSD ()
Authored by: ClosedPort22, pukkandan
pukkandan d5d1df8afd
[cleanup Misc
Closes 
pukkandan cd5df121f3
[SponsorBlock] Relax duration check for large segments
pukkandan a7ddbc0475
[ModifyChapters] Handle the entire video being marked for removal
Closes 
pukkandan 8fab23301c
[SponsorBlock] Obey `--retry-sleep extractor`
pukkandan 1338ae3ba3
[SponsorBlock] Add `type` field
Ajay Ramachandran 63c547d71c
[SponsorBlock] Support `chapter` category ()
Authored by: ajayyy, pukkandan
Noah e02e6d86db
[embedthumbnail] Fix thumbnail name in mp3 ()
Authored by: How-Bout-No
pukkandan da4db748fa
[utils] Add `deprecation_warning`
See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
pukkandan 0e0ce898f6
[ThumbnailsConvertor] Fix conversion after fixup_webp
Closes 
pukkandan 8420a4d063
[ffmpeg] Smarter detection of ffprobe filename
pukkandan b5e9a641f5
[postprocessor/embedthumbnail] Detect libatomicparsley.so
pukkandan c220d9efc8
[ffmpeg] Disable avconv unless `--prefer-avconv`
pukkandan be5c1ae862
Standardize retry mechanism ()
* [utils] Create `RetryManager`
* Migrate all retries to use the manager
* [extractor] Add wrapper methods for convenience
* Standardize console messages for retries
* Add `--retry-sleep` for extractors
pukkandan 5f2a7f7c4a
[FFmpegThumbnailsConvertor] Fix conversion from GIF
Closes 
pukkandan 4f04be6add
Validate `--merge-output-format`
Closes 
pukkandan 8dc5930511
[utils, cleanup] Consolidate known media extensions
pukkandan 6a7d3a0a09
[ffmpeg] Set `ffmpeg_location` in a contextvar
Fixes  for the CLI, but not when used through the API
pukkandan 4f547d6d2c
[metadataparser] Don't set `None` when the field didn't match
Fixes: https://github.com/ytdl-org/youtube-dl/issues/31118#issuecomment-1198254512
pukkandan 3bec830a59
Reject entire playlists faster with `--match-filter`
Rejected based on `playlist_id` etc can be checked before any entries are extracted

Related: 
pukkandan 4019bf0525
[ModifyChapters] Modify duration in infodict
pukkandan f2df407165
[cleanup] Misc cleanup
crazymoose77756 962ffcf89c
[cleanup] Fix some typos ()
Authored by: crazymoose77756
pukkandan 14f25df2b6
[compat] Remove deprecated functions from core code
pukkandan f67baae17e
[ffmpeg] Write full output to debug on error
Bug in f0c9fb9682
christoph-heinrich e121e3cee7
[cleanup] Minor fixes ()
Authored by: christoph-heinrich
pukkandan f0c9fb9682
[utils] `Popen`: Refactor to use contextmanager
Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
pukkandan 56ba69e4c9
[cleanup] Misc fixes
Closes 
pukkandan e0ab98541c
[ExtractAudio] Allow conditional conversion
Closes 
pukkandan 35faefee5d
[ExtractAudio, cleanup] Refactor
pukkandan 00bbc5f177
[ThumbnailsConvertor] Allow conditional conversion
Closes 
pukkandan 1890fc6389
[cleanup] Misc fixes
Cherry-picks from: , 
Related: , https://github.com/yt-dlp/yt-dlp/issues/1839#issuecomment-1140313836
Authored by: pukkandan, flashdagger, gamer191
pukkandan 8a82af3511
[cleanup] Misc fixes and cleanup
Closes , Closes , Closes 
pukkandan d9473db78a
[ModifyChapters] Fix repeated removal of small segments
Closes 
pukkandan 3a85e9cee9
[ffmpeg] Check version lazily
Closes 
pukkandan 5792c950bf
[compat] Implement `compat.imghdr`
Python 3.11 deprecates `imghdr` module
pukkandan 0f06bcd759
[cleanup] Minor fixes (See desc)
* [youtube] Fix `--youtube-skip-dash-manifest`
* [build] Use `$()` in `Makefile`. Closes 
* Fix bug in 385ffb467b
* Fix bug in 43d7f5a5d0
* [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode`
* [utils] LazyList: Expose unnecessarily "protected" attributes
and other minor cleanup
pukkandan 6f7563beb7
[XAttrMetadata] Refactor and document dependencies
pukkandan 43d7f5a5d0
[EmbedThumbnail] Do not obey `-k`
pukkandan 1d485a1a79
[cleanup] Misc fixes
Closes , https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
pukkandan e13945a2fe
[ffmpeg] Fix features detection
pukkandan ca04e1bf49
[Metadata] Remove filename from attached info-json