From 7b9b8512e93974beb746a3cb1ec7e405f2d0e2b6 Mon Sep 17 00:00:00 2001 From: bashonly Date: Tue, 11 Nov 2025 23:35:12 -0600 Subject: [PATCH 01/14] [changelog-override] sepro => seproDev Authored by: bashonly --- devscripts/changelog_override.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devscripts/changelog_override.json b/devscripts/changelog_override.json index ba3f9518fb..ae4c1ade38 100644 --- a/devscripts/changelog_override.json +++ b/devscripts/changelog_override.json @@ -319,5 +319,11 @@ "action": "add", "when": "6224a3898821965a7d6a2cb9cc2de40a0fd6e6bc", "short": "[priority] **An external JavaScript runtime is now required for full YouTube support**\nyt-dlp now requires users to have an external JavaScript runtime (e.g. Deno) installed in order to solve the JavaScript challenges presented by YouTube. [Read more](https://github.com/yt-dlp/yt-dlp/issues/15012)" + }, + { + "action": "change", + "when": "c63b4e2a2b81cc78397c8709ef53ffd29bada213", + "short": "[cleanup] Misc (#14767)", + "authors": ["bashonly", "seproDev", "matyb08"] } ] From 7f3709275633cf4c1df546ace63ebf36e9c3285a Mon Sep 17 00:00:00 2001 From: sepro Date: Wed, 12 Nov 2025 22:18:51 +0100 Subject: [PATCH 02/14] sepro -> seproDev --- CONTRIBUTORS | 1 - Changelog.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 51369b35b6..fcd311ecbc 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -828,7 +828,6 @@ krystophny matyb08 pha1n0q PierceLBrooks -sepro TheQWERTYCodr thomasmllt w4grfw diff --git a/Changelog.md b/Changelog.md index b115fd045c..95d1ff9bed 100644 --- a/Changelog.md +++ b/Changelog.md @@ -64,7 +64,7 @@ yt-dlp now requires users to have an external JavaScript runtime (e.g. Deno) ins - **build**: [Bump musllinux Python version to 3.14](https://github.com/yt-dlp/yt-dlp/commit/646904cd3a79429ec5fdc43f904b3f57ae213f34) ([#14623](https://github.com/yt-dlp/yt-dlp/issues/14623)) by [bashonly](https://github.com/bashonly) - **cleanup** - Miscellaneous - - [c63b4e2](https://github.com/yt-dlp/yt-dlp/commit/c63b4e2a2b81cc78397c8709ef53ffd29bada213) by [bashonly](https://github.com/bashonly), [matyb08](https://github.com/matyb08), [sepro](https://github.com/sepro) + - [c63b4e2](https://github.com/yt-dlp/yt-dlp/commit/c63b4e2a2b81cc78397c8709ef53ffd29bada213) by [bashonly](https://github.com/bashonly), [matyb08](https://github.com/matyb08), [seproDev](https://github.com/seproDev) - [335653b](https://github.com/yt-dlp/yt-dlp/commit/335653be82d5ef999cfc2879d005397402eebec1) by [bashonly](https://github.com/bashonly), [seproDev](https://github.com/seproDev) - **devscripts**: [Improve `install_deps` script](https://github.com/yt-dlp/yt-dlp/commit/73922e66e437fb4bb618bdc119a96375081bf508) ([#14766](https://github.com/yt-dlp/yt-dlp/issues/14766)) by [bashonly](https://github.com/bashonly) - **test**: [Skip flaky tests if source unchanged](https://github.com/yt-dlp/yt-dlp/commit/ade8c2b36ff300edef87d48fd1ba835ac35c5b63) ([#14970](https://github.com/yt-dlp/yt-dlp/issues/14970)) by [bashonly](https://github.com/bashonly), [Grub4K](https://github.com/Grub4K) From b52f70170915e895b6867c9bfea0e3dfb593d7a9 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sun, 16 Nov 2025 12:33:44 -0600 Subject: [PATCH 03/14] [devscripts] `make_changelog`: Extend regex for fix commits Authored by: bashonly --- devscripts/make_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devscripts/make_changelog.py b/devscripts/make_changelog.py index 88dbf74e4f..71760c84d0 100644 --- a/devscripts/make_changelog.py +++ b/devscripts/make_changelog.py @@ -251,7 +251,7 @@ class CommitRange: ''', re.VERBOSE | re.DOTALL) EXTRACTOR_INDICATOR_RE = re.compile(r'(?:Fix|Add)\s+Extractors?', re.IGNORECASE) REVERT_RE = re.compile(r'(?:\[[^\]]+\]\s+)?(?i:Revert)\s+([\da-f]{40})') - FIXES_RE = re.compile(r'(?i:(?:bug\s*)?fix(?:es)?(?:\s+bugs?)?(?:\s+in|\s+for)?|Improve)\s+([\da-f]{40})') + FIXES_RE = re.compile(r'(?i:(?:bug\s*)?fix(?:es)?(?:\s+(?:bugs?|regression(?:\s+introduced)?))?(?:\s+(?:in|for|from|by))?|Improve)\s+([\da-f]{40})') UPSTREAM_MERGE_RE = re.compile(r'Update to ytdl-commit-([\da-f]+)') def __init__(self, start, end, default_author=None): From 751125ad794bccd77cfd1b1cce054925563f47a2 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sun, 16 Nov 2025 12:45:33 -0600 Subject: [PATCH 04/14] [devscripts] `make_changelog`: Make regex readable Fix regression introduced in b52f70170915e895b6867c9bfea0e3dfb593d7a9 Authored by: bashonly --- devscripts/make_changelog.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devscripts/make_changelog.py b/devscripts/make_changelog.py index 71760c84d0..7b42f06607 100644 --- a/devscripts/make_changelog.py +++ b/devscripts/make_changelog.py @@ -251,7 +251,13 @@ class CommitRange: ''', re.VERBOSE | re.DOTALL) EXTRACTOR_INDICATOR_RE = re.compile(r'(?:Fix|Add)\s+Extractors?', re.IGNORECASE) REVERT_RE = re.compile(r'(?:\[[^\]]+\]\s+)?(?i:Revert)\s+([\da-f]{40})') - FIXES_RE = re.compile(r'(?i:(?:bug\s*)?fix(?:es)?(?:\s+(?:bugs?|regression(?:\s+introduced)?))?(?:\s+(?:in|for|from|by))?|Improve)\s+([\da-f]{40})') + FIXES_RE = re.compile(r''' + (?i: + (?:bug\s*)?fix(?:es)?(?: + \s+(?:bugs?|regression(?:\s+introduced)?) + )?(?:\s+(?:in|for|from|by))? + |Improve + )\s+([\da-f]{40})''', re.VERBOSE) UPSTREAM_MERGE_RE = re.compile(r'Update to ytdl-commit-([\da-f]+)') def __init__(self, start, end, default_author=None): From 0310a688f37fab17a3486494e38a7422e5221414 Mon Sep 17 00:00:00 2001 From: bashonly Date: Fri, 28 Nov 2025 23:53:58 -0600 Subject: [PATCH 05/14] =?UTF-8?q?bump=20`actions/checkout`=20v5=20?= =?UTF-8?q?=E2=86=92=20v6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authored by: bashonly --- .github/workflows/build.yml | 8 ++++---- .github/workflows/challenge-tests.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/core.yml | 2 +- .github/workflows/download.yml | 4 ++-- .github/workflows/quick-test.yml | 4 ++-- .github/workflows/release-nightly.yml | 2 +- .github/workflows/release.yml | 6 +++--- .github/workflows/test-workflows.yml | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7487f1c2f..1fa56176b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -196,7 +196,7 @@ jobs: UPDATE_TO: yt-dlp/yt-dlp@2025.09.05 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 # Needed for changelog @@ -257,7 +257,7 @@ jobs: SKIP_ONEFILE_BUILD: ${{ (!matrix.onefile && '1') || '' }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Cache requirements if: matrix.cache_requirements @@ -320,7 +320,7 @@ jobs: UPDATE_TO: yt-dlp/yt-dlp@2025.09.05 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 # NB: Building universal2 does not work with python from actions/setup-python - name: Cache requirements @@ -450,7 +450,7 @@ jobs: PYI_WHEEL: pyinstaller-${{ matrix.pyi_version }}-py3-none-${{ matrix.platform_tag }}.whl steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python_version }} diff --git a/.github/workflows/challenge-tests.yml b/.github/workflows/challenge-tests.yml index 89895eb07b..c94b23c584 100644 --- a/.github/workflows/challenge-tests.yml +++ b/.github/workflows/challenge-tests.yml @@ -35,7 +35,7 @@ jobs: env: QJS_VERSION: '2025-04-26' # Earliest version with rope strings steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6d4dbdf193..811832146e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 3cb17f2b7d..fd35d67d12 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -55,7 +55,7 @@ jobs: - os: windows-latest python-version: pypy-3.11 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index d075270d7b..4b4c93f072 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -9,7 +9,7 @@ jobs: if: "contains(github.event.head_commit.message, 'ci run dl')" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -36,7 +36,7 @@ jobs: - os: windows-latest python-version: pypy-3.11 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: diff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.yml index a6e84b1d80..62b7a2ddba 100644 --- a/.github/workflows/quick-test.yml +++ b/.github/workflows/quick-test.yml @@ -9,7 +9,7 @@ jobs: if: "!contains(github.event.head_commit.message, 'ci skip all')" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python 3.10 uses: actions/setup-python@v6 with: @@ -26,7 +26,7 @@ jobs: if: "!contains(github.event.head_commit.message, 'ci skip all')" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: '3.10' diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 26be60fe61..ac7e8cc675 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -12,7 +12,7 @@ jobs: outputs: commit: ${{ steps.check_for_new_commits.outputs.commit }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Check for new commits diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afe1d384b4..5efeced287 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,7 @@ jobs: head_sha: ${{ steps.get_target.outputs.head_sha }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 @@ -170,7 +170,7 @@ jobs: id-token: write # mandatory for trusted publishing steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - uses: actions/setup-python@v6 @@ -233,7 +233,7 @@ jobs: VERSION: ${{ needs.prepare.outputs.version }} HEAD_SHA: ${{ needs.prepare.outputs.head_sha }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 - uses: actions/download-artifact@v5 diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index d39ab8814b..b98590e49d 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -26,7 +26,7 @@ jobs: name: Check workflows runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: "3.10" # Keep this in sync with release.yml's prepare job From d2d8c546a1578cc63835fd942e32b2b3994e4747 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 00:49:15 -0600 Subject: [PATCH 06/14] [docs] `Maintainers.md`: remove line break after email Authored by: bashonly --- Maintainers.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Maintainers.md b/Maintainers.md index 515505d882..1e08cbcebe 100644 --- a/Maintainers.md +++ b/Maintainers.md @@ -8,9 +8,7 @@ You can also find lists of all [contributors of yt-dlp](CONTRIBUTORS) and [autho Core Maintainers are responsible for reviewing and merging contributions, publishing releases, and steering the overall direction of the project. -**You can contact the core maintainers via `maintainers@yt-dlp.org`.** - -This is **NOT** a support channel. [Open an issue](https://github.com/yt-dlp/yt-dlp/issues/new/choose) if you need help or want to report a bug. +**You can contact the core maintainers via `maintainers@yt-dlp.org`.** This email address is **NOT** a support channel. [Open an issue](https://github.com/yt-dlp/yt-dlp/issues/new/choose) if you need help or want to report a bug. ### [coletdjnz](https://github.com/coletdjnz) From 1dbb89a5d03bebcbb89bebeddeb723b7280a1e4b Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 00:56:03 -0600 Subject: [PATCH 07/14] [docs] `Maintainers.md`: update credits Authored by: bashonly --- Maintainers.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Maintainers.md b/Maintainers.md index 1e08cbcebe..43271e06d0 100644 --- a/Maintainers.md +++ b/Maintainers.md @@ -16,6 +16,7 @@ Core Maintainers are responsible for reviewing and merging contributions, publis * Overhauled the networking stack and implemented support for `requests` and `curl_cffi` (`--impersonate`) HTTP clients * Reworked the plugin architecture to support installing plugins across all yt-dlp distributions (exe, pip, etc.) +* Implemented support for external JavaScript runtimes/engines * Maintains support for YouTube * Added and fixed support for various other sites @@ -23,9 +24,10 @@ Core Maintainers are responsible for reviewing and merging contributions, publis * Rewrote and maintains the build/release workflows and the self-updater: executables, automated/nightly/master releases, `--update-to` * Overhauled external downloader cookie handling +* Helped in implementing support for external JavaScript runtimes/engines * Added `--cookies-from-browser` support for Firefox containers -* Overhauled and maintains support for sites like Youtube, Vimeo, Twitter, TikTok, etc -* Added support for sites like Dacast, Kick, Loom, SproutVideo, Triller, Weverse, etc +* Maintains support for sites like YouTube, Vimeo, Twitter, TikTok, etc +* Added support for various sites ### [Grub4K](https://github.com/Grub4K) @@ -35,12 +37,14 @@ Core Maintainers are responsible for reviewing and merging contributions, publis * `--update-to`, self-updater rewrite, automated/nightly/master releases * Reworked internals like `traverse_obj`, various core refactors and bugs fixes * Implemented proper progress reporting for parallel downloads +* Implemented support for external JavaScript runtimes/engines * Improved/fixed/added Bundestag, crunchyroll, pr0gramm, Twitter, WrestleUniverse etc ### [sepro](https://github.com/seproDev) * UX improvements: Warn when ffmpeg is missing, warn when double-clicking exe +* Helped in implementing support for external JavaScript runtimes/engines * Code cleanup: Remove dead extractors, mark extractors as broken, enable/apply ruff rules * Improved/fixed/added ArdMediathek, DRTV, Floatplane, MagentaMusik, Naver, Nebula, OnDemandKorea, Vbox7 etc From 53be678678491506166066e7cd00fb831261948e Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 01:00:12 -0600 Subject: [PATCH 08/14] [docs] `README.md`: runtime -> runtime/engine Authored by: bashonly --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c98c69f418..33064176cf 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ Python versions 3.10+ (CPython) and 3.11+ (PyPy) are supported. Other versions a On Windows, [Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)](https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe) is also necessary to run yt-dlp. You probably already have this, but if the executable throws an error due to missing `MSVCR100.dll` you need to install it manually. --> -While all the other dependencies are optional, `ffmpeg`, `ffprobe`, `yt-dlp-ejs` and a JavaScript runtime are highly recommended +While all the other dependencies are optional, `ffmpeg`, `ffprobe`, `yt-dlp-ejs` and a supported JavaScript runtime/engine are highly recommended ### Strongly recommended @@ -215,7 +215,7 @@ While all the other dependencies are optional, `ffmpeg`, `ffprobe`, `yt-dlp-ejs` * [**yt-dlp-ejs**](https://github.com/yt-dlp/ejs) - Required for deciphering YouTube n/sig values. Licensed under [Unlicense](https://github.com/yt-dlp/ejs/blob/main/LICENSE), bundles [MIT](https://github.com/davidbonnet/astring/blob/main/LICENSE) and [ISC](https://github.com/meriyah/meriyah/blob/main/LICENSE.md) components. - A JavaScript runtime like [**deno**](https://deno.land) (recommended), [**node.js**](https://nodejs.org), [**bun**](https://bun.sh), or [**QuickJS**](https://bellard.org/quickjs/) is also required to run yt-dlp-ejs. See [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/EJS). + A JavaScript runtime/engine like [**deno**](https://deno.land) (recommended), [**node.js**](https://nodejs.org), [**bun**](https://bun.sh), or [**QuickJS**](https://bellard.org/quickjs/) is also required to run yt-dlp-ejs. See [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/EJS). ### Networking * [**certifi**](https://github.com/certifi/python-certifi)\* - Provides Mozilla's root certificate bundle. Licensed under [MPLv2](https://github.com/certifi/python-certifi/blob/master/LICENSE) @@ -1852,7 +1852,7 @@ The following extractors use this feature: #### youtube * `lang`: Prefer translated metadata (`title`, `description` etc) of this language code (case-sensitive). By default, the video primary language metadata is preferred, with a fallback to `en` translated. See [youtube/_base.py](https://github.com/yt-dlp/yt-dlp/blob/415b4c9f955b1a0391204bd24a7132590e7b3bdb/yt_dlp/extractor/youtube/_base.py#L402-L409) for the list of supported content language codes * `skip`: One or more of `hls`, `dash` or `translated_subs` to skip extraction of the m3u8 manifests, dash manifests and [auto-translated subtitles](https://github.com/yt-dlp/yt-dlp/issues/4090#issuecomment-1158102032) respectively -* `player_client`: Clients to extract video data from. The currently available clients are `web`, `web_safari`, `web_embedded`, `web_music`, `web_creator`, `mweb`, `ios`, `android`, `android_sdkless`, `android_vr`, `tv`, `tv_simply`, `tv_downgraded`, and `tv_embedded`. By default, `tv,android_sdkless,web` is used. If no JavaScript runtime is available, then `android_sdkless,web_safari,web` is used. If logged-in cookies are passed to yt-dlp, then `tv_downgraded,web_safari,web` is used for free accounts and `tv_downgraded,web_creator,web` is used for premium accounts. The `web_music` client is added for `music.youtube.com` URLs when logged-in cookies are used. The `web_embedded` client is added for age-restricted videos but only works if the video is embeddable. The `tv_embedded` and `web_creator` clients are added for age-restricted videos if account age-verification is required. Some clients, such as `web` and `web_music`, require a `po_token` for their formats to be downloadable. Some clients, such as `web_creator`, will only work with authentication. Not all clients support authentication via cookies. You can use `default` for the default clients, or you can use `all` for all clients (not recommended). You can prefix a client with `-` to exclude it, e.g. `youtube:player_client=default,-ios` +* `player_client`: Clients to extract video data from. The currently available clients are `web`, `web_safari`, `web_embedded`, `web_music`, `web_creator`, `mweb`, `ios`, `android`, `android_sdkless`, `android_vr`, `tv`, `tv_simply`, `tv_downgraded`, and `tv_embedded`. By default, `tv,android_sdkless,web` is used. If no JavaScript runtime/engine is available, then `android_sdkless,web_safari,web` is used. If logged-in cookies are passed to yt-dlp, then `tv_downgraded,web_safari,web` is used for free accounts and `tv_downgraded,web_creator,web` is used for premium accounts. The `web_music` client is added for `music.youtube.com` URLs when logged-in cookies are used. The `web_embedded` client is added for age-restricted videos but only works if the video is embeddable. The `tv_embedded` and `web_creator` clients are added for age-restricted videos if account age-verification is required. Some clients, such as `web` and `web_music`, require a `po_token` for their formats to be downloadable. Some clients, such as `web_creator`, will only work with authentication. Not all clients support authentication via cookies. You can use `default` for the default clients, or you can use `all` for all clients (not recommended). You can prefix a client with `-` to exclude it, e.g. `youtube:player_client=default,-ios` * `player_skip`: Skip some network requests that are generally needed for robust extraction. One or more of `configs` (skip client configs), `webpage` (skip initial webpage), `js` (skip js player), `initial_data` (skip initial data/next ep request). While these options can help reduce the number of requests needed or avoid some rate-limiting, they could cause issues such as missing formats or metadata. See [#860](https://github.com/yt-dlp/yt-dlp/pull/860) and [#12826](https://github.com/yt-dlp/yt-dlp/issues/12826) for more details * `webpage_skip`: Skip extraction of embedded webpage data. One or both of `player_response`, `initial_data`. These options are for testing purposes and don't skip any network requests * `player_params`: YouTube player parameters to use for player requests. Will overwrite any default ones set by yt-dlp. From 1417e6ed4ae4b7bb65caaa9de9990e6b2ddb0a7a Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 01:02:26 -0600 Subject: [PATCH 09/14] [docs] `README.md`: group -> extra Authored by: bashonly --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33064176cf..e6a590f446 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ While all the other dependencies are optional, `ffmpeg`, `ffprobe`, `yt-dlp-ejs` The following provide support for impersonating browser requests. This may be required for some sites that employ TLS fingerprinting. * [**curl_cffi**](https://github.com/lexiforest/curl_cffi) (recommended) - Python binding for [curl-impersonate](https://github.com/lexiforest/curl-impersonate). Provides impersonation targets for Chrome, Edge and Safari. Licensed under [MIT](https://github.com/lexiforest/curl_cffi/blob/main/LICENSE) - * Can be installed with the `curl-cffi` group, e.g. `pip install "yt-dlp[default,curl-cffi]"` + * Can be installed with the `curl-cffi` extra, e.g. `pip install "yt-dlp[default,curl-cffi]"` * Currently included in most builds *except* `yt-dlp` (Unix zipimport binary), `yt-dlp_x86` (Windows 32-bit) and `yt-dlp_musllinux_aarch64` From 891f10a20b26d28027398e93e5327163e351707f Mon Sep 17 00:00:00 2001 From: Yehan Wasura Date: Mon, 24 Nov 2025 23:55:14 +0530 Subject: [PATCH 10/14] Fix a typo in po_token description. It's a very simple typo, just "po_token: Proof of Origin (PO) Token(s) to use. Comma seperated list....." it should be "separated". --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e6a590f446..d16977664d 100644 --- a/README.md +++ b/README.md @@ -1867,7 +1867,7 @@ The following extractors use this feature: * `raise_incomplete_data`: `Incomplete Data Received` raises an error instead of reporting a warning * `data_sync_id`: Overrides the account Data Sync ID used in Innertube API requests. This may be needed if you are using an account with `youtube:player_skip=webpage,configs` or `youtubetab:skip=webpage` * `visitor_data`: Overrides the Visitor Data used in Innertube API requests. This should be used with `player_skip=webpage,configs` and without cookies. Note: this may have adverse effects if used improperly. If a session from a browser is wanted, you should pass cookies instead (which contain the Visitor ID) -* `po_token`: Proof of Origin (PO) Token(s) to use. Comma seperated list of PO Tokens in the format `CLIENT.CONTEXT+PO_TOKEN`, e.g. `youtube:po_token=web.gvs+XXX,web.player=XXX,web_safari.gvs+YYY`. Context can be any of `gvs` (Google Video Server URLs), `player` (Innertube player request) or `subs` (Subtitles) +* `po_token`: Proof of Origin (PO) Token(s) to use. Comma-separated list of PO Tokens in the format `CLIENT.CONTEXT+PO_TOKEN`, e.g. `youtube:po_token=web.gvs+XXX,web.player=XXX,web_safari.gvs+YYY`. Context can be any of `gvs` (Google Video Server URLs), `player` (Innertube player request) or `subs` (Subtitles) * `pot_trace`: Enable debug logging for PO Token fetching. Either `true` or `false` (default) * `fetch_pot`: Policy to use for fetching a PO Token from providers. One of `always` (always try fetch a PO Token regardless if the client requires one for the given context), `never` (never fetch a PO Token), or `auto` (default; only fetch a PO Token if the client requires one for the given context) * `jsc_trace`: Enable debug logging for JS Challenge fetching. Either `true` or `false` (default) From 283a062d18f1635336d72b54512040b6512eae8d Mon Sep 17 00:00:00 2001 From: rezky_nightky Date: Fri, 28 Nov 2025 00:11:52 +0700 Subject: [PATCH 11/14] Fix some typos Author: rezky_nightky Timestamp: 2025-11-27T17:11:52Z Repository: yt-dlp Branch: master Signing: GPG (989AF9F0) Performance: 3 files, +8/-8 lines --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 99f18b2f32..3abd30c21b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -763,7 +763,7 @@ Wrap all extracted numeric data into safe functions from [`yt_dlp/utils/`](yt_dl Use `url_or_none` for safe URL processing. -Use `traverse_obj` and `try_call` (superseeds `dict_get` and `try_get`) for safe metadata extraction from parsed JSON. +Use `traverse_obj` and `try_call` (supersedes `dict_get` and `try_get`) for safe metadata extraction from parsed JSON. Use `unified_strdate` for uniform `upload_date` or any `YYYYMMDD` meta field extraction, `unified_timestamp` for uniform `timestamp` extraction, `parse_filesize` for `filesize` extraction, `parse_count` for count meta fields extraction, `parse_resolution`, `parse_duration` for `duration` extraction, `parse_age_limit` for `age_limit` extraction. diff --git a/README.md b/README.md index d16977664d..ec78dd56f0 100644 --- a/README.md +++ b/README.md @@ -1299,7 +1299,7 @@ The field names themselves (the part inside the parenthesis) can also have some 1. **Default**: A literal default value can be specified for when the field is empty using a `|` separator. This overrides `--output-na-placeholder`. E.g. `%(uploader|Unknown)s` -1. **More Conversions**: In addition to the normal format types `diouxXeEfFgGcrs`, yt-dlp additionally supports converting to `B` = **B**ytes, `j` = **j**son (flag `#` for pretty-printing, `+` for Unicode), `h` = HTML escaping, `l` = a comma separated **l**ist (flag `#` for `\n` newline-separated), `q` = a string **q**uoted for the terminal (flag `#` to split a list into different arguments), `D` = add **D**ecimal suffixes (e.g. 10M) (flag `#` to use 1024 as factor), and `S` = **S**anitize as filename (flag `#` for restricted) +1. **More Conversions**: In addition to the normal format types `diouxXeEfFgGcrs`, yt-dlp additionally supports converting to `B` = **B**ytes, `j` = **j**son (flag `#` for pretty-printing, `+` for Unicode), `h` = HTML escaping, `l` = a comma-separated **l**ist (flag `#` for `\n` newline-separated), `q` = a string **q**uoted for the terminal (flag `#` to split a list into different arguments), `D` = add **D**ecimal suffixes (e.g. 10M) (flag `#` to use 1024 as factor), and `S` = **S**anitize as filename (flag `#` for restricted) 1. **Unicode normalization**: The format type `U` can be used for NFC [Unicode normalization](https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize). The alternate form flag (`#`) changes the normalization to NFD and the conversion flag `+` can be used for NFKC/NFKD compatibility equivalence normalization. E.g. `%(title)+.100U` is NFKC @@ -1873,7 +1873,7 @@ The following extractors use this feature: * `jsc_trace`: Enable debug logging for JS Challenge fetching. Either `true` or `false` (default) #### youtube-ejs -* `jitless`: Run suported Javascript engines in JIT-less mode. Supported runtimes are `deno`, `node` and `bun`. Provides better security at the cost of performance/speed. Do note that `node` and `bun` are still considered unsecure. Either `true` or `false` (default) +* `jitless`: Run supported Javascript engines in JIT-less mode. Supported runtimes are `deno`, `node` and `bun`. Provides better security at the cost of performance/speed. Do note that `node` and `bun` are still considered insecure. Either `true` or `false` (default) #### youtubepot-webpo * `bind_to_visitor_id`: Whether to use the Visitor ID instead of Visitor Data for caching WebPO tokens. Either `true` (default) or `false` From b63f48b39fb5c7470c601c33f08664e37e529e07 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 01:16:51 -0600 Subject: [PATCH 12/14] [options] "Comma separated" -> "Comma-separated" Authored by: bashonly --- README.md | 2 +- yt_dlp/options.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec78dd56f0..8f36be49c0 100644 --- a/README.md +++ b/README.md @@ -483,7 +483,7 @@ Tip: Use `CTRL`+`F` (or `Command`+`F`) to search by keywords two-letter ISO 3166-2 country code ## Video Selection: - -I, --playlist-items ITEM_SPEC Comma separated playlist_index of the items + -I, --playlist-items ITEM_SPEC Comma-separated playlist_index of the items to download. You can specify a range using "[START]:[STOP][:STEP]". For backward compatibility, START-STOP is also supported. diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 96c3a8a5d1..6b669d7cc0 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -689,7 +689,7 @@ def create_parser(): '-I', '--playlist-items', dest='playlist_items', metavar='ITEM_SPEC', default=None, help=( - 'Comma separated playlist_index of the items to download. ' + 'Comma-separated playlist_index of the items to download. ' 'You can specify a range using "[START]:[STOP][:STEP]". For backward compatibility, START-STOP is also supported. ' 'Use negative indices to count from the right and negative STEP to download in reverse order. ' 'E.g. "-I 1:3,7,-5::2" used on a playlist of size 15 will download the items at index 1,2,3,7,11,13,15')) From 7f2dd4aa89aff4516210a77f67d74f527cf0c719 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 16:36:00 -0600 Subject: [PATCH 13/14] =?UTF-8?q?[ci]=20Bump=20actionlint=20v1.7.8=20?= =?UTF-8?q?=E2=86=92=20v1.7.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authored by: bashonly --- .github/workflows/test-workflows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index b98590e49d..40c823b64a 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -17,8 +17,8 @@ on: permissions: contents: read env: - ACTIONLINT_VERSION: "1.7.8" - ACTIONLINT_SHA256SUM: be92c2652ab7b6d08425428797ceabeb16e31a781c07bc388456b4e592f3e36a + ACTIONLINT_VERSION: "1.7.9" + ACTIONLINT_SHA256SUM: 233b280d05e100837f4af1433c7b40a5dcb306e3aa68fb4f17f8a7f45a7df7b4 ACTIONLINT_REPO: https://github.com/rhysd/actionlint jobs: From db738d8e105443faca4d5ef4b976af0c18f649b6 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 29 Nov 2025 22:16:14 -0600 Subject: [PATCH 14/14] =?UTF-8?q?[ci]=20Bump=20github/codeql-action=20v3?= =?UTF-8?q?=20=E2=86=92=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authored by: bashonly --- .github/workflows/codeql.yml | 38 ++++++------------------------------ 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 811832146e..fda5351c08 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,7 +2,7 @@ name: "CodeQL" on: push: - branches: [ 'master', 'gh-pages', 'release' ] + branches: [ 'master' ] pull_request: # The branches below must be a subset of the branches above branches: [ 'master' ] @@ -11,7 +11,7 @@ on: jobs: analyze: - name: Analyze + name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest permissions: actions: read @@ -21,45 +21,19 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + language: [ 'actions', 'javascript-typescript', 'python' ] steps: - name: Checkout repository uses: actions/checkout@v6 - # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + build-mode: none - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}"