repo
stringlengths
5
53
pr_number
int32
1
321k
task_type
stringclasses
2 values
issue_text
stringlengths
0
81.2k
pr_title
stringlengths
1
319
pr_body
stringlengths
0
105k
base_sha
stringlengths
40
40
head_sha
stringlengths
40
40
gold_diff
stringlengths
0
202M
changed_files
listlengths
0
100
review_threads
listlengths
0
100
test_patch
stringlengths
0
23.4M
merged
bool
1 class
yt-dlp/yt-dlp
16,697
issue_to_patch
[cleanup] Misc
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
25056f0d2d47adbd235a8d422fa62d68d0be2bc2
1aeef222c575ee7a036520f138c1f7089e44713d
diff --git a/devscripts/changelog_override.json b/devscripts/changelog_override.json index 937a8880bc8f..7ff3a6caa0fc 100644 --- a/devscripts/changelog_override.json +++ b/devscripts/changelog_override.json @@ -342,5 +342,30 @@ "action": "add", "when": "1fbbe29b99dc61375bf6d786f824d9fcf6ea9c1a", ...
[ "devscripts/changelog_override.json", "devscripts/update_requirements.py", "test/test_YoutubeDL.py", "test/test_downloader_external.py", "test/test_execution.py", "yt_dlp/YoutubeDL.py", "yt_dlp/downloader/external.py" ]
[]
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 2705accb760c..0f84d7e1694b 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -6,11 +6,11 @@ import unittest from unittest.mock import patch -from yt_dlp.globals import all_plugins_loaded - sys.path.insert(0, os.path.dirname(os.pat...
true
yt-dlp/yt-dlp
16,137
issue_to_patch
hketv: unable to extract file ID ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2022.02.03**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) - [X] I've checked that all provided URLs are alive and playable in a browser - [X] I've checked th...
[cleanup] Remove dead extractors
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
e85da3b98532761573d8b48ccd4d8d28dee94b15
e8dddb9176c3a15a7d692b0ab71462b22a01140c
diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 1a29a93edaf8..f47a36099a12 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -54,7 +54,6 @@ WyborczaPodcastIE, WyborczaVideoIE, ) -from .airtv import AirTVIE from .aitube import AitubeKZV...
[ "test/test_subtitles.py", "yt_dlp/extractor/_extractors.py", "yt_dlp/extractor/airtv.py", "yt_dlp/extractor/alsace20tv.py", "yt_dlp/extractor/anchorfm.py", "yt_dlp/extractor/appletrailers.py", "yt_dlp/extractor/atvat.py", "yt_dlp/extractor/awaan.py", "yt_dlp/extractor/axs.py", "yt_dlp/extractor/be...
[ { "comment": "it calls a non-existent `_extract_video_info` method now\r\n```suggestion\r\n _WORKING = False\r\n IE_DESC = 'VGTV, BTTV, FTV, Aftenposten and Aftonbladet'\r\n```", "path": "yt_dlp/extractor/vgtv.py", "hunk": "@@ -1,15 +1,14 @@\n import re\n \n from .common import InfoExtractor\n-fro...
diff --git a/test/test_subtitles.py b/test/test_subtitles.py index 53e0b4eaf8dc..32e80df952c0 100644 --- a/test/test_subtitles.py +++ b/test/test_subtitles.py @@ -16,7 +16,6 @@ CeskaTelevizeIE, DailymotionIE, DemocracynowIE, - LyndaIE, RaiPlayIE, RTVEALaCartaIE, TedTalkIE, @@ -250,20 +2...
true
yt-dlp/yt-dlp
16,137
comment_to_fix
[cleanup] Remove dead extractors
it calls a non-existent `_extract_video_info` method now ```suggestion _WORKING = False IE_DESC = 'VGTV, BTTV, FTV, Aftenposten and Aftonbladet' ```
e85da3b98532761573d8b48ccd4d8d28dee94b15
e8dddb9176c3a15a7d692b0ab71462b22a01140c
diff --git a/yt_dlp/extractor/vgtv.py b/yt_dlp/extractor/vgtv.py index 1eb25530f833..dcf48c4ccc2f 100644 --- a/yt_dlp/extractor/vgtv.py +++ b/yt_dlp/extractor/vgtv.py @@ -1,7 +1,6 @@ import re from .common import InfoExtractor -from .xstream import XstreamIE from ..utils import ( ExtractorError, float_or...
[ "yt_dlp/extractor/vgtv.py" ]
[ { "comment": "it calls a non-existent `_extract_video_info` method now\r\n```suggestion\r\n _WORKING = False\r\n IE_DESC = 'VGTV, BTTV, FTV, Aftenposten and Aftonbladet'\r\n```", "path": "yt_dlp/extractor/vgtv.py", "hunk": "@@ -1,15 +1,14 @@\n import re\n \n from .common import InfoExtractor\n-fro...
true
yt-dlp/yt-dlp
15,456
issue_to_patch
[fd/ffmpeg] Use info dict `http_headers` for direct merge downloads
Addresses https://github.com/yt-dlp/yt-dlp/pull/13210#discussion_r2655976236 Currently, if an extractor returns `http_headers` in the info dict root (and *not* in the individual format dicts), and if ffmpeg is used to download+direct-merge separate video and formats, then the info dict root's `http_headers` are igno...
98c0beab97933e4115ed034f06a8b626eb282d3f
0710c934a173022dcd917e636258e469e8cf9df7
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py index 14879b358d07..79c10485c607 100644 --- a/yt_dlp/downloader/external.py +++ b/yt_dlp/downloader/external.py @@ -521,10 +521,11 @@ def _call_downloader(self, tmpfilename, info_dict): args.extend(['-cookies', ''.join( ...
[ "yt_dlp/downloader/external.py" ]
[]
true
yt-dlp/yt-dlp
16,660
issue_to_patch
[ie/twitch] Drop dead `rechat` subtitle URL
The v5 comments endpoint (api.twitch.tv/v5/videos/<id>/comments) was decommissioned with the rest of legacy v5/Kraken on 2022-02-28 [1] and now returns 404 unconditionally. Stop advertising it. [1] https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline <!-- **IMPORTANT**: PRs...
0d8460b407fe8a9ac7ded8cbf21813554f9d2442
292652c0820177e2409f635c5ad5b4b0e4500fb7
diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py index 13d3f064e2cf..7656b45fce5b 100644 --- a/yt_dlp/extractor/twitch.py +++ b/yt_dlp/extractor/twitch.py @@ -589,17 +589,6 @@ def _real_extract(self, url): if 't' in query: info['start_time'] = parse_duration(query['t'][0]) - ...
[ "yt_dlp/extractor/twitch.py" ]
[]
true
yt-dlp/yt-dlp
16,690
issue_to_patch
[ie/soundcloud] Support `--extractor-retries` for original formats
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
519a662aa267ddcd48ea859729ba330361cff157
6332dc9ea90c753b40574746f94c633625588c07
diff --git a/yt_dlp/extractor/soundcloud.py b/yt_dlp/extractor/soundcloud.py index bcb8c0f463e2..146c48c46819 100644 --- a/yt_dlp/extractor/soundcloud.py +++ b/yt_dlp/extractor/soundcloud.py @@ -269,6 +269,9 @@ def _extract_info_dict(self, info, full_title=None, secret_token=None, extract_f f'f...
[ "yt_dlp/extractor/soundcloud.py" ]
[ { "comment": "```suggestion\r\n # Propagate 429 to the RetryManager in SoundcloudIE._real_extract\r\n elif isinstance(e.cause, HTTPError) and e.cause.status == 429:\r\n```", "path": "yt_dlp/extractor/soundcloud.py", "hunk": "@@ -269,6 +269,8 @@ def _extract_info_dict(self, ...
true
yt-dlp/yt-dlp
16,690
comment_to_fix
[ie/soundcloud] Support `--extractor-retries` for original formats
```suggestion # Propagate 429 to the RetryManager in SoundcloudIE._real_extract elif isinstance(e.cause, HTTPError) and e.cause.status == 429: ```
519a662aa267ddcd48ea859729ba330361cff157
6332dc9ea90c753b40574746f94c633625588c07
diff --git a/yt_dlp/extractor/soundcloud.py b/yt_dlp/extractor/soundcloud.py index bcb8c0f463e2..146c48c46819 100644 --- a/yt_dlp/extractor/soundcloud.py +++ b/yt_dlp/extractor/soundcloud.py @@ -269,6 +269,9 @@ def _extract_info_dict(self, info, full_title=None, secret_token=None, extract_f f'f...
[ "yt_dlp/extractor/soundcloud.py" ]
[ { "comment": "```suggestion\r\n # Propagate 429 to the RetryManager in SoundcloudIE._real_extract\r\n elif isinstance(e.cause, HTTPError) and e.cause.status == 429:\r\n```", "path": "yt_dlp/extractor/soundcloud.py", "hunk": "@@ -269,6 +269,8 @@ def _extract_info_dict(self, ...
true
yt-dlp/yt-dlp
16,014
issue_to_patch
[iwara] Unable to download after site recovery ### Checklist - [x] I'm reporting that yt-dlp is broken on a **supported** site - [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [x] I've checked that all provided URLs are...
[ie/iwara] Fix extractors
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
a75d66ae2c3e86e38eb05ae06e4a416077df001b
7d9ccdbce992d0671eba51c9496a0915c496454b
diff --git a/yt_dlp/extractor/iwara.py b/yt_dlp/extractor/iwara.py index 5b5c367ad815..8e2350450f39 100644 --- a/yt_dlp/extractor/iwara.py +++ b/yt_dlp/extractor/iwara.py @@ -29,6 +29,12 @@ def _is_token_expired(self, token, token_type): self.to_screen(f'{token_type} token has expired') return...
[ "yt_dlp/extractor/iwara.py" ]
[]
true
yt-dlp/yt-dlp
16,780
issue_to_patch
fix Monstercat regex
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
174afac7e304fd1c055d33d52a1fccdb3dca3b37
3af9153bb9cca58382d193fa88c124a3d41ce069
diff --git a/yt_dlp/extractor/monstercat.py b/yt_dlp/extractor/monstercat.py index f17b91f5a2a6..f76aa53f9e6c 100644 --- a/yt_dlp/extractor/monstercat.py +++ b/yt_dlp/extractor/monstercat.py @@ -12,7 +12,7 @@ class MonstercatIE(InfoExtractor): - _VALID_URL = r'https?://www\.monstercat\.com/release/(?P<id>\d+)' ...
[ "yt_dlp/extractor/monstercat.py" ]
[ { "comment": "Can you revert the formatting/indentation so it's all like this, please?\r\n```py\r\n _TESTS = [{\r\n 'url': 'https://www.monstercat.com/release/742779548009',\r\n```", "path": "yt_dlp/extractor/monstercat.py", "hunk": "@@ -12,19 +12,43 @@\n \n \n class MonstercatIE(InfoExtractor...
true
yt-dlp/yt-dlp
16,780
comment_to_fix
fix Monstercat regex
Can you revert the formatting/indentation so it's all like this, please? ```py _TESTS = [{ 'url': 'https://www.monstercat.com/release/742779548009', ```
174afac7e304fd1c055d33d52a1fccdb3dca3b37
3af9153bb9cca58382d193fa88c124a3d41ce069
diff --git a/yt_dlp/extractor/monstercat.py b/yt_dlp/extractor/monstercat.py index f17b91f5a2a6..f76aa53f9e6c 100644 --- a/yt_dlp/extractor/monstercat.py +++ b/yt_dlp/extractor/monstercat.py @@ -12,7 +12,7 @@ class MonstercatIE(InfoExtractor): - _VALID_URL = r'https?://www\.monstercat\.com/release/(?P<id>\d+)' ...
[ "yt_dlp/extractor/monstercat.py" ]
[ { "comment": "Can you revert the formatting/indentation so it's all like this, please?\r\n```py\r\n _TESTS = [{\r\n 'url': 'https://www.monstercat.com/release/742779548009',\r\n```", "path": "yt_dlp/extractor/monstercat.py", "hunk": "@@ -12,19 +12,43 @@\n \n \n class MonstercatIE(InfoExtractor...
true
yt-dlp/yt-dlp
16,780
comment_to_fix
fix Monstercat regex
Fix ruff violation please
174afac7e304fd1c055d33d52a1fccdb3dca3b37
3af9153bb9cca58382d193fa88c124a3d41ce069
diff --git a/yt_dlp/extractor/monstercat.py b/yt_dlp/extractor/monstercat.py index f17b91f5a2a6..f76aa53f9e6c 100644 --- a/yt_dlp/extractor/monstercat.py +++ b/yt_dlp/extractor/monstercat.py @@ -12,7 +12,7 @@ class MonstercatIE(InfoExtractor): - _VALID_URL = r'https?://www\.monstercat\.com/release/(?P<id>\d+)' ...
[ "yt_dlp/extractor/monstercat.py" ]
[ { "comment": "Fix ruff violation please", "path": "yt_dlp/extractor/monstercat.py", "hunk": "@@ -12,19 +12,43 @@\n \n \n class MonstercatIE(InfoExtractor):\n- _VALID_URL = r'https?://www\\.monstercat\\.com/release/(?P<id>\\d+)'\n- _TESTS = [{\n- 'url': 'https://www.monstercat.com/release/74...
true
yt-dlp/yt-dlp
16,813
issue_to_patch
[S4C] No way to fetch broadcast date ### Checklist - [x] I'm requesting a site-specific feature - [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [x] I've checked that all provided URLs are playable in a browser with the...
[S4C] Add additional metadata fields
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
7edb5ee8705cecc20537d519e1992ac202a30699
0e090a48cedbbf889eb99f96f2cc4c3248570fda
diff --git a/yt_dlp/extractor/s4c.py b/yt_dlp/extractor/s4c.py index d35436d10420..b5c8607f2e70 100644 --- a/yt_dlp/extractor/s4c.py +++ b/yt_dlp/extractor/s4c.py @@ -1,29 +1,55 @@ from .common import InfoExtractor -from ..utils import traverse_obj, url_or_none +from ..utils import ( + str_or_none, + unified_str...
[ "yt_dlp/extractor/s4c.py" ]
[ { "comment": "```suggestion\r\nfrom ..utils import (\r\n str_or_none,\r\n unified_strdate,\r\n url_or_none,\r\n)\r\nfrom ..utils.traversal import traverse_obj\r\n```", "path": "yt_dlp/extractor/s4c.py", "hunk": "@@ -1,29 +1,37 @@\n from .common import InfoExtractor\n-from ..utils import travers...
true
yt-dlp/yt-dlp
16,813
comment_to_fix
[S4C] Add additional metadata fields
```suggestion from ..utils import ( str_or_none, unified_strdate, url_or_none, ) from ..utils.traversal import traverse_obj ```
7edb5ee8705cecc20537d519e1992ac202a30699
0e090a48cedbbf889eb99f96f2cc4c3248570fda
diff --git a/yt_dlp/extractor/s4c.py b/yt_dlp/extractor/s4c.py index d35436d10420..b5c8607f2e70 100644 --- a/yt_dlp/extractor/s4c.py +++ b/yt_dlp/extractor/s4c.py @@ -1,29 +1,55 @@ from .common import InfoExtractor -from ..utils import traverse_obj, url_or_none +from ..utils import ( + str_or_none, + unified_str...
[ "yt_dlp/extractor/s4c.py" ]
[ { "comment": "```suggestion\r\nfrom ..utils import (\r\n str_or_none,\r\n unified_strdate,\r\n url_or_none,\r\n)\r\nfrom ..utils.traversal import traverse_obj\r\n```", "path": "yt_dlp/extractor/s4c.py", "hunk": "@@ -1,29 +1,37 @@\n from .common import InfoExtractor\n-from ..utils import travers...
true
yt-dlp/yt-dlp
16,818
issue_to_patch
[networking/curl-cffi] add reason to curl-cffi response
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
83564f85db7507486fbe3b0d0e72498f31ab0600
67a4e9ed166d68631f683171afb95a4084cdf548
diff --git a/yt_dlp/networking/_curlcffi.py b/yt_dlp/networking/_curlcffi.py index 3e4302417bf7..1a34b269ff19 100644 --- a/yt_dlp/networking/_curlcffi.py +++ b/yt_dlp/networking/_curlcffi.py @@ -92,7 +92,8 @@ def __init__(self, response: curl_cffi.requests.Response): fp=CurlCFFIResponseReader(response), ...
[ "yt_dlp/networking/_curlcffi.py" ]
[]
true
yt-dlp/yt-dlp
16,830
issue_to_patch
[onsen.ag] Unable to Download, 403 Forbidden ### Checklist - [x] I'm reporting that yt-dlp is broken on a **supported** site - [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [x] I've checked that all provided URLs are p...
[ie/onsen] Fix API headers and `temp_id` extraction
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
70050a626265922072cc56f69519214c47dbcad6
b321c97ecc910225a7ea2359f596dd5c4054f332
diff --git a/yt_dlp/extractor/onsen.py b/yt_dlp/extractor/onsen.py index 6424d7b15498..bc566708598e 100644 --- a/yt_dlp/extractor/onsen.py +++ b/yt_dlp/extractor/onsen.py @@ -21,6 +21,7 @@ class OnsenIE(InfoExtractor): IE_NAME = 'onsen' IE_DESC = 'インターネットラジオステーション<音泉>' + _API_HEADERS = {'X-Client': 'onse...
[ "yt_dlp/extractor/onsen.py" ]
[ { "comment": "Is there a reason why we couldn't use `..utils.parse_qs` here instead?", "path": "yt_dlp/extractor/onsen.py", "hunk": "@@ -71,6 +72,15 @@ class OnsenIE(InfoExtractor):\n 'playlist_mincount': 35,\n }]\n \n+ @classmethod\n+ def get_temp_id(cls, url):\n+ import base64...
true
yt-dlp/yt-dlp
16,830
comment_to_fix
[ie/onsen] Fix API headers and `temp_id` extraction
Is there a reason why we couldn't use `..utils.parse_qs` here instead?
70050a626265922072cc56f69519214c47dbcad6
b321c97ecc910225a7ea2359f596dd5c4054f332
diff --git a/yt_dlp/extractor/onsen.py b/yt_dlp/extractor/onsen.py index 6424d7b15498..bc566708598e 100644 --- a/yt_dlp/extractor/onsen.py +++ b/yt_dlp/extractor/onsen.py @@ -21,6 +21,7 @@ class OnsenIE(InfoExtractor): IE_NAME = 'onsen' IE_DESC = 'インターネットラジオステーション<音泉>' + _API_HEADERS = {'X-Client': 'onse...
[ "yt_dlp/extractor/onsen.py" ]
[ { "comment": "Is there a reason why we couldn't use `..utils.parse_qs` here instead?", "path": "yt_dlp/extractor/onsen.py", "hunk": "@@ -71,6 +72,15 @@ class OnsenIE(InfoExtractor):\n 'playlist_mincount': 35,\n }]\n \n+ @classmethod\n+ def get_temp_id(cls, url):\n+ import base64...
true
yt-dlp/yt-dlp
16,827
issue_to_patch
Extract supplemental codecs from DASH manifests
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
bc90c36b139c87cdc59399561dc1650198047a72
83c32f03861755dc7feb23d798f9317cc235157b
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 31c0266d4a9d..048c542858e5 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -2970,6 +2970,8 @@ def extract_Initialization(source): content_type = representation_attrib.get('contentType', mime_type....
[ "test/test_InfoExtractor.py", "test/testdata/mpd/supplemental_codecs.mpd", "yt_dlp/extractor/common.py" ]
[]
diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index f66fdbf8da6f..63aef689a14f 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -1415,6 +1415,51 @@ def test_parse_mpd_formats(self): }, ], }, + ), ...
true
yt-dlp/yt-dlp
16,909
issue_to_patch
This Old House No Longer Recognized URL ### Checklist - [x] I'm reporting that yt-dlp is broken on a **supported** site - [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels)) - [x] I've checked that all provided URLs are playab...
[ie/thisoldhouse] Fix extractor
Closes #16359 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) including [yt-dlp codin...
72ac62051593184552733e353da4a8cb8ec214ed
a3c54850da4e1f15107c25f9ba1adeff1e5ebeff
diff --git a/yt_dlp/extractor/thisoldhouse.py b/yt_dlp/extractor/thisoldhouse.py index b9d11542726d..bfc08094874d 100644 --- a/yt_dlp/extractor/thisoldhouse.py +++ b/yt_dlp/extractor/thisoldhouse.py @@ -16,7 +16,15 @@ class ThisOldHouseIE(InfoExtractor): _NETRC_MACHINE = 'thisoldhouse' - _VALID_URL = r'https...
[ "yt_dlp/extractor/thisoldhouse.py" ]
[]
true
yt-dlp/yt-dlp
16,782
issue_to_patch
[ci] Update 3 actions in 9 workflows
<!-- BEGIN dlp-bot generated section --> Updated with `--exclude-newer 2026-06-08T13:09:14.108419Z` action | old | new | diff -------|-----|-----|----- [**`actions/checkout`**](<https://github.com/actions/checkout>) | [v6.0.***2***](<https://github.com/actions/checkout/releases/tag/v6.0.2>) | [v6.0.***3***](<https://...
10b54835cf3f0d63cdd964a2f411db8f7cac3ff1
32724e2ac3f0b7449e0be95536b88045345a11de
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a45a4b4e158f..37bbd65893bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -195,7 +195,7 @@ jobs: UPDATE_TO: yt-dlp/yt-dlp@2025.09.05 steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214...
[ ".github/workflows/build.yml", ".github/workflows/challenge-tests.yml", ".github/workflows/codeql.yml", ".github/workflows/core.yml", ".github/workflows/quick-test.yml", ".github/workflows/release-nightly.yml", ".github/workflows/release.yml", ".github/workflows/test-workflows.yml", ".github/workflo...
[]
true
yt-dlp/yt-dlp
16,903
issue_to_patch
[build] Update 12 dependencies
<!-- BEGIN dlp-bot generated section --> package | old | new | diff | changelog --------|-----|-----|------|---------- [**`certifi`**](<https://pypi.org/project/certifi/>) | [2026.***4.22***](<https://github.com/certifi/python-certifi/releases/tag/2026.04.22>) | [2026.***5.20***](<https://github.com/certifi/python-cer...
1e4668e9df78ff2409e139b51610442cbefe762e
7fe27c4d1aba6b6d25fc715f96870dfbd8517e89
diff --git a/bundle/requirements/build.txt b/bundle/requirements/build.txt index 16068a0eb5f9..00850201a6c8 100644 --- a/bundle/requirements/build.txt +++ b/bundle/requirements/build.txt @@ -81,11 +81,11 @@ tomli==2.4.1 ; python_full_version < '3.11' \ # via # build # hatchling -trove-classifiers==20...
[ "bundle/requirements/build.txt", "bundle/requirements/curl-cffi.txt", "bundle/requirements/default.txt", "bundle/requirements/dev.txt", "bundle/requirements/linux.txt", "bundle/requirements/macos.txt", "bundle/requirements/pip.txt", "bundle/requirements/static-analysis.txt", "bundle/requirements/tes...
[]
true
yt-dlp/yt-dlp
16,906
issue_to_patch
[utils] `random_user_agent`: Bump version range 142-148 => 143-149
Bump version range 142-148 => 143-149 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) includ...
5faffa999fd33b373d47773e8ee639d072accec2
0a4687f544301d8bbfb167bc2151d17befde402d
diff --git a/yt_dlp/utils/networking.py b/yt_dlp/utils/networking.py index 58015c03db80..32c7acdb1483 100644 --- a/yt_dlp/utils/networking.py +++ b/yt_dlp/utils/networking.py @@ -17,7 +17,7 @@ def random_user_agent(): USER_AGENT_TMPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gec...
[ "yt_dlp/utils/networking.py" ]
[]
true
yt-dlp/yt-dlp
16,589
issue_to_patch
[build] Update 14 dependencies
<!-- BEGIN dlp-bot generated section --> package | old | new | diff | changelog --------|-----|-----|------|---------- [**`build`**](<https://pypi.org/project/build/>) | [1.***4.4***](<https://github.com/pypa/build/releases/tag/1.4.4>) | [1.***5.0***](<https://github.com/pypa/build/releases/tag/1.5.0>) | [`1.4.4...1.5...
98e42eb04486e00bf86479b24dbfe19321f652ee
0415640523afcfb97dbf5e87e1cd4459b341f212
diff --git a/bundle/requirements/build.txt b/bundle/requirements/build.txt index 3b3830cd7806..16068a0eb5f9 100644 --- a/bundle/requirements/build.txt +++ b/bundle/requirements/build.txt @@ -1,6 +1,6 @@ -build==1.4.4 \ - --hash=sha256:8c3f48a6090b39edec1a273d2d57949aaf13723b01e02f9d518396887519f64d \ - --hash=sha...
[ "bundle/requirements/build.txt", "bundle/requirements/curl-cffi.txt", "bundle/requirements/default.txt", "bundle/requirements/dev.txt", "bundle/requirements/linux.txt", "bundle/requirements/macos.txt", "bundle/requirements/pip.txt", "bundle/requirements/pyinstaller.txt", "bundle/requirements/static-...
[]
true
yt-dlp/yt-dlp
16,883
issue_to_patch
[pp/exec] Restrict `--exec` template usage to safe conversions
Remove `--exec` footguns by restricting the conversions and default/placeholder values that are able to be used in the `exec` command template. Previously, the user was able to pass something like this: ``` --exec 'echo "%(title)s"' ``` This could yield unexpected and possibly damaging results if the `title` val...
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/README.md b/README.md index 09e290b89dbc..e334bec8ed41 100644 --- a/README.md +++ b/README.md @@ -2332,8 +2332,8 @@ Some of yt-dlp's default options are different from that of youtube-dl and youtu * `certifi` will be used for SSL root certificates, if installed. If you want to use system certificates (e.g...
[ "README.md", "test/test_postprocessors.py", "yt_dlp/YoutubeDL.py", "yt_dlp/__init__.py", "yt_dlp/options.py", "yt_dlp/postprocessor/exec.py", "yt_dlp/utils/_utils.py" ]
[ { "comment": "do we want to allow `'S'` (filename-sanitized)?", "path": "yt_dlp/YoutubeDL.py", "hunk": "@@ -1305,6 +1320,8 @@ def prepare_outtmpl(self, outtmpl, info_dict, sanitize=False):\n (?:&(?P<replacement>.*?))?\n (?:\\|(?P<default>.*?))?\n )$''')\n+ ...
diff --git a/test/test_postprocessors.py b/test/test_postprocessors.py index d58a97fc6ee9..ad595d6b70c6 100644 --- a/test/test_postprocessors.py +++ b/test/test_postprocessors.py @@ -11,7 +11,10 @@ import subprocess from yt_dlp import YoutubeDL -from yt_dlp.utils import shell_quote +from yt_dlp.utils import ( + ...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
do we want to allow `'S'` (filename-sanitized)?
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7db6303d4fda..8ce01d52335b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -112,6 +112,7 @@ RejectedVideoReached, SameFileError, UnavailableVideoError, + UnsafeExecExpansionError, UserNotLive, YoutubeDLError, age...
[ "yt_dlp/YoutubeDL.py" ]
[ { "comment": "do we want to allow `'S'` (filename-sanitized)?", "path": "yt_dlp/YoutubeDL.py", "hunk": "@@ -1305,6 +1320,8 @@ def prepare_outtmpl(self, outtmpl, info_dict, sanitize=False):\n (?:&(?P<replacement>.*?))?\n (?:\\|(?P<default>.*?))?\n )$''')\n+ ...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
These should be string literals imo
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7db6303d4fda..8ce01d52335b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -112,6 +112,7 @@ RejectedVideoReached, SameFileError, UnavailableVideoError, + UnsafeExecExpansionError, UserNotLive, YoutubeDLError, age...
[ "yt_dlp/YoutubeDL.py" ]
[ { "comment": "These should be string literals imo", "path": "yt_dlp/YoutubeDL.py", "hunk": "@@ -1305,6 +1317,8 @@ def prepare_outtmpl(self, outtmpl, info_dict, sanitize=False):\n (?:&(?P<replacement>.*?))?\n (?:\\|(?P<default>.*?))?\n )$''')\n+ SAFE_EXE...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
Id without the discard, as the try catch and comment make it obvious ```suggestion self.prepare_outtmpl(exec_cmd, {}, _exec=True) ```
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7db6303d4fda..8ce01d52335b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -112,6 +112,7 @@ RejectedVideoReached, SameFileError, UnavailableVideoError, + UnsafeExecExpansionError, UserNotLive, YoutubeDLError, age...
[ "yt_dlp/YoutubeDL.py" ]
[ { "comment": "Id without the discard, as the try catch and comment make it obvious\n```suggestion\n self.prepare_outtmpl(exec_cmd, {}, _exec=True)\n```", "path": "yt_dlp/YoutubeDL.py", "hunk": "@@ -825,9 +826,20 @@ def check_deprecated(param, option, suggestion):\n \n for ...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
API allows this to be a string instead of list ```suggestion for exec_cmd in variadic(pp_def.get('exec_cmd', [])): ```
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7db6303d4fda..8ce01d52335b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -112,6 +112,7 @@ RejectedVideoReached, SameFileError, UnavailableVideoError, + UnsafeExecExpansionError, UserNotLive, YoutubeDLError, age...
[ "yt_dlp/YoutubeDL.py" ]
[ { "comment": "API allows this to be a string instead of list\r\n```suggestion\r\n for exec_cmd in variadic(pp_def.get('exec_cmd', [])):\r\n```", "path": "yt_dlp/YoutubeDL.py", "hunk": "@@ -825,9 +826,20 @@ def check_deprecated(param, option, suggestion):\n \n for pp_def_raw in sel...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
better name? ```suggestion 'allow-unsafe-exec-expansion', ```
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index ab25540642af..c64f4c4363a1 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -568,9 +568,10 @@ def _preset_alias_callback(option, opt_str, value, parser): 'embed-metadata', 'seperate-video-versions', 'no-clean-infojson', 'no-keep-subs', '...
[ "yt_dlp/options.py" ]
[ { "comment": "better name?\r\n```suggestion\r\n 'allow-unsafe-exec-expansion',\r\n```", "path": "yt_dlp/options.py", "hunk": "@@ -568,14 +568,15 @@ def _preset_alias_callback(option, opt_str, value, parser):\n 'embed-metadata', 'seperate-video-versions', 'no-clean-infojson...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
```suggestion 'youtube-dl': ['all', '-multistreams', '-playlist-match-filter', '-manifest-filesize-approx', '-allow-unsafe-ext', '-prefer-vp9-sort', '-allow-unsafe-exec-expansion'], 'youtube-dlc': ['all', '-no-youtube-channel-redirect', '-no-live-chat', '-playlist-match-filter', '-mani...
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index ab25540642af..c64f4c4363a1 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -568,9 +568,10 @@ def _preset_alias_callback(option, opt_str, value, parser): 'embed-metadata', 'seperate-video-versions', 'no-clean-infojson', 'no-keep-subs', '...
[ "yt_dlp/options.py" ]
[ { "comment": "```suggestion\r\n 'youtube-dl': ['all', '-multistreams', '-playlist-match-filter', '-manifest-filesize-approx', '-allow-unsafe-ext', '-prefer-vp9-sort', '-allow-unsafe-exec-expansion'],\r\n 'youtube-dlc': ['all', '-no-youtube-channel-redirect', '-no-live-chat', '-play...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
better name? ```suggestion '2025': ['allow-unsafe-exec-expansion'], ``` &nbsp; or omit it from the annual aliases altogether (since it's security-related)? ```suggestion '2025': [], ```
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index ab25540642af..c64f4c4363a1 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -568,9 +568,10 @@ def _preset_alias_callback(option, opt_str, value, parser): 'embed-metadata', 'seperate-video-versions', 'no-clean-infojson', 'no-keep-subs', '...
[ "yt_dlp/options.py" ]
[ { "comment": "better name?\r\n```suggestion\r\n '2025': ['allow-unsafe-exec-expansion'],\r\n```\r\n\r\n\r\n&nbsp;\r\n\r\nor omit it from the annual aliases altogether (since it's security-related)?\r\n\r\n```suggestion\r\n '2025': [],\r\n```", "path": "yt_dlp/options.py", "...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
```suggestion if pp_key == 'Exec' and 'allow-unsafe-exec-expansion' not in self.params['compat_opts']: ```
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7db6303d4fda..8ce01d52335b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -112,6 +112,7 @@ RejectedVideoReached, SameFileError, UnavailableVideoError, + UnsafeExecExpansionError, UserNotLive, YoutubeDLError, age...
[ "yt_dlp/YoutubeDL.py" ]
[ { "comment": "```suggestion\r\n if pp_key == 'Exec' and 'allow-unsafe-exec-expansion' not in self.params['compat_opts']:\r\n```", "path": "yt_dlp/YoutubeDL.py", "hunk": "@@ -825,9 +826,20 @@ def check_deprecated(param, option, suggestion):\n \n for pp_def_raw in self.params.get('postp...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
better name? ```suggestion * `--compat-options 2025`: Same as `--compat-options allow-unsafe-exec-expansion` ``` &nbsp; or omit it from the annual aliases altogether (since it's security-related)? ```suggestion * `--compat-options 2025`: Currently does nothing. Use this to enable all future compat options `...
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/README.md b/README.md index 09e290b89dbc..e334bec8ed41 100644 --- a/README.md +++ b/README.md @@ -2332,8 +2332,8 @@ Some of yt-dlp's default options are different from that of youtube-dl and youtu * `certifi` will be used for SSL root certificates, if installed. If you want to use system certificates (e.g...
[ "README.md" ]
[ { "comment": "better name?\r\n```suggestion\r\n* `--compat-options 2025`: Same as `--compat-options allow-unsafe-exec-expansion`\r\n```\r\n\r\n&nbsp;\r\n\r\nor omit it from the annual aliases altogether (since it's security-related)?\r\n```suggestion\r\n* `--compat-options 2025`: Currently does nothing. Use thi...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
```suggestion * `--compat-options youtube-dl`: Same as `--compat-options all,-multistreams,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort,-allow-unsafe-exec-expansion` * `--compat-options youtube-dlc`: Same as `--compat-options all,-no-live-chat,-no-youtube-channel-redirect,-playl...
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/README.md b/README.md index 09e290b89dbc..e334bec8ed41 100644 --- a/README.md +++ b/README.md @@ -2332,8 +2332,8 @@ Some of yt-dlp's default options are different from that of youtube-dl and youtu * `certifi` will be used for SSL root certificates, if installed. If you want to use system certificates (e.g...
[ "README.md" ]
[ { "comment": "```suggestion\r\n* `--compat-options youtube-dl`: Same as `--compat-options all,-multistreams,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort,-allow-unsafe-exec-expansion`\r\n* `--compat-options youtube-dlc`: Same as `--compat-options all,-no-live-chat,-no-youtu...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
better name? ```suggestion * The `--exec` option allows output template syntax to be used in its commands, but for security reasons the conversions that can be used are restricted to `d` (digit) and `q` (shell-quote). yt-dlp versions from 2021.04.11 to 2026.03.17 (inclusive) did not apply this restriction. Use `--c...
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/README.md b/README.md index 09e290b89dbc..e334bec8ed41 100644 --- a/README.md +++ b/README.md @@ -2332,8 +2332,8 @@ Some of yt-dlp's default options are different from that of youtube-dl and youtu * `certifi` will be used for SSL root certificates, if installed. If you want to use system certificates (e.g...
[ "README.md" ]
[ { "comment": "better name?\r\n\r\n```suggestion\r\n* The `--exec` option allows output template syntax to be used in its commands, but for security reasons the conversions that can be used are restricted to `d` (digit) and `q` (shell-quote). yt-dlp versions from 2021.04.11 to 2026.03.17 (inclusive) did not appl...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
Last question I have: Do we keep this here, or move it down below under "The following compat options restore vulnerable behavior from before security patches:" to be with `allow-unsafe-ext` ?
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/README.md b/README.md index 09e290b89dbc..e334bec8ed41 100644 --- a/README.md +++ b/README.md @@ -2332,8 +2332,8 @@ Some of yt-dlp's default options are different from that of youtube-dl and youtu * `certifi` will be used for SSL root certificates, if installed. If you want to use system certificates (e.g...
[ "README.md" ]
[ { "comment": "Last question I have:\r\n\r\nDo we keep this here, or move it down below under \"The following compat options restore vulnerable behavior from before security patches:\" to be with `allow-unsafe-ext` ?", "path": "README.md", "hunk": "@@ -2332,18 +2332,19 @@ Some of yt-dlp's default options...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
This implicit capture is quite hard to follow. Maybe we could do this instead: ```py ydl = YoutubeDL({'outtmpl_na_placeholder': ';'}) self.assertRaisesRegex(UnsafeExecExpansionError, r'Unsafe placeholder', ExecPP, ydl, 'echo %(title)q') ```
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/test/test_postprocessors.py b/test/test_postprocessors.py index d58a97fc6ee9..ad595d6b70c6 100644 --- a/test/test_postprocessors.py +++ b/test/test_postprocessors.py @@ -11,7 +11,10 @@ import subprocess from yt_dlp import YoutubeDL -from yt_dlp.utils import shell_quote +from yt_dlp.utils import ( + ...
[ "test/test_postprocessors.py" ]
[ { "comment": "This implicit capture is quite hard to follow. Maybe we could do this instead:\n```py\n ydl = YoutubeDL({'outtmpl_na_placeholder': ';'})\n self.assertRaisesRegex(UnsafeExecExpansionError, r'Unsafe placeholder', ExecPP, ydl, 'echo %(title)q')\n```", "path": "test/test_postprocesso...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
Should consider moving this to an override of `def set_downloader`, so that it also works if someone `ExecPP(None, 'asdad').set_downloader(ydl)`?
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/yt_dlp/postprocessor/exec.py b/yt_dlp/postprocessor/exec.py index 243487dd25a4..ac5708b10e2d 100644 --- a/yt_dlp/postprocessor/exec.py +++ b/yt_dlp/postprocessor/exec.py @@ -5,8 +5,17 @@ class ExecPP(PostProcessor): def __init__(self, downloader, exec_cmd): - PostProcessor.__init__(self, dow...
[ "yt_dlp/postprocessor/exec.py" ]
[ { "comment": "Should consider moving this to an override of `def set_downloader`, so that it also works if someone `ExecPP(None, 'asdad').set_downloader(ydl)`?", "path": "yt_dlp/postprocessor/exec.py", "hunk": "@@ -8,6 +8,16 @@ def __init__(self, downloader, exec_cmd):\n PostProcessor.__init__(s...
true
yt-dlp/yt-dlp
16,883
comment_to_fix
[pp/exec] Restrict `--exec` template usage to safe conversions
Mayhaps this? ```suggestion self.assertIsInstance(test([ 'echo', 'echo {}', 'echo %(title)q', 'echo %(title|NA)q', 'echo %(title)#q', 'echo %(view_count)i', 'echo %(view_count)02d', 'echo %(aspect_ratio)f', ...
7aac95eae663be82cffeaf2a8c1193a5e349e401
4431ce9d64b78b4cbdf94fc3420201e81b28220d
diff --git a/test/test_postprocessors.py b/test/test_postprocessors.py index d58a97fc6ee9..ad595d6b70c6 100644 --- a/test/test_postprocessors.py +++ b/test/test_postprocessors.py @@ -11,7 +11,10 @@ import subprocess from yt_dlp import YoutubeDL -from yt_dlp.utils import shell_quote +from yt_dlp.utils import ( + ...
[ "test/test_postprocessors.py" ]
[ { "comment": "Mayhaps this?\n```suggestion\n self.assertIsInstance(test([\n 'echo',\n 'echo {}',\n 'echo %(title)q',\n 'echo %(title|NA)q',\n 'echo %(title)#q',\n 'echo %(view_count)i',\n 'echo %(view_count)02d',\n 'e...
true
yt-dlp/yt-dlp
16,896
issue_to_patch
[ci] Test with Python 3.15
<details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) including [yt-dlp coding conventions](http...
7fdc46d01619afbb2371b0465d6830602013148f
c1e68c43dd875ff23897f45cf5c6d5250b9b5ba5
diff --git a/.github/workflows/challenge-tests.yml b/.github/workflows/challenge-tests.yml index f55cf68f47d0..7f0f7078f6d1 100644 --- a/.github/workflows/challenge-tests.yml +++ b/.github/workflows/challenge-tests.yml @@ -36,7 +36,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-l...
[ ".github/workflows/challenge-tests.yml", ".github/workflows/core.yml" ]
[]
true
yt-dlp/yt-dlp
16,884
issue_to_patch
Test failures with yt-dlp 2026.03.17 and Python 3.15.0b2 ### Checklist - [x] I'm requesting a feature unrelated to a specific site - [x] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme) - [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://gith...
Fix tests for python3.15
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
acf8ab7a6e3024325f62426e35a17f365c4d5d54
7673da16c5a554099b3fa0764397d8c4eac22a7f
diff --git a/yt_dlp/extractor/youtube/pot/_director.py b/yt_dlp/extractor/youtube/pot/_director.py index 9e467c809255..a33d48a144e8 100644 --- a/yt_dlp/extractor/youtube/pot/_director.py +++ b/yt_dlp/extractor/youtube/pot/_director.py @@ -438,9 +438,11 @@ def clean_pot(po_token: str): if not mobj: raise V...
[ "yt_dlp/extractor/youtube/pot/_director.py" ]
[]
true
yt-dlp/yt-dlp
2,941
issue_to_patch
[openrec] Refactor extractors
## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull request* will actually look like --- ### Before submitting a *p...
e491d06d344dde805bf5ea14d63310428cc7edf4
ec574e3e80f6b0a90f1c9bd1b0f44419786ebdda
diff --git a/yt_dlp/extractor/openrec.py b/yt_dlp/extractor/openrec.py index 0525b483019e..b476c0986e20 100644 --- a/yt_dlp/extractor/openrec.py +++ b/yt_dlp/extractor/openrec.py @@ -4,10 +4,11 @@ from .common import InfoExtractor from ..utils import ( ExtractorError, + get_first, int_or_none, trave...
[ "yt_dlp/extractor/openrec.py" ]
[]
true
yt-dlp/yt-dlp
2,222
issue_to_patch
[openrec] support movie URLs ### Checklist - [X] I'm reporting a site feature request - [X] I've verified that I'm running yt-dlp version **2021.12.27**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) - [X] I've checked that all provided URLs are alive and playable in a browser - [X] I've searc...
[openrec] refactor and add /movie/ support
## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull request* will actually look like --- ### Before submitting a *p...
fdeab99eaba64317f4c72ba6384da98f1c4f2687
d3c074036e1e527e20d6b516a2c6da4134e1bff4
diff --git a/yt_dlp/extractor/extractors.py b/yt_dlp/extractor/extractors.py index 77d6ef511de4..02236bf6796b 100644 --- a/yt_dlp/extractor/extractors.py +++ b/yt_dlp/extractor/extractors.py @@ -1058,6 +1058,7 @@ from .openrec import ( OpenRecIE, OpenRecCaptureIE, + OpenRecMovieIE, ) from .ora import Or...
[ "yt_dlp/extractor/extractors.py", "yt_dlp/extractor/openrec.py" ]
[]
true
yt-dlp/yt-dlp
624
issue_to_patch
[openrec] add support for openrec.tv
## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull request* will actually look like --- ### Before submitting a *p...
888299e6ca65009e8ae2809c384ba1ba6b5ae701
867c7a3c32093b1dd197beba21ca62a6ad08ba37
diff --git a/README.md b/README.md index 7fb2c087404d..9ac50dbe00e2 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The major new features from the latest release of [blackjack4494/yt-dlc](https:/ * **Aria2c with HLS/DASH**: You can use `aria2c` as the external downloader for DASH(mpd) and HLS(m3u8) formats...
[ "README.md", "yt_dlp/extractor/extractors.py", "yt_dlp/extractor/openrec.py" ]
[ { "comment": "Use try_get / traverse_obj", "path": "yt_dlp/extractor/openrec.py", "hunk": "@@ -0,0 +1,127 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..utils import ExtractorError, try_get, unified_strdate\n+\n+\n+class OpenRecBaseIE(InfoE...
true
yt-dlp/yt-dlp
624
comment_to_fix
[openrec] add support for openrec.tv
Use try_get / traverse_obj
888299e6ca65009e8ae2809c384ba1ba6b5ae701
867c7a3c32093b1dd197beba21ca62a6ad08ba37
diff --git a/yt_dlp/extractor/openrec.py b/yt_dlp/extractor/openrec.py new file mode 100644 index 000000000000..d7073ab445bc --- /dev/null +++ b/yt_dlp/extractor/openrec.py @@ -0,0 +1,126 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + Extrac...
[ "yt_dlp/extractor/openrec.py" ]
[ { "comment": "Use try_get / traverse_obj", "path": "yt_dlp/extractor/openrec.py", "hunk": "@@ -0,0 +1,127 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..utils import ExtractorError, try_get, unified_strdate\n+\n+\n+class OpenRecBaseIE(InfoE...
true
yt-dlp/yt-dlp
624
comment_to_fix
[openrec] add support for openrec.tv
Why so complicated? Isnt this the same as L106-108?
888299e6ca65009e8ae2809c384ba1ba6b5ae701
867c7a3c32093b1dd197beba21ca62a6ad08ba37
diff --git a/yt_dlp/extractor/openrec.py b/yt_dlp/extractor/openrec.py new file mode 100644 index 000000000000..d7073ab445bc --- /dev/null +++ b/yt_dlp/extractor/openrec.py @@ -0,0 +1,126 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + Extrac...
[ "yt_dlp/extractor/openrec.py" ]
[ { "comment": "Why so complicated?\r\nIsnt this the same as L106-108?", "path": "yt_dlp/extractor/openrec.py", "hunk": "@@ -0,0 +1,127 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..utils import ExtractorError, try_get, unified_strdate\n+\n+...
true
yt-dlp/yt-dlp
624
comment_to_fix
[openrec] add support for openrec.tv
Why?
888299e6ca65009e8ae2809c384ba1ba6b5ae701
867c7a3c32093b1dd197beba21ca62a6ad08ba37
diff --git a/yt_dlp/extractor/openrec.py b/yt_dlp/extractor/openrec.py new file mode 100644 index 000000000000..d7073ab445bc --- /dev/null +++ b/yt_dlp/extractor/openrec.py @@ -0,0 +1,126 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + Extrac...
[ "yt_dlp/extractor/openrec.py" ]
[ { "comment": "Why?", "path": "yt_dlp/extractor/openrec.py", "hunk": "@@ -0,0 +1,130 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..utils import (\n+ ExtractorError,\n+ traverse_obj,\n+ try_get,\n+ unified_strdate\n+)\n+from ..co...
true
yt-dlp/yt-dlp
16,588
issue_to_patch
[utils] `random_user_agent`: Bump version range 137-143 => 142-148
Bump version range 137-143 => 142-148 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) includ...
dd17897eaeb0de7da31690d6d1807a1e9a041384
4c22d7cad01ed6a3a09206a107ff14979f98707a
diff --git a/yt_dlp/utils/networking.py b/yt_dlp/utils/networking.py index 0a4854308a9b..58015c03db80 100644 --- a/yt_dlp/utils/networking.py +++ b/yt_dlp/utils/networking.py @@ -17,7 +17,7 @@ def random_user_agent(): USER_AGENT_TMPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gec...
[ "yt_dlp/utils/networking.py" ]
[]
true
yt-dlp/yt-dlp
16,787
issue_to_patch
[Announcement] `ejs` is dropping support for Node v20 and v21 Node (aka Node.js) is an [`ejs`](https://github.com/yt-dlp/ejs)-compatible JavaScript runtime. Node v20 reached its end-of-life (EOL) at the end of April 2026. Node v21, which is not a long-term support (LTS) version of Node, reached its end-of-life well b...
[ie/youtube] Drop support for `node<22`
Closes #16765 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) including [yt-dlp coding ...
e534a32619d1d944631a0483f28522bdd11f0745
5781682ef3b24e14264ed03a4e620adce332b6d1
diff --git a/.github/workflows/challenge-tests.yml b/.github/workflows/challenge-tests.yml index c76b9fa84c83..36f973f9b77d 100644 --- a/.github/workflows/challenge-tests.yml +++ b/.github/workflows/challenge-tests.yml @@ -60,7 +60,7 @@ jobs: - name: Install Node uses: actions/setup-node@48b55a011bda9f5d6ae...
[ ".github/workflows/challenge-tests.yml", "yt_dlp/utils/_jsruntime.py" ]
[]
true
yt-dlp/yt-dlp
16,788
issue_to_patch
[Announcement] Raising the minimum supported version of Deno to v2.3.0 Deno is an [`ejs`](https://github.com/yt-dlp/ejs)-compatible JavaScript runtime. As of the next yt-dlp and/or ejs release, the minimum supported version of Deno will be raised from `v2.0.0` to `v2.3.0`. This is being done for security reasons: De...
[ie/youtube] Drop support for `deno<2.3.0`
Closes #16767 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) including [yt-dlp coding ...
125bb40468a8618e592d607c1c496095fda764f0
2942dc0334d22b03e50b156181d93b7a267c3c79
diff --git a/.github/workflows/challenge-tests.yml b/.github/workflows/challenge-tests.yml index 287a115bd10d..c76b9fa84c83 100644 --- a/.github/workflows/challenge-tests.yml +++ b/.github/workflows/challenge-tests.yml @@ -50,7 +50,7 @@ jobs: - name: Install Deno uses: denoland/setup-deno@667a34cdef165d8d2b...
[ ".github/workflows/challenge-tests.yml", "yt_dlp/utils/_jsruntime.py" ]
[]
true
yt-dlp/yt-dlp
16,786
issue_to_patch
[Announcement] Bun support is now limited and deprecated Due to foreseeable compatibility and security issues, yt-dlp's support for Bun as an [`ejs`](https://github.com/yt-dlp/ejs)-compatible JavaScript runtime is being both limited and deprecated. As of the next yt-dlp and/or ejs release, only Bun versions `1.2.11` ...
[ie/youtube] Drop support for `bun<1.2.11` and `bun>1.3.14`
Closes #16766 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) including [yt-dlp coding co...
b536d72c869e47eb048fc54746e4d2f384706d2f
efc3fcab514e9f43931815ff22dbbbd70acb38b4
diff --git a/.github/workflows/challenge-tests.yml b/.github/workflows/challenge-tests.yml index 36f973f9b77d..f55cf68f47d0 100644 --- a/.github/workflows/challenge-tests.yml +++ b/.github/workflows/challenge-tests.yml @@ -54,8 +54,7 @@ jobs: - name: Install Bun uses: oven-sh/setup-bun@0c5077e51419868618aea...
[ ".github/workflows/challenge-tests.yml", "test/test_jsc/conftest.py", "yt_dlp/extractor/youtube/jsc/_builtin/bun.py", "yt_dlp/extractor/youtube/pot/_director.py", "yt_dlp/extractor/youtube/pot/_provider.py", "yt_dlp/utils/_jsruntime.py" ]
[]
diff --git a/test/test_jsc/conftest.py b/test/test_jsc/conftest.py index 28d673412246..07c30b7b06ad 100644 --- a/test/test_jsc/conftest.py +++ b/test/test_jsc/conftest.py @@ -45,7 +45,7 @@ def trace(self, message: str): def debug(self, message: str, *, once=False): print(f'debug: {message}') - def in...
true
yt-dlp/yt-dlp
14,257
issue_to_patch
Clarify third-party licenses and license Windows builds under GPL due to `mutagen` <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################...
Clarify license of executables
<!-- **IMPORTANT**: PRs without the template will be CLOSED Due to the high volume of pull requests, it may be a while before your PR is reviewed. Please try to keep your pull request focused on a single bugfix or new feature. Pull requests with a vast scope and/or very large diff will take mu...
7c9b10ebc83907d37f9f65ea9d4bd6f5e3bd1371
cc6bf1c384de37365160ca50eee03d6e652fd06b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 911bdaf6afee..ab02f59beec8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -269,12 +269,11 @@ jobs: "[![Master](https://img.shields.io/badge/Master%20builds-lightblue.svg?style=for-the-badge...
[ ".github/workflows/release.yml", "README.md", "THIRD_PARTY_LICENSES.txt", "bundle/pyinstaller.py", "devscripts/generate_third_party_licenses.py" ]
[ { "comment": "```suggestion\r\nWhile yt-dlp is licensed under the [Unlicense](LICENSE), many of the release files contain code from other projects with different licenses.\r\n\r\nMost notably, the PyInstaller-bundled executables include GPLv3+ licensed code, and as such the combined work is licensed under [GPLv...
true
yt-dlp/yt-dlp
14,257
comment_to_fix
Clarify license of executables
```suggestion While yt-dlp is licensed under the [Unlicense](LICENSE), many of the release files contain code from other projects with different licenses. Most notably, the PyInstaller-bundled executables include GPLv3+ licensed code, and as such the combined work is licensed under [GPLv3+](https://www.gnu.org/lice...
7c9b10ebc83907d37f9f65ea9d4bd6f5e3bd1371
cc6bf1c384de37365160ca50eee03d6e652fd06b
diff --git a/README.md b/README.md index e582e1e53cbe..7be3266ea54c 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,17 @@ curl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import gpg --verify SHA2-256SUMS.sig SHA2-256SUMS gpg --verify SHA2-512SUMS.sig SHA2-512SUMS ``` + +#### Licensing + +...
[ "README.md" ]
[ { "comment": "```suggestion\r\nWhile yt-dlp is licensed under the [Unlicense](LICENSE), many of the release files contain code from other projects with different licenses.\r\n\r\nMost notably, the PyInstaller-bundled executables include GPLv3+ licensed code, and as such the combined work is licensed under [GPLv...
true
yt-dlp/yt-dlp
14,257
comment_to_fix
Clarify license of executables
I would like to put the note and URL on their own lines to prevent very long lines ```suggestion header = f'{d.name}' if d.license: header += f' | {d.license}' if d.comment: header += f'\nNote: {d.comment}' if d.project_url: header += f'\nURL: ...
7c9b10ebc83907d37f9f65ea9d4bd6f5e3bd1371
cc6bf1c384de37365160ca50eee03d6e652fd06b
diff --git a/devscripts/generate_third_party_licenses.py b/devscripts/generate_third_party_licenses.py new file mode 100644 index 000000000000..db615d2e352e --- /dev/null +++ b/devscripts/generate_third_party_licenses.py @@ -0,0 +1,316 @@ +import requests +from dataclasses import dataclass +from pathlib import Path +im...
[ "devscripts/generate_third_party_licenses.py" ]
[ { "comment": "I would like to put the note and URL on their own lines to prevent very long lines\r\n```suggestion\r\n header = f'{d.name}'\r\n if d.license:\r\n header += f' | {d.license}'\r\n if d.comment:\r\n header += f'\\nNote: {d.comment}'\r\n if d.project_...
true
yt-dlp/yt-dlp
16,269
issue_to_patch
[youtube] [jsc] Error solving n challenge request using "deno" provider: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'origin') ### Checklist - [x] I'm reporting that yt-dlp is broken on a **supported** site - [x] I've verified that I have **updated yt-dlp to nightly or master** ([upd...
[ie/youtube] Update ejs to 0.8.0
Closes #16256 <details open><summary>Template</summary> <!-- OPEN is intentional --> ### Before submitting a *pull request* make sure you have: - [x] At least skimmed through [contributing guidelines](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions) including [yt-dlp codin...
18656b2f2af41a138793c7012a88f467c0d90274
86eb0f9030fcbd0ecabfef759cfd40f2e3730f7c
diff --git a/Makefile b/Makefile index b4daeb88a419..de3eabd13b3b 100644 --- a/Makefile +++ b/Makefile @@ -202,9 +202,9 @@ CONTRIBUTORS: Changelog.md # The following EJS_-prefixed variables are auto-generated by devscripts/update_ejs.py # DO NOT EDIT! -EJS_VERSION = 0.7.0 -EJS_WHEEL_NAME = yt_dlp_ejs-0.7.0-py3-none...
[ "Makefile", "README.md", "pyproject.toml", "test/test_jsc/test_ejs_integration.py", "yt_dlp/extractor/youtube/_video.py", "yt_dlp/extractor/youtube/jsc/_builtin/vendor/_info.py", "yt_dlp/extractor/youtube/jsc/_builtin/vendor/yt.solver.core.js" ]
[ { "comment": "1", "path": "Makefile", "hunk": "@@ -202,9 +202,9 @@ CONTRIBUTORS: Changelog.md\n \n # The following EJS_-prefixed variables are auto-generated by devscripts/update_ejs.py\n # DO NOT EDIT!\n-EJS_VERSION = 0.7.0\n-EJS_WHEEL_NAME = yt_dlp_ejs-0.7.0-py3-none-any.whl\n-EJS_WHEEL_HASH = sha256:...
diff --git a/test/test_jsc/test_ejs_integration.py b/test/test_jsc/test_ejs_integration.py index 30aee1b69496..b2150e369e4b 100644 --- a/test/test_jsc/test_ejs_integration.py +++ b/test/test_jsc/test_ejs_integration.py @@ -53,50 +53,66 @@ def url(self, /): CHALLENGES: list[Challenge] = [ - # 20518 - Challeng...
true
yt-dlp/yt-dlp
16,743
issue_to_patch
[ci] Update 2 actions in 2 workflows
<!-- BEGIN dlp-bot generated section --> Updated with `--exclude-newer 2026-05-19T01:54:28.178549+00:00` action | old | new | diff -------|-----|-----|----- [**`github/codeql-action`**](<https://github.com/github/codeql-action>) | [v4.35.***2***](<https://github.com/github/codeql-action/releases/tag/v4.35.2>) | [v4.3...
32f1671a906bf375e5b5d39433dd13f917a8dfa7
e728d6290852c7c5fa1c911d1f684b79faaa7dc4
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 7a048015d8f5..4bc3a63be85e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -36,12 +36,12 @@ jobs: persist-credentials: false - name: Initialize CodeQL - uses: github/codeql-action/init@95e...
[ ".github/workflows/codeql.yml", ".github/workflows/test-workflows.yml" ]
[]
true
yt-dlp/yt-dlp
16,740
issue_to_patch
[build] Rename requirements files to clean up dependency graph
We have GitHub's dependency graph and dependabot security scanning enabled for the repo, and dependabot seems to be very confused by the presence of both a `uv.lock` file and a `requirements-dev.txt` file. The result is a buggy dependabot code path being reached that causes run failures: - https://github.com/yt-d...
410e0af5379c5fc5f2acb6abaa8965637f80ad76
a282538776726d08d8b6c0d6b25b5b0dddac6ccc
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecb335433747..a45a4b4e158f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -325,7 +325,7 @@ jobs: brew uninstall --ignore-dependencies python3 python3 -m venv ~/yt-dlp-build-venv s...
[ ".github/workflows/build.yml", ".github/workflows/challenge-tests.yml", ".github/workflows/core.yml", ".github/workflows/quick-test.yml", ".github/workflows/release.yml", ".github/workflows/test-workflows.yml", "bundle/docker/linux/build.sh", "bundle/requirements/build.txt", "bundle/requirements/cur...
[]
true
yt-dlp/yt-dlp
16,738
issue_to_patch
[build] Upgrade all Linux binaries to Python 3.14
Per https://www.python.org/downloads/release/python-3145/ : > Notably, the garbage collector (GC) has changed in Python 3.14.5. > > The incremental garbage collector shipped in Python 3.14.0-3.14.4 has been reverted back to the generational garbage collector from 3.13, due to a number of [reports](https://github....
a85b38621286903b9124fdb05d177983d8273ec7
99a66bd7960e8eb7ad5570eec7d562e036649302
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f76e0494d4a..ecb335433747 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -124,7 +124,7 @@ jobs: id: linux_matrix env: INPUTS: ${{ toJSON(inputs) }} - PYTHON_VERSION: '3.13' ...
[ ".github/workflows/build.yml", "bundle/docker/linux/build.sh" ]
[]
true
yt-dlp/yt-dlp
16,384
issue_to_patch
[ci] Update 8 actions in 7 workflows
<!-- [ci] Update 8 actions in 7 workflows * Bump actions/cache v5.0.3 => v5.0.5 * Bump actions/setup-node v6.3.0 => v6.4.0 * Bump actions/upload-artifact v7.0.0 => v7.0.1 * Bump denoland/setup-deno v2.0.3 => v2.0.4 * Bump github/codeql-action v4.33.0 => v4.35.2 * Bump pypa/gh-action-pypi-publish v1.13.0 => v...
c8695f52a91f0d2aabbba7b7200c1099bfa9a3e5
ddc22504a056fd7f7729a9e532cee3c830ccb53d
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b02c7280aa31..2f76e0494d4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -231,7 +231,7 @@ jobs: [[ "${version}" != "${downgraded_version}" ]] - name: Upload artifacts - uses: actions/u...
[ ".github/workflows/build.yml", ".github/workflows/challenge-tests.yml", ".github/workflows/codeql.yml", ".github/workflows/release-master.yml", ".github/workflows/release-nightly.yml", ".github/workflows/release.yml", ".github/workflows/test-workflows.yml" ]
[]
true
yt-dlp/yt-dlp
758
issue_to_patch
[bitchute] fix video in test suite
## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull request* will actually look like --- ### Before submitting a *p...
3fb4e21b38063d22b421e45b9bb24f707654c111
840b4c361abe9741d8591c26da1dbbbabdd7810d
diff --git a/yt_dlp/extractor/bitchute.py b/yt_dlp/extractor/bitchute.py index 94219a138e81..dcae6f4cc880 100644 --- a/yt_dlp/extractor/bitchute.py +++ b/yt_dlp/extractor/bitchute.py @@ -17,16 +17,16 @@ class BitChuteIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?bitchute\.com/(?:video|embed|torrent/[^/]+)/...
[ "yt_dlp/extractor/bitchute.py" ]
[]
true
ytdl-org/youtube-dl
33,227
issue_to_patch
no videos returned when trying to download youtube playlist <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-...
[YouTube] YouTube etc, pt 2
<details><summary>Boilerplate: own+yt-dlp code, bugfix+improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how...
d0283f5385acd21dd51afa2102844c8cb2fe6b62
fc469aace7097887c353d6a28fc3dc75ed7acba1
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index ec1d35c3aca..4c762bf2ccd 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -2404,60 +2404,52 @@ def format_resolution(format, default='unknown'): return res def _format_note(self, fdict): - res = '' - ...
[ "youtube_dl/YoutubeDL.py", "youtube_dl/extractor/youtube.py" ]
[]
true
ytdl-org/youtube-dl
33,216
issue_to_patch
[YouTube] Unable to download API page: HTTP Error 400: Bad Request <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checkli...
[YouTube,etc]
<details> <summary>Boilerplate: own+yt-dlp code, bug fix+improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how...
1e109aaee13a30e2a23f982410ffb3e4f73913df
2486fbbae152f689f5d538fa55d964173101a110
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 8367b6e5345..ec1d35c3aca 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -357,7 +357,7 @@ class YoutubeDL(object): _NUMERIC_FIELDS = set(( 'width', 'height', 'tbr', 'abr', 'asr', 'vbr', 'fps', 'filesize', 'filesiz...
[ "test/helper.py", "test/test_traversal.py", "test/test_utils.py", "youtube_dl/YoutubeDL.py", "youtube_dl/compat.py", "youtube_dl/extractor/common.py", "youtube_dl/extractor/youtube.py", "youtube_dl/options.py", "youtube_dl/traversal.py", "youtube_dl/utils.py" ]
[]
diff --git a/test/helper.py b/test/helper.py index 6f2129efff3..fac069d25c9 100644 --- a/test/helper.py +++ b/test/helper.py @@ -85,10 +85,10 @@ def expect_warning(self, regex): # Silence an expected warning matching a regex old_report_warning = self.report_warning - def report_warning(self, ...
true
ytdl-org/youtube-dl
33,198
issue_to_patch
Crash in dev mode when trying to download private YouTube-playlist <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checkli...
[YouTube] Rework alert handling, etc
<details> <summary>Boilerplate: own+yt-dlp code, bug fix+improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how...
82552faba6f29ced4914cd670ccd80836364fd45
49a4d31e59ddbee3603c762e9d3c56a02cacdaf3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7a8fff8449..073c4458c1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -365,7 +365,7 @@ jobs: python -m ensurepip || python -m pip --version || { \ get_pip="${{ contains(needs.select.outputs.own-pip-vers...
[ ".github/workflows/ci.yml", "youtube_dl/extractor/youtube.py" ]
[]
true
ytdl-org/youtube-dl
33,189
issue_to_patch
[YouTube] unable to extract player URL, Sign in to confirm you're not a bot <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> #...
[YouTube, misc] Back-ports from yt-dlp for broken YT player `2b83d2e0` and later
## Please follow the guide below <details> <summary>Boilerplate: yt-dlp+own code, bug fix+new features</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [...
a084c80f7bac9ae343075a97cc0fb2c1c96ade89
59da256324073e03d0fd2e36947790376e283957
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8234e0ccb6d..c7a8fff8449 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,12 +122,12 @@ jobs: ytdl-test-set: ${{ fromJSON(needs.select.outputs.test-set) }} run-tests-ext: [sh] include: - ...
[ ".github/workflows/ci.yml", "youtube_dl/__init__.py", "youtube_dl/downloader/common.py", "youtube_dl/extractor/youtube.py", "youtube_dl/options.py" ]
[]
true
ytdl-org/youtube-dl
33,109
issue_to_patch
[YouTube] Unable to decode n-parameter with player `20830619` (eg, Cannot get index 43 in: "<class 'youtube_dl.jsinterp.JS_Undefined'>") <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE #############...
[YouTube] Update extractor for 2025-04, etc
<details><summary>Boilerplate: own+yt-dlp code/bug fix+improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how ...
3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6
dfc33fe3bb742c08e9f2bfa41d87aef788c874fc
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 9e5620eefa1..8367b6e5345 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -540,10 +540,14 @@ def to_screen(self, message, skip_eol=False): """Print message to stdout if not in quiet mode.""" return self.to_stdout...
[ "test/test_cache.py", "test/test_jsinterp.py", "test/test_youtube_signature.py", "youtube_dl/YoutubeDL.py", "youtube_dl/cache.py", "youtube_dl/compat.py", "youtube_dl/extractor/common.py", "youtube_dl/extractor/youtube.py", "youtube_dl/jsinterp.py", "youtube_dl/utils.py", "youtube_dl/version.py"...
[]
diff --git a/test/test_cache.py b/test/test_cache.py index 931074aa1de..21dfb6cfcdb 100644 --- a/test/test_cache.py +++ b/test/test_cache.py @@ -63,7 +63,7 @@ def test_cache_validation(self): obj = {'x': 1, 'y': ['ä', '\\a', True]} c.store('test_cache', 'k.', obj) self.assertEqual(c.load('tes...
true
ytdl-org/youtube-dl
31,000
issue_to_patch
[common] Improvements to jwplayer extraction and parsing
<details> <summary>Boilerplate: mixed code, improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull r...
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n r'''(?s)jwplayer\\s*\\(\\s*(?P<q>'|\")(?!(?P=q)).+(?P=q)\\s*\\)(?!</script>).*?\\.\\s*setup\\s*\\(\\s*(?P<options>(?:\\([^)]*)|[^)])+)\\s*\\)''',\r\n```", "path": "youtube_dl/extractor/common.py", "hunk": "@@ -2713,7 +2714,7 @@ def manifest_url(manifest):\n \n ...
true
ytdl-org/youtube-dl
31,000
comment_to_fix
[common] Improvements to jwplayer extraction and parsing
```suggestion r'''(?s)jwplayer\s*\(\s*(?P<q>'|")(?!(?P=q)).+(?P=q)\s*\)(?!</script>).*?\.\s*setup\s*\(\s*(?P<options>(?:\([^)]*)|[^)])+)\s*\)''', ```
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n r'''(?s)jwplayer\\s*\\(\\s*(?P<q>'|\")(?!(?P=q)).+(?P=q)\\s*\\)(?!</script>).*?\\.\\s*setup\\s*\\(\\s*(?P<options>(?:\\([^)]*)|[^)])+)\\s*\\)''',\r\n```", "path": "youtube_dl/extractor/common.py", "hunk": "@@ -2713,7 +2714,7 @@ def manifest_url(manifest):\n \n ...
true
ytdl-org/youtube-dl
31,000
comment_to_fix
[common] Improvements to jwplayer extraction and parsing
```suggestion 'tbr': int_or_none(source.get('bitrate'), scale=1000), 'filesize': int_or_none(source.get('filesize')), ```
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n 'tbr': int_or_none(source.get('bitrate'), scale=1000),\r\n 'filesize': int_or_none(source.get('filesize')),\r\n```", "path": "youtube_dl/extractor/common.py", "hunk": "@@ -2847,6 +2853,9 @@ def _parse_jwplayer_formats(self, jwplayer_s...
true
ytdl-org/youtube-dl
31,000
comment_to_fix
[common] Improvements to jwplayer extraction and parsing
```suggestion flat_pl = try_get(jwplayer_data, lambda x: x.get('playlist') or True) if flat_pl is None: # not even a dict return [] # JWPlayer backward compatibility: flattened playlists # https://github.com/jwplayer/jwplayer/blob/v7.4.3/src/js/api/config....
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n flat_pl = try_get(jwplayer_data, lambda x: x.get('playlist') or True)\r\n if flat_pl is None:\r\n # not even a dict\r\n return []\r\n\r\n # JWPlayer backward compatibility: flattened playlists\r\n # https://github.com/jwplayer/jwp...
true
ytdl-org/youtube-dl
31,000
comment_to_fix
[common] Improvements to jwplayer extraction and parsing
```suggestion ```
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n```", "path": "youtube_dl/extractor/common.py", "hunk": "@@ -2833,20 +2848,25 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None,\n 'ext': ext,\n })\n else:\n+ format_id = str_or_none(sou...
true
ytdl-org/youtube-dl
31,000
comment_to_fix
[common] Improvements to jwplayer extraction and parsing
```suggestion height = parse_resolution(format_id).get('height') ```
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n height = parse_resolution(format_id).get('height')\r\n```", "path": "youtube_dl/extractor/common.py", "hunk": "@@ -2833,20 +2848,25 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None,\n 'ext': ext,\n ...
true
ytdl-org/youtube-dl
31,000
comment_to_fix
[common] Improvements to jwplayer extraction and parsing
```suggestion r'''(?s)jwplayer\s*\(\s*(?P<q>'|")(?!(?P=q)).+(?P=q)\s*\)(?!</script>).*?\.\s*setup\s*\(\s*(?P<options>(?:\([^)]*\)|[^)])+)\s*\)''', ```
47e70fff8ba3de769a31fab0b3572162094733f7
1087725db08c0ffdd1f8012ff4dba60d16f98bd9
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1f33a1e06da..a0a796d7b40 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -70,6 +70,7 @@ str_or_none, str_to_int, strip_or_none, + try_get, unescapeHTML, unified_strdate, ...
[ "youtube_dl/extractor/common.py" ]
[ { "comment": "```suggestion\r\n r'''(?s)jwplayer\\s*\\(\\s*(?P<q>'|\")(?!(?P=q)).+(?P=q)\\s*\\)(?!</script>).*?\\.\\s*setup\\s*\\(\\s*(?P<options>(?:\\([^)]*\\)|[^)])+)\\s*\\)''',\r\n```", "path": "youtube_dl/extractor/common.py", "hunk": "@@ -2713,7 +2714,7 @@ def manifest_url(manifest):\n \...
true
ytdl-org/youtube-dl
29,432
issue_to_patch
Add support for gbnews.uk ## Checklist - [x] I'm reporting a new site support request - [x] I've verified that I'm running youtube-dl version **2021.06.06** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that none of provided URLs violate any copyrights - [x] I'...
[GBNews]Add new extractor for GB News TV channel
## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull request* will actually look like --- ### Before submitting a *p...
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 402e542ae96..bee3ba22c78 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -426,6 +426,7 @@ from .gamestar import GameStarIE from .gaskrank import GaskrankIE from .gazeta import Gazeta...
[ "youtube_dl/extractor/extractors.py", "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "It turns out we can extract the Live stream in the same way:\r\n```suggestion\r\nfrom .gbnews import GBNewsIE\r\n```", "path": "youtube_dl/extractor/extractors.py", "hunk": "@@ -426,6 +426,10 @@\n from .gamestar import GameStarIE\n from .gaskrank import GaskrankIE\n from .gazeta import Gaz...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
It turns out we can extract the Live stream in the same way: ```suggestion from .gbnews import GBNewsIE ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 402e542ae96..bee3ba22c78 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -426,6 +426,7 @@ from .gamestar import GameStarIE from .gaskrank import GaskrankIE from .gazeta import Gazeta...
[ "youtube_dl/extractor/extractors.py" ]
[ { "comment": "It turns out we can extract the Live stream in the same way:\r\n```suggestion\r\nfrom .gbnews import GBNewsIE\r\n```", "path": "youtube_dl/extractor/extractors.py", "hunk": "@@ -426,6 +426,10 @@\n from .gamestar import GameStarIE\n from .gaskrank import GaskrankIE\n from .gazeta import Gaz...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
```suggestion from ..utils import ( extract_attributes, ExtractorError, T, traverse_obj, txt_or_none, url_or_none, ) ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "```suggestion\r\nfrom ..utils import (\r\n extract_attributes,\r\n ExtractorError,\r\n T,\r\n traverse_obj,\r\n txt_or_none,\r\n url_or_none,\r\n)\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unic...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
```suggestion IE_DESC = 'GB News clips, features and live stream' ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "```suggestion\r\n IE_DESC = 'GB News clips, features and live stream'\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\n+ compat_st...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
```suggestion _VALID_URL = r'https?://(?:www\.)?gbnews\.(?:uk|com)/(?:\w+/)?(?P<id>[^#?]+)' ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "```suggestion\r\n _VALID_URL = r'https?://(?:www\\.)?gbnews\\.(?:uk|com)/(?:\\w+/)?(?P<id>[^#?]+)'\r\n\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
This seems to have changed: ```suggestion _SSMP_URL = 'https://mm-v2.simplestream.com/ssmp/api.php' ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "This seems to have changed:\r\n```suggestion\r\n _SSMP_URL = 'https://mm-v2.simplestream.com/ssmp/api.php'\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+f...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Gone. ```suggestion }, 'skip': '404 not found', ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Gone.\r\n```suggestion\r\n },\r\n 'skip': '404 not found',\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\n+ compat_st...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
New tests: ```suggestion }, { 'url': 'https://www.gbnews.com/news/bbc-claudine-gay-harvard-university-antisemitism-row', 'info_dict': { 'id': '52264136', 'display_id': 'bbc-claudine-gay-harvard-university-antisemitism-row', 'ext': 'mp4', 'title...
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "New tests:\r\n```suggestion\r\n }, {\r\n 'url': 'https://www.gbnews.com/news/bbc-claudine-gay-harvard-university-antisemitism-row',\r\n 'info_dict': {\r\n 'id': '52264136',\r\n 'display_id': 'bbc-claudine-gay-harvard-university-antisemitism-row',\r\n ...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Support deeper URL paths: ```suggestion display_id = self._match_id(url).split('/')[-1] ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Support deeper URL paths:\r\n```suggestion\r\n display_id = self._match_id(url).split('/')[-1]\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..co...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Update pattern: ```suggestion video_data = self._search_regex( r'(<div\s[^>]*\bclass\s*=\s*(\'|")(?!.*sidebar\b)simplestream(?:\s[\s\w$-]*)?\2[^>]*>)', webpage, 'video data') ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Update pattern:\r\n```suggestion\r\n video_data = self._search_regex(\r\n r'(<div\\s[^>]*\\bclass\\s*=\\s*(\\'|\")(?!.*sidebar\\b)simplestream(?:\\s[\\s\\w$-]*)?\\2[^>]*>)',\r\n webpage, 'video data')\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
```suggestion ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "```suggestion\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\n+ compat_str,\n+)\n+from ..utils import (\n+ extract_attributes,\n+...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
`video_data` is known to be a `dict`. ```suggestion ss_id = video_data.get('data-id') ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "`video_data` is known to be a `dict`.\r\n```suggestion\r\n ss_id = video_data.get('data-id')\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..comp...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Rework, providing default `env` from site JS: ```suggestion json_data = self._download_json( self._SSMP_URL, display_id, note='Downloading Simplestream JSON metadata', errnote='Unable to download Simplestream JSON metadata', query={ 'id': ss...
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Rework, providing default `env` from site JS:\r\n```suggestion\r\n json_data = self._download_json(\r\n self._SSMP_URL, display_id,\r\n note='Downloading Simplestream JSON metadata',\r\n errnote='Unable to download Simplestream JSON metadata',\r\n ...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
This is the actual video ID: ```suggestion uvid = video_data['data-uvid'] ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "This is the actual video ID:\r\n```suggestion\r\n uvid = video_data['data-uvid']\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Rework with `uvid`: ```suggestion stream_data = self._download_json( '%s/api/%s/stream/%s' % (meta_url, 'show' if dtype == 'vod' else dtype, uvid), uvid, query={ 'key': video_data.get('data-key'), 'platform': self._PLATFORM, ...
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Rework with `uvid`:\r\n```suggestion\r\n stream_data = self._download_json(\r\n '%s/api/%s/stream/%s' % (meta_url, 'show' if dtype == 'vod' else dtype, uvid),\r\n uvid,\r\n query={\r\n 'key': video_data.get('data-key'),\r\n 'pla...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Now we can do this: ```suggestion self.report_drm(uvid) ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Now we can do this:\r\n```suggestion\r\n self.report_drm(uvid)\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\n+ compat_s...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
Simplify: ```suggestion formats = self._extract_m3u8_formats( stream_url, uvid, ext='mp4', entry_protocol='m3u8_native', fatal=False) ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "Simplify:\r\n```suggestion\r\n formats = self._extract_m3u8_formats(\r\n stream_url, uvid, ext='mp4', entry_protocol='m3u8_native',\r\n fatal=False)\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future_...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
```suggestion ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "```suggestion\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\n+ compat_str,\n+)\n+from ..utils import (\n+ extract_attributes,\n+...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
```suggestion 'id': uvid, 'display_id': display_id, 'title': (traverse_obj(stream_data, ('title', T(txt_or_none))) or self._og_search_title(webpage, default=None) or display_id.replace('-', ' ').capitalize()), 'description...
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "```suggestion\r\n 'id': uvid,\r\n 'display_id': display_id,\r\n 'title': (traverse_obj(stream_data, ('title', T(txt_or_none)))\r\n or self._og_search_title(webpage, default=None)\r\n or display_id.replace('-', ' ').capitali...
true
ytdl-org/youtube-dl
29,432
comment_to_fix
[GBNews]Add new extractor for GB News TV channel
No longer needed. ```suggestion ```
b7fca0fab36c71fee02d6ecf81acbbaa46942be4
320f89ef892f6bc3681492f5ff1c176a3433108e
diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py new file mode 100644 index 00000000000..f04f30e5afb --- /dev/null +++ b/youtube_dl/extractor/gbnews.py @@ -0,0 +1,139 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor +from ..utils import ( + ...
[ "youtube_dl/extractor/gbnews.py" ]
[ { "comment": "No longer needed.\r\n```suggestion\r\n```", "path": "youtube_dl/extractor/gbnews.py", "hunk": "@@ -0,0 +1,152 @@\n+# coding: utf-8\n+from __future__ import unicode_literals\n+\n+from .common import InfoExtractor\n+from ..compat import (\n+ compat_str,\n+)\n+from ..utils import (\n+ e...
true
ytdl-org/youtube-dl
32,987
issue_to_patch
[YOUTUBE] ERROR: Unable to extract nsig function code (caused by RegexNotFoundError('Unable to extract Initial JS player n function name... <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE #########...
[YouTube] Fix nsig challenge for player `3bb1f723`
<details><summary>Boilerplate: mixed code, bug fix</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull reque...
c5098961b04ce83f4615f2a846c84f803b072639
12bc3775d963039efaf4a36b0ea124a6b5e5ca8a
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 9b0016d07ec..78704b55718 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -3170,7 +3170,7 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None, # See com/longta...
[ "test/test_jsinterp.py", "test/test_youtube_signature.py", "youtube_dl/extractor/common.py", "youtube_dl/extractor/youtube.py", "youtube_dl/jsinterp.py" ]
[ { "comment": "```suggestion\r\n # from MDN: surrogate pairs aren't handled: case 1 fails, and case 2 beats Py3.2\r\n if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info <= (3, 2)):\r\n # self._test('function f(){return \"😄😄\".split(/(?:)/)}',\r\n # ...
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index c7a4f2cbf23..12e7b9b9485 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# coding: utf-8 from __future__ import unicode_literals @@ -11,7 +12,7 @@ import math import re -from youtube_dl.compa...
true
ytdl-org/youtube-dl
32,987
comment_to_fix
[YouTube] Fix nsig challenge for player `3bb1f723`
```suggestion # from MDN: surrogate pairs aren't handled: case 1 fails, and case 2 beats Py3.2 if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info <= (3, 2)): # self._test('function f(){return "😄😄".split(/(?:)/)}', # ['\ud83d', '\ude04', '\ud83d', '...
c5098961b04ce83f4615f2a846c84f803b072639
12bc3775d963039efaf4a36b0ea124a6b5e5ca8a
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index c7a4f2cbf23..12e7b9b9485 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# coding: utf-8 from __future__ import unicode_literals @@ -11,7 +12,7 @@ import math import re -from youtube_dl.compa...
[ "test/test_jsinterp.py" ]
[ { "comment": "```suggestion\r\n # from MDN: surrogate pairs aren't handled: case 1 fails, and case 2 beats Py3.2\r\n if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info <= (3, 2)):\r\n # self._test('function f(){return \"😄😄\".split(/(?:)/)}',\r\n # ...
true
ytdl-org/youtube-dl
32,987
comment_to_fix
[YouTube] Fix nsig challenge for player `3bb1f723`
```suggestion if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info < (3, 3)): ```
c5098961b04ce83f4615f2a846c84f803b072639
12bc3775d963039efaf4a36b0ea124a6b5e5ca8a
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index c7a4f2cbf23..12e7b9b9485 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# coding: utf-8 from __future__ import unicode_literals @@ -11,7 +12,7 @@ import math import re -from youtube_dl.compa...
[ "test/test_jsinterp.py" ]
[ { "comment": "```suggestion\r\n if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info < (3, 3)):\r\n```", "path": "test/test_jsinterp.py", "hunk": "@@ -424,6 +511,17 @@ def test_split(self):\n self._test(jsi, test_result, args=['t-e-s-t', '-'])\n self._test(jsi...
true
ytdl-org/youtube-dl
33,082
issue_to_patch
[YouTube] Latest release 2025.02.28 unable to download video data: HTTP Error 403: Forbidden Platform: ubuntu 18.04 ```console $ youtube-dl --version 2025.02.28 ``` Here is a verbose error: ```console $ youtube-dl -v https://www.youtube.com/watch?v=NXEbLs00bT0 --youtube-skip-dash-manifest -f mp4 [debug] ...
[YouTube] Update extractor for 2025-03, etc
<details><summary>Boilerplate: own+yt-dlp code/bug fix+improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how ...
673277e510ebd996b62a2fcc76169bf3cce29910
0da30320aefe3ca0c3096d197a496a2f102cf3b6
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 06bdfb68903..3c1272e7b05 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -18,7 +18,7 @@ compat_getpass, compat_register_utf8, compat_shlex_split, - workaround_optparse_bug9161, + _workaround_optparse_bug9161, ) ...
[ "test/test_jsinterp.py", "test/test_youtube_signature.py", "youtube_dl/__init__.py", "youtube_dl/compat.py", "youtube_dl/extractor/youtube.py", "youtube_dl/jsinterp.py" ]
[]
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index 6c34bc89620..3c9650ab62b 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -11,6 +11,7 @@ import math import re +import time from youtube_dl.compat import compat_str as str from youtube_dl.jsinterp import JS_Undefined, JSInterprete...
true
ytdl-org/youtube-dl
33,074
issue_to_patch
[YouTube] Fix channel playlist extraction
<details><summary>Boilerplate: yt-dlp code/bug fix</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull reque...
711e72c292327674c4a0593fdbb83d6347738ec9
c6f27dd88ec0c3e583a60cdeb00c2ad7fa1ab5ae
diff --git a/youtube_dl/casefold.py b/youtube_dl/casefold.py index ad9c66f8ede..712b2e7faa8 100644 --- a/youtube_dl/casefold.py +++ b/youtube_dl/casefold.py @@ -10,9 +10,10 @@ # https://github.com/unicode-org/icu/blob/main/icu4c/source/data/unidata/CaseFolding.txt # In case newly foldable Unicode characters are defin...
[ "test/test_jsinterp.py", "test/test_youtube_signature.py", "youtube_dl/casefold.py", "youtube_dl/compat.py", "youtube_dl/extractor/youtube.py", "youtube_dl/jsinterp.py" ]
[]
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index 12e7b9b9485..6c34bc89620 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -459,6 +459,10 @@ def test_bitwise_operators_typecast(self): self._test('function f(){return undefined >> 5}', 0) self._test('function f(){return ...
true
ytdl-org/youtube-dl
33,049
issue_to_patch
[YouTube] Unable to decode n-parameter with player 9c6dfc4a _Originally posted by @LaurentVB in https://github.com/ytdl-org/youtube-dl/issues/32905#issuecomment-2637984269_ >I just updated to the latest version (2025.01.23), full of hope 😅 and I'm still getting 403 errors. Forcing `-f 18` does not seem to help ...
[YouTube] Fix bit-shift coercion for player 9c6dfc4a
<details> <summary>Boilerplate: own code, bug fix</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how your *pull reque...
5975d7bb96095fae7c35e7cfcd819255a5b57087
8ba28b76105faf465d5c5331643571376aa8e7d6
diff --git a/youtube_dl/casefold.py b/youtube_dl/casefold.py index ad9c66f8ede..712b2e7faa8 100644 --- a/youtube_dl/casefold.py +++ b/youtube_dl/casefold.py @@ -10,9 +10,10 @@ # https://github.com/unicode-org/icu/blob/main/icu4c/source/data/unidata/CaseFolding.txt # In case newly foldable Unicode characters are defin...
[ "test/test_jsinterp.py", "test/test_youtube_signature.py", "youtube_dl/casefold.py", "youtube_dl/compat.py", "youtube_dl/jsinterp.py" ]
[]
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index 12e7b9b9485..6c34bc89620 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -459,6 +459,10 @@ def test_bitwise_operators_typecast(self): self._test('function f(){return undefined >> 5}', 0) self._test('function f(){return ...
true
ytdl-org/youtube-dl
32,845
issue_to_patch
[YouTube] Unable to extract nsig jsi ... <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Care...
[JSInterp, YouTube] Support YT player `b22ef6e7` etc
<details><summary>Boilerplate: own/yt-dlp code, fix/improvement</summary> ## Please follow the guide below - You will be asked some questions, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *pull request* (like that [x]) - Use *Preview* tab to see how you...
a452f9437c8a3048f75fc12f75bcfd3eed78430f
e40a428fc2cb8dff4cdbbd6bf692e1b5bf35e2c6
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 90c16e172bd..2e31a89798e 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1636,7 +1636,7 @@ def _decrypt_nsig(self, n, video_id, player_url): try: jsi, player_id, func_code = ...
[ "test/test_jsinterp.py", "test/test_youtube_signature.py", "youtube_dl/extractor/youtube.py", "youtube_dl/jsinterp.py", "youtube_dl/utils.py" ]
[ { "comment": "why not \r\n```suggestion\r\n new_member, _, rest = member.partition('.')\r\n```", "path": "youtube_dl/jsinterp.py", "hunk": "@@ -877,12 +884,35 @@ def eval_method():\n self.interpret_expression(v, local_vars, allow_recursion)\n fo...
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index da8e980207a..104e766be36 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -11,194 +11,146 @@ import math import re +from youtube_dl.compat import compat_str from youtube_dl.jsinterp import JS_Undefined, JSInterpreter +NaN = object(...
true
ytdl-org/youtube-dl
32,845
comment_to_fix
[JSInterp, YouTube] Support YT player `b22ef6e7` etc
leftover debug code?
a452f9437c8a3048f75fc12f75bcfd3eed78430f
e40a428fc2cb8dff4cdbbd6bf692e1b5bf35e2c6
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index 02adf667846..949f77775e8 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -20,7 +20,9 @@ compat_basestring, compat_chr, compat_collections_chain_map as ChainMap, + compat_filter as filter, compat_itertools_zip_l...
[ "youtube_dl/jsinterp.py" ]
[ { "comment": "leftover debug code?", "path": "youtube_dl/jsinterp.py", "hunk": "@@ -877,12 +884,35 @@ def eval_method():\n self.interpret_expression(v, local_vars, allow_recursion)\n for v in self._separate(arg_str)]\n \n- if obj == compat_str:\n+ ...
true
ytdl-org/youtube-dl
32,845
comment_to_fix
[JSInterp, YouTube] Support YT player `b22ef6e7` etc
Are these changes not unrelated? Should they happen in a separate PR?
a452f9437c8a3048f75fc12f75bcfd3eed78430f
e40a428fc2cb8dff4cdbbd6bf692e1b5bf35e2c6
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 3ec9d381190..ac1e78002b3 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -6604,27 +6604,53 @@ class _UnsafeExtensionError(Exception): ), # video MEDIA_EXTENSIONS.video, ( - 'avif', + 'asx', ...
[ "youtube_dl/utils.py" ]
[ { "comment": "Are these changes not unrelated? Should they happen in a separate PR?", "path": "youtube_dl/utils.py", "hunk": "@@ -6604,27 +6604,53 @@ class _UnsafeExtensionError(Exception):\n ),\n # video\n MEDIA_EXTENSIONS.video, (\n- 'avif',", "resolving_sha": "e...
true