A feature-rich command-line audio/video downloader
[cleanup] Misc (#12844)
sepro505b400795af
diff --git a/.github/workflows/core.yml b/.github/workflows/core.ymlindex 9a4342a585..dd2c6f481e 100644--- a/.github/workflows/core.yml+++ b/.github/workflows/core.yml@@ -6,7 +6,7 @@ on:- devscripts/**- test/**- yt_dlp/**.py- - '!yt_dlp/extractor/*.py'+ - '!yt_dlp/extractor/**.py'- yt_dlp/extractor/__init__.py- yt_dlp/extractor/common.py- yt_dlp/extractor/extractors.py@@ -16,7 +16,7 @@ on:- devscripts/**- test/**- yt_dlp/**.py- - '!yt_dlp/extractor/*.py'+ - '!yt_dlp/extractor/**.py'- yt_dlp/extractor/__init__.py- yt_dlp/extractor/common.py- yt_dlp/extractor/extractors.pydiff --git a/README.md b/README.mdindex d7d3ce3495..e8d4a1fe81 100644--- a/README.md+++ b/README.md@@ -386,6 +386,12 @@ If you fork the project on GitHub, you can run your fork's [build workflow](.gitrecursive options. As a safety measure, eachalias may be triggered a maximum of 100times. This option can be used multiple times+ -t, --preset-alias PRESET Applies a predefined set of options. e.g.+ --preset-alias mp3. The following presets+ are available: mp3, aac, mp4, mkv, sleep.+ See the "Preset Aliases" section at the end+ for more info. This option can be used+ multiple times## Network Options:--proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To@@ -1098,6 +1104,23 @@ Make chapter entries for, or remove various segments (sponsor,can use this option multiple times to givearguments for different extractors+## Preset Aliases:+ -t mp3 -f 'ba[acodec^=mp3]/ba/b' -x --audio-format+ mp3++ -t aac -f+ 'ba[acodec^=aac]/ba[acodec^=mp4a.40.]/ba/b'+ -x --audio-format aac++ -t mp4 --merge-output-format mp4 --remux-video mp4+ -S vcodec:h264,lang,quality,res,fps,hdr:12,a+ codec:aac++ -t mkv --merge-output-format mkv --remux-video mkv++ -t sleep --sleep-subtitles 5 --sleep-requests 0.75+ --sleep-interval 10 --max-sleep-interval 20+# CONFIGURATIONYou can configure yt-dlp by placing any supported command line option in a configuration file. The configuration is loaded from the following locations:@@ -2150,7 +2173,7 @@ with yt_dlp.YoutubeDL(ydl_opts) as ydl:* **[Format Sorting](#sorting-formats)**: The default format sorting options have been changed so that higher resolution and better codecs will be now preferred instead of simply using larger bitrate. Furthermore, you can now specify the sort order using `-S`. This allows for much easier format selection than what is possible by simply using `--format` ([examples](#format-selection-examples))-* **Merged with animelover1984/youtube-dl**: You get most of the features and improvements from [animelover1984/youtube-dl](https://github.com/animelover1984/youtube-dl) including `--write-comments`, `BiliBiliSearch`, `BilibiliChannel`, Embedding thumbnail in mp4/ogg/opus, playlist infojson etc. Note that NicoNico livestreams are not available. See [#31](https://github.com/yt-dlp/yt-dlp/pull/31) for details.+* **Merged with animelover1984/youtube-dl**: You get most of the features and improvements from [animelover1984/youtube-dl](https://github.com/animelover1984/youtube-dl) including `--write-comments`, `BiliBiliSearch`, `BilibiliChannel`, Embedding thumbnail in mp4/ogg/opus, playlist infojson etc. See [#31](https://github.com/yt-dlp/yt-dlp/pull/31) for details.* **YouTube improvements**:* Supports Clips, Stories (`ytstories:<channel UCID>`), Search (including filters)**\***, YouTube Music Search, Channel-specific search, Search prefixes (`ytsearch:`, `ytsearchdate:`)**\***, Mixes, and Feeds (`:ytfav`, `:ytwatchlater`, `:ytsubs`, `:ythistory`, `:ytrec`, `:ytnotif`)diff --git a/devscripts/changelog_override.json b/devscripts/changelog_override.jsonindex 8aa7b7e2bc..269de2c682 100644--- a/devscripts/changelog_override.json+++ b/devscripts/changelog_override.json@@ -245,5 +245,14 @@"when": "76ac023ff02f06e8c003d104f02a03deeddebdcd","short": "[ie/youtube:tab] Improve shorts title extraction (#11997)","authors": ["bashonly", "d3d9"]+ },+ {+ "action": "add",+ "when": "88eb1e7a9a2720ac89d653c0d0e40292388823bb",+ "short": "[priority] **New option `--preset-alias`/`-t` has been added**\nThis provides convenient predefined aliases for common use cases. Available presets include `mp4`, `mp3`, `mkv`, `aac`, and `sleep`. See [the README](https://github.com/yt-dlp/yt-dlp/blob/master/README.md#preset-aliases) for more details."+ },+ {+ "action": "remove",+ "when": "d596824c2f8428362c072518856065070616e348"}]diff --git a/yt_dlp/update.py b/yt_dlp/update.pyindex 8e887ec031..de289cb780 100644--- a/yt_dlp/update.py+++ b/yt_dlp/update.py@@ -202,7 +202,7 @@ class UpdateInfo:requested_version: str | None = Nonecommit: str | None = None- binary_name: str | None = _get_binary_name() # noqa: RUF009: Always returns the same value+ binary_name: str | None = _get_binary_name() # noqa: RUF009 # Always returns the same valuechecksum: str | None = Nonediff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.pyindex 99d7250876..20aa341ca3 100644--- a/yt_dlp/utils/_utils.py+++ b/yt_dlp/utils/_utils.py@@ -54,7 +54,7 @@ from ..compat import (from ..dependencies import xattrfrom ..globals import IN_CLI-__name__ = __name__.rsplit('.', 1)[0] # noqa: A001: Pretend to be the parent module+__name__ = __name__.rsplit('.', 1)[0] # noqa: A001 # Pretend to be the parent moduleclass NO_DEFAULT: