A feature-rich command-line audio/video downloader
[cleanup] Misc (#14594)
seproc7bda2192aa2
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex e20373ec02..bdec4d1c9d 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -194,7 +194,7 @@ jobs:UPDATE_TO: yt-dlp/[email protected]steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5with:fetch-depth: 0 # Needed for changelog@@ -255,7 +255,7 @@ jobs:SKIP_ONEFILE_BUILD: ${{ (!matrix.onefile && '1') || '' }}steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Cache requirementsif: matrix.cache_requirements@@ -318,7 +318,7 @@ jobs:UPDATE_TO: yt-dlp/[email protected]steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5# NB: Building universal2 does not work with python from actions/setup-python- name: Cache requirements@@ -448,7 +448,7 @@ jobs:PYI_WHEEL: pyinstaller-${{ matrix.pyi_version }}-py3-none-${{ matrix.platform_tag }}.whlsteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: actions/setup-python@v6with:python-version: ${{ matrix.python_version }}diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex 910c409efc..6d4dbdf193 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -29,7 +29,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v5# Initializes the CodeQL tools for scanning.- name: Initialize CodeQLdiff --git a/.github/workflows/core.yml b/.github/workflows/core.ymlindex d76495a25d..d196f59d83 100644--- a/.github/workflows/core.yml+++ b/.github/workflows/core.yml@@ -53,7 +53,7 @@ jobs:- os: windows-latestpython-version: pypy-3.11steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Set up Python ${{ matrix.python-version }}uses: actions/setup-python@v6with:diff --git a/.github/workflows/download.yml b/.github/workflows/download.ymlindex e5debc786d..8163bd1a23 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-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Set up Pythonuses: actions/setup-python@v6with:@@ -36,7 +36,7 @@ jobs:- os: windows-latestpython-version: pypy-3.11steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Set up Python ${{ matrix.python-version }}uses: actions/setup-python@v6with:diff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.ymlindex 307559b96c..c26628b421 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-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Set up Python 3.10uses: actions/setup-python@v6with:@@ -26,7 +26,7 @@ jobs:if: "!contains(github.event.head_commit.message, 'ci skip all')"runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: actions/setup-python@v6with:python-version: '3.10'diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.ymlindex 13cce8c33f..fd7cf4cbae 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@v4+ - uses: actions/checkout@v5with:fetch-depth: 0- name: Check for new commitsdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 52c61808fc..6bb429f269 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@v4+ - uses: actions/checkout@v5with:fetch-depth: 0@@ -170,7 +170,7 @@ jobs:id-token: write # mandatory for trusted publishingsteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5with: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@v4+ - uses: actions/checkout@v5with:fetch-depth: 0- uses: actions/download-artifact@v4diff --git a/.github/workflows/signature-tests.yml b/.github/workflows/signature-tests.ymlindex 8d48dff669..77f5e6a4c8 100644--- a/.github/workflows/signature-tests.yml+++ b/.github/workflows/signature-tests.yml@@ -27,7 +27,7 @@ jobs:os: [ubuntu-latest, windows-latest]python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', pypy-3.11]steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Set up Python ${{ matrix.python-version }}uses: actions/setup-python@v6with:diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.ymlindex 684ec6cc44..6c993e6b34 100644--- a/.github/workflows/test-workflows.yml+++ b/.github/workflows/test-workflows.yml@@ -26,7 +26,7 @@ jobs:name: Check workflowsruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: actions/setup-python@v6with:python-version: "3.10" # Keep this in sync with release.yml's prepare jobdiff --git a/devscripts/changelog_override.json b/devscripts/changelog_override.jsonindex 618e7fe6fe..bd78058e1e 100644--- a/devscripts/changelog_override.json+++ b/devscripts/changelog_override.json@@ -298,5 +298,10 @@"action": "add","when": "08d78996831bd8e1e3c2592d740c3def00bbf548","short": "[priority] **Several options have been deprecated**\nIn order to simplify the codebase and reduce maintenance burden, various options have been deprecated. Please remove them from your commands/configurations. [Read more](https://github.com/yt-dlp/yt-dlp/issues/14198)"+ },+ {+ "action": "add",+ "when": "4e6a693057cfaf1ce1f07b019ed3bfce2bf936f6",+ "short": "[priority] **The minimum *required* Python version has been raised to 3.10**\nPython 3.9 has reached its end-of-life as of October 2025, and yt-dlp has now removed support for it. [Read more](https://github.com/yt-dlp/yt-dlp/issues/13858)"}]diff --git a/pyproject.toml b/pyproject.tomlindex 36a579fddb..0dabe2ea14 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -75,7 +75,7 @@ dev = []static-analysis = ["autopep8~=2.0",- "ruff~=0.13.0",+ "ruff~=0.14.0",]test = ["pytest~=8.1",diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 2e36319dd8..ef42ba68e3 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -4112,7 +4112,7 @@ class YoutubeDL:self.params.get('cookiefile'), self.params.get('cookiesfrombrowser'), self)except CookieLoadError as error:cause = error.__context__- self.report_error(str(cause), tb=''.join(traceback.format_exception(None, cause, cause.__traceback__)))+ self.report_error(str(cause), tb=''.join(traceback.format_exception(cause)))raise@propertydiff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.pyindex e5268deff9..2779d3043d 100644--- a/yt_dlp/utils/_utils.py+++ b/yt_dlp/utils/_utils.py@@ -2402,6 +2402,7 @@ class PlaylistEntries:def __init__(self, ydl, info_dict):self.ydl = ydl+# _entries must be assigned now since infodict can change during iterationentries = info_dict.get('entries')if entries is None: