before_code stringlengths 14 465k | reviewer_comment stringlengths 16 64.5k | after_code stringlengths 9 467k | diff_context stringlengths 0 97k | file_path stringlengths 5 226 | comment_line int32 0 26 | language stringclasses 37
values | quality_score float32 0.07 1 | comment_type stringclasses 9
values | comment_length int32 16 64.5k | before_lines int32 1 17.2k | after_lines int32 1 12.1k | is_negative bool 2
classes | pr_title stringlengths 1 308 | pr_number int32 1 299k | repo_name stringclasses 533
values | repo_stars int64 321 419k | repo_language stringclasses 27
values | reviewer_username stringlengths 0 39 | author_username stringlengths 2 39 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolSubjectIE,
Nh... | No issues found. | from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolSubjectIE,
Nh... | @@ -951,6 +951,7 @@
from .lbry import (
LBRYIE,
LBRYChannelIE,
+ LBRYPlaylistIE,
)
from .lci import LCIIE
from .lcp import ( | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [WIP] [ie/lbry] playlist support, fix #5982 | 8,213 | yt-dlp/yt-dlp | 132,642 | Python | drzraf | |
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolS... | No issues found. | NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolS... | @@ -81,16 +81,20 @@
from .airtv import AirTVIE
from .aitube import AitubeKZVideoIE
from .aljazeera import AlJazeeraIE
+from .allstar import (
+ AllstarIE,
+ AllstarProfileIE,
+)
from .alphaporno import AlphaPornoIE
from .altcensored import (
AltCensoredIE,
AltCensoredChannelIE,
)
-from .amara impo... | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Allstar] Add extractor | 8,274 | yt-dlp/yt-dlp | 132,642 | Python | S-Aarab | |
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NF... | No issues found. | NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NF... | @@ -444,6 +444,7 @@
from .dailymotion import (
DailymotionIE,
DailymotionPlaylistIE,
+ DailymotionSearchIE,
DailymotionUserIE,
)
from .dailywire import ( | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/dailymotion] search support, fix #6126 | 8,292 | yt-dlp/yt-dlp | 132,642 | Python | drzraf | |
def append_client(*client_names):
""" Append the first client name that exists but not already used """
for client_name in client_names:
actual_client = _split_innertube_client(client_name)[0]
if actual_client in INNERTUBE_CLIENTS:
if ... | No issues found. |
def append_client(*client_names):
""" Append the first client name that exists but not already used """
for client_name in client_names:
actual_client = _split_innertube_client(client_name)[0]
if actual_client in INNERTUBE_CLIENTS:
if ... | @@ -4560,6 +4560,14 @@ def process_language(container, base_url, lang_code, sub_name, query):
self._parse_time_text(self._get_text(vpir, 'dateText'))) or upload_date
info['upload_date'] = upload_date
+ if upload_date and live_status not in ('is_live', 'post_live', 'is_upcoming'):
+ ... | yt_dlp/extractor/youtube.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Check newly uploaded iOS HLS formats | 8,336 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,... | No issues found. | NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,... | @@ -2014,7 +2014,6 @@
from .thesun import TheSunIE
from .theweatherchannel import TheWeatherChannelIE
from .thisamericanlife import ThisAmericanLifeIE
-from .thisav import ThisAVIE
from .thisoldhouse import ThisOldHouseIE
from .thisvid import (
ThisVidIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/thisav] Remove | 8,346 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
class TestUrllibRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('handler', ['Urllib'], indirect=True)
def test_file_urls(self, handler):
# See https://github.com/ytdl-org/youtube-dl/issues/8227
tf = tempfile.NamedTemporaryFile(delete=False)
tf.write(b'foobar')
... | No issues found. |
class TestUrllibRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('handler', ['Urllib'], indirect=True)
def test_file_urls(self, handler):
# See https://github.com/ytdl-org/youtube-dl/issues/8227
tf = tempfile.NamedTemporaryFile(delete=False)
tf.write(b'foobar')
... | @@ -865,7 +865,7 @@ def request(self, *args, **kwargs):
'3 bytes read, 4 more expected'
),
(
- lambda: urllib3.exceptions.IncompleteRead(partial=3, expected=5),
+ lambda: urllib3.exceptions.ProtocolError('error', urllib3.exceptions.IncompleteRead(partial=3, expected=... | test/test_networking.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` | 8,348 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
lockV2 yt-dlp/yt-dlp-master-builds 2023.11.15.232812 win_x86_exe .+ Windows-(?:Vista|2008Server)
'''
TEST_LOCKFILE_V2 = TEST_LOCKFILE_V2_TMPL % TEST_LOCKFILE_COMMENT
TEST_LOCKFILE_ACTUAL = TEST_LOCKFILE_V2_TMPL % TEST_LOCKFILE_V1.rstrip('\n')
TEST_LOCKFILE_FORK = r'''%s# Test if a fork blocks updates to non-numeric ... | No issues found. | lockV2 yt-dlp/yt-dlp-master-builds 2023.11.15.232812 win_x86_exe .+ Windows-(?:Vista|2008Server)
'''
TEST_LOCKFILE_V2 = TEST_LOCKFILE_V2_TMPL % TEST_LOCKFILE_COMMENT
TEST_LOCKFILE_ACTUAL = TEST_LOCKFILE_V2_TMPL % TEST_LOCKFILE_V1.rstrip('\n')
TEST_LOCKFILE_FORK = r'''%s# Test if a fork blocks updates to non-numeric ... | @@ -68,25 +68,34 @@
},
}
-TEST_LOCKFILE_V1 = '''# This file is used for regulating self-update
-lock 2022.08.18.36 .+ Python 3.6
-lock 2023.11.13 .+ Python 3.7
+TEST_LOCKFILE_COMMENT = '# This file is used for regulating self-update'
+
+TEST_LOCKFILE_V1 = r'''%s
+lock 2022.08.18.36 .+ Python 3\.6
+lock 2023.11.... | test/test_update.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Remove Python 3.7 support | 8,361 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
'uploader_url': 'https://twitter.com/DavidToons_',
'description': 'Chris sounds like Linda from Bob\'s Burgers, so as an animator: this had to be done. https://t.co/WgJauwIW1w',
'tags': [],
'comment_count': int,
'upload_date': '20221007',
'age_limi... | No issues found. | 'uploader_url': 'https://twitter.com/DavidToons_',
'description': 'Chris sounds like Linda from Bob\'s Burgers, so as an animator: this had to be done. https://t.co/WgJauwIW1w',
'tags': [],
'comment_count': int,
'upload_date': '20221007',
'age_limi... | @@ -1619,6 +1619,9 @@ def _real_extract(self, url):
info['title'] = broadcast.get('status') or info.get('title')
info['uploader_id'] = broadcast.get('twitter_username') or info.get('uploader_id')
info['uploader_url'] = format_field(broadcast, 'twitter_username', 'https://twitter.com/%s', defa... | yt_dlp/extractor/twitter.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/twitter:broadcast] Support `--wait-for-video` | 8,475 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,... | No issues found. | AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,... | @@ -1416,6 +1416,7 @@
ORFTVthekIE,
ORFFM4StoryIE,
ORFRadioIE,
+ ORFPodcastIE,
ORFIPTVIE,
)
from .outsidetv import OutsideTVIE | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/orf] Add extractor for sound.orf.at podcasts | 8,486 | yt-dlp/yt-dlp | 132,642 | Python | Esokrates | |
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from ... | No issues found. | NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from ... | @@ -2498,6 +2498,7 @@
Zee5SeriesIE,
)
from .zeenews import ZeeNewsIE
+from .zenporn import ZenPornIE
from .zetland import ZetlandDKArticleIE
from .zhihu import ZhihuIE
from .zingmp3 import ( | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ZenPorn] Add extractor | 8,509 | yt-dlp/yt-dlp | 132,642 | Python | SirElderling | |
'view_count': int,
'categories': ['Science & Technology'],
'tags': [],
'thumbnail': r're:^https?://.*\.(?:jpg|webp)',
'thumbnails': 'count:42',
'chapters': 'count:20',
},
'params': {
'skip_download': 'm3u8',
},
... | No issues found. | 'view_count': int,
'categories': ['Science & Technology'],
'tags': [],
'thumbnail': r're:^https?://.*\.(?:jpg|webp)',
'thumbnails': 'count:42',
'chapters': 'count:20',
},
'params': {
'skip_download': 'm3u8',
},
... | @@ -11,6 +11,7 @@
ExtractorError,
InAdvancePagedList,
int_or_none,
+ remove_start,
traverse_obj,
update_url_query,
url_or_none,
@@ -39,11 +40,11 @@ def _create_slideslive_url(self, video_url, video_id, referer):
if not video_url and not video_id:
return
el... | yt_dlp/extractor/videoken.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Misc. (for 2023-11 release) | 8,510 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
'info_dict': {
'id': '268068288',
'ext': 'mp4',
'title': 'The Smoking Out of Bella Butts',
'description': 'md5:47e16bdb41fc8a79c83ab83af11c8b77',
'creator': 'Vitagraph Company of America',
'release_year': 1915,
}
}, {
'u... | No issues found. | 'info_dict': {
'id': '268068288',
'ext': 'mp4',
'title': 'The Smoking Out of Bella Butts',
'description': 'md5:47e16bdb41fc8a79c83ab83af11c8b77',
'creator': 'Vitagraph Company of America',
'release_year': 1915,
}
}, {
'u... | @@ -1,5 +1,5 @@
from .common import InfoExtractor
-from ..utils import unified_strdate
+from ..utils import int_or_none
class HarpodeonIE(InfoExtractor):
@@ -14,7 +14,7 @@ class HarpodeonIE(InfoExtractor):
'title': 'The Smoking Out of Bella Butts',
'description': 'md5:47e16bdb41fc8a79c83... | yt_dlp/extractor/harpodeon.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Improve documentation and usage of release_year | 8,524 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolSubjectIE,
... | No issues found. | )
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolSubjectIE,
... | @@ -2301,6 +2301,7 @@
VidioLiveIE
)
from .vidlii import VidLiiIE
+from .vidly import VidlyIE
from .viewlift import (
ViewLiftIE,
ViewLiftEmbedIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/vidly] Add extractor | 8,612 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
'episode_number': 1,
'season': 'Season 9',
'season_number': 9,
'series': 'Duck Dynasty',
},
'params': {
# m3u8 download
'skip_download': True,
},
'add_ie': ['ThePlatform'],
'skip': 'This video is only availab... | No issues found. | 'episode_number': 1,
'season': 'Season 9',
'season_number': 9,
'series': 'Duck Dynasty',
},
'params': {
# m3u8 download
'skip_download': True,
},
'add_ie': ['ThePlatform'],
'skip': 'This video is only availab... | @@ -121,11 +121,21 @@ class AENetworksIE(AENetworksBaseIE):
'info_dict': {
'id': '22253814',
'ext': 'mp4',
- 'title': 'Winter is Coming',
- 'description': 'md5:641f424b7a19d8e24f26dea22cf59d74',
+ 'title': 'Winter Is Coming',
+ 'description'... | yt_dlp/extractor/aenetworks.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Improving ThePlatform Metadata extraction | 8,635 | yt-dlp/yt-dlp | 132,642 | Python | trainman261 | |
if tag == 'latest':
requested_version = api_info['tag_name']
else:
match = re.search(rf'\s+(?P<version>{_VERSION_RE.pattern})$', api_info.get('name', ''))
requested_version = match.group('version') if match else None
if re.fullmatch(_HASH_PATTERN, api_info.ge... | No issues found. | if tag == 'latest':
requested_version = api_info['tag_name']
else:
match = re.search(rf'\s+(?P<version>{_VERSION_RE.pattern})$', api_info.get('name', ''))
requested_version = match.group('version') if match else None
if re.fullmatch(_HASH_PATTERN, api_info.ge... | @@ -206,13 +206,14 @@ class Updater:
# XXX: use class variables to simplify testing
_channel = CHANNEL
_origin = ORIGIN
+ _update_sources = UPDATE_SOURCES
def __init__(self, ydl, target: str | None = None):
self.ydl = ydl
# For backwards compat, target needs to be treated as i... | yt_dlp/update.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core] Release workflow & Updater maintenance | 8,640 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk i... | No issues found. | from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk i... | @@ -363,6 +363,7 @@
from .cliprs import ClipRsIE
from .closertotruth import CloserToTruthIE
from .cloudflarestream import CloudflareStreamIE
+from .cloudycdn import CloudyCDNIE
from .clubic import ClubicIE
from .clyp import ClypIE
from .cmt import CMTIE
@@ -987,6 +988,11 @@
LRTVODIE,
LRTStreamIE
)
+fro... | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [lsm] Add extractor | 8,643 | yt-dlp/yt-dlp | 132,642 | Python | Caesim404 | |
on = js_to_json('{0xff:0xff}')
self.assertEqual(json.loads(on), {'255': 255})
on = js_to_json('{/*comment\n*/0xff/*comment\n*/:/*comment\n*/0xff/*comment\n*/}')
self.assertEqual(json.loads(on), {'255': 255})
on = js_to_json('{077:077}')
self.assertEqual(json.loads(on),... | No issues found. |
on = js_to_json('{0xff:0xff}')
self.assertEqual(json.loads(on), {'255': 255})
on = js_to_json('{/*comment\n*/0xff/*comment\n*/:/*comment\n*/0xff/*comment\n*/}')
self.assertEqual(json.loads(on), {'255': 255})
on = js_to_json('{077:077}')
self.assertEqual(json.loads(on),... | @@ -2317,23 +2317,6 @@ def test_traverse_obj(self):
self.assertEqual(traverse_obj({}, (0, slice(1)), traverse_string=True), [],
msg='branching should result in list if `traverse_string`')
- # Test is_user_input behavior
- _IS_USER_INPUT_DATA = {'range8': list(range(8))... | test/test_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [utils] `traverse_obj`: Move `is_user_input` into output template | 8,673 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolS... | No issues found. | NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolS... | @@ -1579,6 +1579,7 @@
RedBullIE,
)
from .reddit import RedditIE
+from .redge import RedCDNLivxIE
from .redgifs import (
RedGifsIE,
RedGifsSearchIE,
@@ -1710,6 +1711,7 @@
)
from .scrolller import ScrolllerIE
from .seeker import SeekerIE
+from .sejmpl import SejmIE
from .senalcolombia import SenalCo... | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | redcdn livx and sejm.pl extractors | 8,676 | yt-dlp/yt-dlp | 132,642 | Python | selfisekai | |
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import... | No issues found. | from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import... | @@ -989,6 +989,10 @@
LnkGoIE,
LnkIE,
)
+from .loom import (
+ LoomIE,
+ LoomFolderIE,
+)
from .lovehomeporn import LoveHomePornIE
from .lrt import (
LRTVODIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Added Extractor for Loom | 8,686 | yt-dlp/yt-dlp | 132,642 | Python | hruzgar | |
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
... | No issues found. | from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
... | @@ -150,6 +150,7 @@
)
from .arnes import ArnesIE
from .asobichannel import AsobiChannelIE, AsobiChannelTagURLIE
+from .asobistage import AsobiStageIE
from .atresplayer import AtresPlayerIE
from .atscaleconf import AtScaleConfEventIE
from .atvat import ATVAtIE | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/asobistage] Add extractor for live and archives | 8,735 | yt-dlp/yt-dlp | 132,642 | Python | pzhlkj6612 | |
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolSubjectIE,
Nh... | No issues found. | from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,
NhkForSchoolSubjectIE,
Nh... | @@ -1590,7 +1590,10 @@
from .reuters import ReutersIE
from .reverbnation import ReverbNationIE
from .rheinmaintv import RheinMainTVIE
-from .rinsefm import RinseFMIE
+from .rinsefm import (
+ RinseFMIE,
+ RinseFMArtistPlaylistIE,
+)
from .rmcdecouverte import RMCDecouverteIE
from .rockstargames import Rockst... | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [RinseFM] - Add: Artist episodes playlist | 8,794 | yt-dlp/yt-dlp | 132,642 | Python | SirElderling | |
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,... | No issues found. | NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,... | @@ -581,6 +581,7 @@
FacebookPluginsVideoIE,
FacebookRedirectURLIE,
FacebookReelIE,
+ FacebookAdsIE,
)
from .fancode import (
FancodeVodIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/facebook] Support facebook.com/ads (Meta Ad Library) | 8,870 | yt-dlp/yt-dlp | 132,642 | Python | kclauhk | |
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
... | No issues found. | NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
... | @@ -345,6 +345,10 @@
ChingariIE,
ChingariUserIE,
)
+from .chzzk import (
+ CHZZKLiveIE,
+ CHZZKVideoIE,
+)
from .cinemax import CinemaxIE
from .cinetecamilano import CinetecaMilanoIE
from .cineverse import ( | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [CHZZK] Add extractors | 8,887 | yt-dlp/yt-dlp | 132,642 | Python | DmitryScaletta | |
if actual_client in INNERTUBE_CLIENTS:
if actual_client not in all_clients:
clients.append(client_name)
all_clients.add(actual_client)
return
# Android player_response does not have microFormats which ar... | No issues found. | if actual_client in INNERTUBE_CLIENTS:
if actual_client not in all_clients:
clients.append(client_name)
all_clients.add(actual_client)
return
# Android player_response does not have microFormats which ar... | @@ -2068,7 +2068,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'title': 'Voyeur Girl',
'description': 'md5:7ae382a65843d6df2685993e90a8628f',
'upload_date': '20190312',
- 'artist': 'Stephen',
+ 'artists': ['Stephen'],
+ 'c... | yt_dlp/extractor/youtube.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie] Add new fields with proper support for multiple values | 8,917 | yt-dlp/yt-dlp | 132,642 | Python | llistochek | |
'audio_ext': 'none',
}, {
'format_id': '915',
'format_index': None,
'url': 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear3/prog_index.m3u8',
'manifest_url': 'https://devstr... | No issues found. | 'audio_ext': 'none',
}, {
'format_id': '915',
'format_index': None,
'url': 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear3/prog_index.m3u8',
'manifest_url': 'https://devstr... | @@ -1906,6 +1906,15 @@ def test_response_with_expected_status_returns_content(self):
expected_status=TEAPOT_RESPONSE_STATUS)
self.assertEqual(content, TEAPOT_RESPONSE_BODY)
+ def test_search_nextjs_data(self):
+ data = '<script id="__NEXT_DATA__" type="application/json">{"props":{}}</s... | test/test_InfoExtractor.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie] Make `_search_nextjs_data` non fatal | 8,937 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,... | No issues found. | AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBangumiIE,... | @@ -1253,6 +1253,7 @@
NicovideoTagURLIE,
NiconicoLiveIE,
)
+from .ninaprotocol import NinaProtocolIE
from .ninecninemedia import (
NineCNineMediaIE,
CPTwentyFourIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [NinaProtocol] Add extractor | 8,946 | yt-dlp/yt-dlp | 132,642 | Python | RaduManole | |
downloader.add_option(
'--abort-on-unavailable-fragments', '--no-skip-unavailable-fragments',
action='store_false', dest='skip_unavailable_fragments',
help='Abort download if a fragment is unavailable (Alias: --no-skip-unavailable-fragments)')
downloader.add_option(
'--keep-fragm... | No issues found. | downloader.add_option(
'--abort-on-unavailable-fragments', '--no-skip-unavailable-fragments',
action='store_false', dest='skip_unavailable_fragments',
help='Abort download if a fragment is unavailable (Alias: --no-skip-unavailable-fragments)')
downloader.add_option(
'--keep-fragm... | @@ -151,7 +151,7 @@ def format_option_strings(option):
class _YoutubeDLOptionParser(optparse.OptionParser):
- # optparse is deprecated since python 3.2. So assume a stable interface even for private methods
+ # optparse is deprecated since Python 3.2. So assume a stable interface even for private methods
... | yt_dlp/options.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [docs] Misc Cleanup | 8,977 | yt-dlp/yt-dlp | 132,642 | Python | pukkandan | |
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBa... | No issues found. | NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
NhkForSchoolBa... | @@ -1216,7 +1216,10 @@
NexxIE,
NexxEmbedIE,
)
-from .nfb import NFBIE
+from .nfb import (
+ NFBIE,
+ NFBSeriesIE,
+)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/nfb] Add series extractor, episode support, onf.ca support | 8,997 | yt-dlp/yt-dlp | 132,642 | Python | rrgomes | |
if not proxy.lower().startswith('socks') and self._proxy_ssl_context:
extra_kwargs['proxy_ssl_context'] = self._proxy_ssl_context
return super().proxy_manager_for(proxy, **proxy_kwargs, **self._pm_args, **extra_kwargs)
def cert_verify(*args, **kwargs):
# lean on SSLContext for c... | No issues found. | if not proxy.lower().startswith('socks') and self._proxy_ssl_context:
extra_kwargs['proxy_ssl_context'] = self._proxy_ssl_context
return super().proxy_manager_for(proxy, **proxy_kwargs, **self._pm_args, **extra_kwargs)
def cert_verify(*args, **kwargs):
# lean on SSLContext for c... | @@ -253,10 +253,10 @@ def __init__(self, *args, **kwargs):
# Forward urllib3 debug messages to our logger
logger = logging.getLogger('urllib3')
- handler = Urllib3LoggingHandler(logger=self._logger)
- handler.setFormatter(logging.Formatter('requests: %(message)s'))
- handler.add... | yt_dlp/networking/_requests.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [rh] Remove additional logging handlers on close | 9,032 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArt... | No issues found. | )
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArt... | @@ -1337,6 +1337,7 @@
NYTimesIE,
NYTimesArticleIE,
NYTimesCookingIE,
+ NYTimesCookingRecipeIE,
)
from .nuvid import NuvidIE
from .nzherald import NZHeraldIE | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/NYTimes] - Extractor overhaul - Article, Cooking Recipes and Guides | 9,075 | yt-dlp/yt-dlp | 132,642 | Python | SirElderling | |
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnet... | No issues found. | NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import NFBIE
from .nfhsnet... | @@ -138,6 +138,10 @@
ARDMediathekCollectionIE,
ARDIE,
)
+from .art19 import (
+ Art19IE,
+ Art19ShowIE,
+)
from .arte import (
ArteTVIE,
ArteTVEmbedIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/art19] Add extractors | 9,099 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb ... | No issues found. | from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb ... | @@ -1386,6 +1386,7 @@
from .orf import (
ORFTVthekIE,
ORFFM4StoryIE,
+ ORFONIE,
ORFRadioIE,
ORFPodcastIE,
ORFIPTVIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/orf] Add ORFON extractor | 9,113 | yt-dlp/yt-dlp | 132,642 | Python | HobbyistDev | |
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsP... | No issues found. | NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsP... | @@ -1113,12 +1113,15 @@
from .melonvod import MelonVODIE
from .metacritic import MetacriticIE
from .mgtv import MGTVIE
-from .microsoftembed import MicrosoftEmbedIE
-from .microsoftstream import MicrosoftStreamIE
-from .microsoftvirtualacademy import (
- MicrosoftVirtualAcademyCourseIE,
- MicrosoftVirtualAcade... | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/microsoftembed] Add extractors for dev materials | 9,177 | yt-dlp/yt-dlp | 132,642 | Python | c-basalt | |
'duration': 586,
}
}, {
'url': 'https://utreon.com/v/jerJw5EOOVU',
'info_dict': {
'id': 'jerJw5EOOVU',
'ext': 'mp4',
'title': 'When I\'m alone, I love to reflect in peace, to make my dreams come true... [Quotes and Poems]',
'descrip... | No issues found. | 'duration': 586,
}
}, {
'url': 'https://utreon.com/v/jerJw5EOOVU',
'info_dict': {
'id': 'jerJw5EOOVU',
'ext': 'mp4',
'title': 'When I\'m alone, I love to reflect in peace, to make my dreams come true... [Quotes and Poems]',
'descrip... | @@ -10,7 +10,8 @@
class UtreonIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?utreon\.com/v/(?P<id>[\w-]+)'
+ IE_NAME = 'playeur'
+ _VALID_URL = r'https?://(?:www\.)?(?:utreon|playeur)\.com/v/(?P<id>[\w-]+)'
_TESTS = [{
'url': 'https://utreon.com/v/z_I7ikQbuDw',
'info_dict': ... | yt_dlp/extractor/utreon.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Playeur] Rename Utreon to Playeur | 9,182 | yt-dlp/yt-dlp | 132,642 | Python | DmitryScaletta | |
help='Skip unavailable fragments for DASH, hlsnative and ISM downloads (default) (Alias: --no-abort-on-unavailable-fragments)')
downloader.add_option(
'--abort-on-unavailable-fragments', '--no-skip-unavailable-fragments',
action='store_false', dest='skip_unavailable_fragments',
help=... | No issues found. | help='Skip unavailable fragments for DASH, hlsnative and ISM downloads (default) (Alias: --no-abort-on-unavailable-fragments)')
downloader.add_option(
'--abort-on-unavailable-fragments', '--no-skip-unavailable-fragments',
action='store_false', dest='skip_unavailable_fragments',
help=... | @@ -196,9 +196,12 @@ def parse_known_args(self, args=None, values=None, strict=True):
raise
return self.check_values(self.values, self.largs)
- def error(self, msg):
+ def _generate_error_message(self, msg):
msg = f'{self.get_prog_name()}: error: {str(msg).strip()}\n'
- ... | yt_dlp/options.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core] Warn user when directly launching `yt-dlp.exe` | 9,250 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
def _format_issues(self, issues):
return ', '.join(f'[#{issue}]({self.repo_url}/issues/{issue})' for issue in issues)
@staticmethod
def _format_authors(authors):
return ', '.join(f'[{author}]({BASE_URL}/{author})' for author in authors)
@property
def repo_url(self):
return ... | No issues found. | def _format_issues(self, issues):
return ', '.join(f'[#{issue}]({self.repo_url}/issues/{issue})' for issue in issues)
@staticmethod
def _format_authors(authors):
return ', '.join(f'[{author}]({BASE_URL}/{author})' for author in authors)
@property
def repo_url(self):
return ... | @@ -445,7 +445,32 @@ def get_new_contributors(contributors_path, commits):
return sorted(new_contributors, key=str.casefold)
-if __name__ == '__main__':
+def create_changelog(args):
+ logging.basicConfig(
+ datefmt='%Y-%m-%d %H-%M-%S', format='{asctime} | {levelname:<8} | {message}',
+ level=l... | devscripts/make_changelog.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [build] Update changelog for tarball and sdist | 9,425 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
def _get_proxies(self, request):
return (request.proxies or self.proxies).copy()
def _check_url_scheme(self, request: Request):
scheme = urllib.parse.urlparse(request.url).scheme.lower()
if self._SUPPORTED_URL_SCHEMES is not None and scheme not in self._SUPPORTED_URL_SCHEMES:
... | No issues found. |
def _get_proxies(self, request):
return (request.proxies or self.proxies).copy()
def _check_url_scheme(self, request: Request):
scheme = urllib.parse.urlparse(request.url).scheme.lower()
if self._SUPPORTED_URL_SCHEMES is not None and scheme not in self._SUPPORTED_URL_SCHEMES:
... | @@ -463,9 +463,10 @@ def headers(self, new_headers: Mapping):
else:
raise TypeError('headers must be a mapping')
- def update(self, url=None, data=None, headers=None, query=None):
+ def update(self, url=None, data=None, headers=None, query=None, extensions=None):
self.data = data ... | yt_dlp/networking/common.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie] Add extractor impersonate API | 9,474 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
},
{
# glomex:embed
'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
'info_dict': {
'id': 'v-ch2nkhcirwc9-sf',
'ext': 'mp4',
'title': 'md5:... | No issues found. | },
{
# glomex:embed
'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
'info_dict': {
'id': 'v-ch2nkhcirwc9-sf',
'ext': 'mp4',
'title': 'md5:... | @@ -2104,22 +2104,6 @@ class GenericIE(InfoExtractor):
'age_limit': 0,
},
},
- {
- 'note': 'JW Player embed with unicode-escape sequences in URL',
- 'url': 'https://www.medici.tv/en/concerts/lahav-shani-mozart-mahler-israel-philharmonic-abu-dhabi-class... | yt_dlp/extractor/generic.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/medici] Fix extractor | 9,518 | yt-dlp/yt-dlp | 132,642 | Python | Offert4324 | |
'remove key if branch in dict key not successful'
def test_traversal_default(self):
_DEFAULT_DATA = {'None': None, 'int': 0, 'list': []}
assert traverse_obj(_DEFAULT_DATA, 'fail') is None, \
'default value should be `None`'
assert traverse_obj(_DEFAULT_DATA, 'fail',... | No issues found. | 'remove key if branch in dict key not successful'
def test_traversal_default(self):
_DEFAULT_DATA = {'None': None, 'int': 0, 'list': []}
assert traverse_obj(_DEFAULT_DATA, 'fail') is None, \
'default value should be `None`'
assert traverse_obj(_DEFAULT_DATA, 'fail',... | @@ -377,3 +377,35 @@ def test_traversal_xml_etree(self):
'special transformations should act on current element'
assert traverse_obj(etree, ('country', 0, ..., 'text()', {int_or_none})) == [1, 2008, 141100], \
'special transformations should act on current element'
+
+ def test_tra... | test/test_traversal.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [utils] `traverse_obj`: Allow unbranching using `all` and `any` | 9,571 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
{'id': 'id 1', 'height': 1080, 'width': 1920},
{'id': 'id 2', 'height': 720},
{'id': 'id 3'}
]
}
def test_prepare_outtmpl_and_filename(self):
def test(tmpl, expected, *, info=None, **params):
params['outtmpl'] = tmpl
ydl = FakeYDL(para... | No issues found. | {'id': 'id 1', 'height': 1080, 'width': 1920},
{'id': 'id 2', 'height': 720},
{'id': 'id 3'}
]
}
def test_prepare_outtmpl_and_filename(self):
def test(tmpl, expected, *, info=None, **params):
params['outtmpl'] = tmpl
ydl = FakeYDL(para... | @@ -707,6 +707,13 @@ def test(tmpl, expected, *, info=None, **params):
test('%(width)06d.%%(ext)s', 'NA.%(ext)s')
test('%%(width)06d.%(ext)s', '%(width)06d.mp4')
+ # Sanitization options
+ test('%(title3)s', (None, 'foo⧸bar⧹test'))
+ test('%(title5)s', (None, 'aei_A'), restrictf... | test/test_YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Don't sanitize filename on Unix when `--no-windows-filenames` | 9,591 | yt-dlp/yt-dlp | 132,642 | Python | pukkandan | |
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl impo... | No issues found. | )
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
NextMediaIE,
NextMediaActionNewsIE,
AppleDailyIE,
NextTVIE,
)
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl impo... | @@ -876,6 +876,7 @@
from .jiosaavn import (
JioSaavnSongIE,
JioSaavnAlbumIE,
+ JioSaavnPlaylistIE,
)
from .jove import JoveIE
from .joj import JojIE | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/jiosaavn] Support playlists | 9,622 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
media_src = base_path_data.get('media_src')
if not media_src:
continue
video_url = media_src + video_url
if video_url in urls:
continue
urls.append(video_url)
format_id = video_file.get('bitrate')
... | No issues found. | media_src = base_path_data.get('media_src')
if not media_src:
continue
video_url = media_src + video_url
if video_url in urls:
continue
urls.append(video_url)
format_id = video_file.get('bitrate')
... | @@ -251,6 +251,11 @@ def _extract_ngtv_info(self, media_id, tokenizer_query, software_statement, ap_d
'end_time': start_time + chapter_duration,
})
+ if is_live:
+ for f in formats:
+ # Prevent ffmpeg from adding its own http headers or el... | yt_dlp/extractor/turner.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/tbs] Fix truTV support | 9,683 | yt-dlp/yt-dlp | 132,642 | Python | ischmidt20 | |
({}, {'impersonate': ImpersonateTarget('chrome')}),
({'impersonate': ImpersonateTarget('chrome', '110')}, {}),
({'impersonate': ImpersonateTarget('chrome', '99')}, {'impersonate': ImpersonateTarget('chrome', '110')}),
])
def test_impersonate(self, handler, params, extensions):
wi... | No issues found. | ({}, {'impersonate': ImpersonateTarget('chrome')}),
({'impersonate': ImpersonateTarget('chrome', '110')}, {}),
({'impersonate': ImpersonateTarget('chrome', '99')}, {'impersonate': ImpersonateTarget('chrome', '110')}),
])
def test_impersonate(self, handler, params, extensions):
wi... | @@ -785,6 +785,25 @@ def test_supported_impersonate_targets(self, handler):
assert res.status == 200
assert std_headers['user-agent'].lower() not in res.read().decode().lower()
+ def test_response_extensions(self, handler):
+ with handler() as rh:
+ for target in... | test/test_networking.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [networking] Add response extensions for impersonate info | 9,756 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
)
def process_escape(match):
JSON_PASSTHROUGH_ESCAPES = R'"\bfnrtu'
escape = match.group(1) or match.group(2)
return (Rf'\{escape}' if escape in JSON_PASSTHROUGH_ESCAPES
else R'\u00' if escape == 'x'
else '' if escape == '\n'
else escape)... | No issues found. | )
def process_escape(match):
JSON_PASSTHROUGH_ESCAPES = R'"\bfnrtu'
escape = match.group(1) or match.group(2)
return (Rf'\{escape}' if escape in JSON_PASSTHROUGH_ESCAPES
else R'\u00' if escape == 'x'
else '' if escape == '\n'
else escape)... | @@ -1638,16 +1638,14 @@ def get_filesystem_encoding():
return encoding if encoding is not None else 'utf-8'
-_WINDOWS_QUOTE_TRANS = str.maketrans({'"': '\\"', '\\': '\\\\'})
+_WINDOWS_QUOTE_TRANS = str.maketrans({'"': R'\"'})
_CMD_QUOTE_TRANS = str.maketrans({
# Keep quotes balanced by replacing them wit... | yt_dlp/utils/_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core:windows] Improve shell quoting and tests | 9,802 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
'b': '"{}"',
'c': '[]',
'd': '"[]"',
}
)),
{
'object': {},
'objectStr': '{}',
'array': [],
'arrayStr': '[]',
}
)
def test_js_to_jso... | No issues found. | 'b': '"{}"',
'c': '[]',
'd': '"[]"',
}
)),
{
'object': {},
'objectStr': '{}',
'array': [],
'arrayStr': '[]',
}
)
def test_js_to_jso... | @@ -5,6 +5,7 @@
import sys
import unittest
import warnings
+import datetime as dt
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@@ -27,6 +28,7 @@
ExtractorError,
InAdvancePagedList,
LazyList,
+ NO_DEFAULT,
OnDemandPagedList,
Popen,
age_restricte... | test/test_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Extract upload date timestamp if available | 9,856 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
# Android player_response does not have microFormats which are needed for
# extraction of some data. So we return the initial_pr with formats
# stripped out even if not requested by the user
# See: https://github.com/yt-dlp/yt-dlp/issues/501
prs.append({**init... | No issues found. | # Android player_response does not have microFormats which are needed for
# extraction of some data. So we return the initial_pr with formats
# stripped out even if not requested by the user
# See: https://github.com/yt-dlp/yt-dlp/issues/501
prs.append({**init... | @@ -3797,6 +3797,8 @@ def _needs_live_processing(self, live_status, duration):
def _extract_formats_and_subtitles(self, streaming_data, video_id, player_url, live_status, duration):
CHUNK_SIZE = 10 << 20
+ PREFERRED_LANG_VALUE = 10
+ original_language = None
itags, stream_ids = co... | yt_dlp/extractor/youtube.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Extract all formats from multi-language m3u8s | 9,875 | yt-dlp/yt-dlp | 132,642 | Python | clienthax | |
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
Newg... | No issues found. | NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
Newg... | @@ -508,6 +508,7 @@
from .dhm import DHMIE
from .digitalconcerthall import DigitalConcertHallIE
from .digiteka import DigitekaIE
+from .digiview import DigiviewIE
from .discogs import DiscogsReleasePlaylistIE
from .disney import DisneyIE
from .dispeak import DigitallySpeakingIE | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/Digiview] Add extractor | 9,902 | yt-dlp/yt-dlp | 132,642 | Python | lfavole | |
except Exception as e:
e.response = curl_res
raise
monkeypatch.setattr(res.fp, 'read', mock_read)
with pytest.raises(expected, match=match) as exc_info:
res.read()
assert exc_info.type is expected
@pytest.mark.parametrize('raised,exp... | No issues found. | except Exception as e:
e.response = curl_res
raise
monkeypatch.setattr(res.fp, 'read', mock_read)
with pytest.raises(expected, match=match) as exc_info:
res.read()
assert exc_info.type is expected
@pytest.mark.parametrize('raised,exp... | @@ -6,7 +6,7 @@
import pytest
-from yt_dlp.networking.common import Features
+from yt_dlp.networking.common import Features, DEFAULT_TIMEOUT
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@@ -523,20 +523,17 @@ def test_read_timeout(self, handler):
def test_connect_timeout... | test/test_networking.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [test] Fix connect timeout test | 9,906 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
all_clients.add(actual_client)
return
tried_iframe_fallback = False
player_url = None
skipped_clients = {}
while clients:
client, base_client, variant = _split_innertube_client(clients.pop())
player_ytcfg = master_y... | No issues found. | all_clients.add(actual_client)
return
tried_iframe_fallback = False
player_url = None
skipped_clients = {}
while clients:
client, base_client, variant = _split_innertube_client(clients.pop())
player_ytcfg = master_y... | @@ -1171,7 +1171,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
r'/(?P<id>[a-zA-Z0-9_-]{8,})/player(?:_ias\.vflset(?:/[a-zA-Z]{2,3}_[a-zA-Z]{2,3})?|-plasma-ias-(?:phone|tablet)-[a-z]{2}_[A-Z]{2}\.vflset)/base\.js$',
r'\b(?P<id>vfl[a-zA-Z0-9_-]+)\b.*?\.js$',
)
- _formats = {
+ _formats = { ... | yt_dlp/extractor/youtube.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [extractor/GoogleDrive] Add more supported types | 9,908 | yt-dlp/yt-dlp | 132,642 | Python | WyohKnott | |
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import warnings
from py2exe import freeze
from devscripts.utils import read_version
VERSION = read_version()
def main():
warnings.warn(
'py2exe builds do not support pycryptodomex and needs VC++14 to run. '
'It is... | No issues found. |
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import warnings
from py2exe import freeze
from devscripts.utils import read_version
VERSION = read_version()
def main():
warnings.warn(
'py2exe builds do not support pycryptodomex and needs VC++14 to run. '
'It is... | @@ -42,9 +42,9 @@ def main():
# py2exe cannot import Crypto
'Crypto',
'Cryptodome',
- # py2exe builds fail to run with requests >=2.32.0
- 'requests',
- 'urllib3'
+ # py2exe appears to confuse this with our so... | bundle/py2exe.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [rh:requests] Patch support for `requests` 2.31+, 2.32.2+ | 9,992 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
AppleDailyIE... | No issues found. | )
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
AppleDailyIE... | @@ -2311,6 +2311,7 @@
VideomoreVideoIE,
)
from .videopress import VideoPressIE
+from .vidflex import VidflexIE
from .vidio import (
VidioIE,
VidioLiveIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/Vidflex] Add extractor | 10,002 | yt-dlp/yt-dlp | 132,642 | Python | pzhlkj6612 | |
#!/bin/ash
set -e
source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
python -m devscripts.install_deps --include secretstorage --include curl-cffi
python -m devscripts.make_lazy_extractors
python devscripts/update-version.py -c "${channel}" -r "${origin}" "${version}"
python -m bundle.pyinstaller
deactivate
so... | No issues found. | #!/bin/ash
set -e
source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
python -m devscripts.install_deps --include secretstorage --include curl-cffi
python -m devscripts.make_lazy_extractors
python devscripts/update-version.py -c "${channel}" -r "${origin}" "${version}"
python -m bundle.pyinstaller
deactivate
so... | @@ -2,7 +2,7 @@
set -e
source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
-python -m devscripts.install_deps --include secretstorage
+python -m devscripts.install_deps --include secretstorage --include curl-cffi
python -m devscripts.make_lazy_extractors
python devscripts/update-version.py -c "${channel}" -... | bundle/docker/static/entrypoint.sh | 0 | Shell | 1 | none | 16 | 14 | 14 | true | [rh:curl_cffi] Support curl-cffi 0.7.X | 10,093 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
b'\x02_\x10\x18NSHTTPCookieAcceptPolicy\x10\x02\x08\x0b&\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00'
b'\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00(')
jar = parse_safari_cookies(cookies)
self.assertEqual(len(jar), 1)
cookie = next(ite... | No issues found. | b'\x02_\x10\x18NSHTTPCookieAcceptPolicy\x10\x02\x08\x0b&\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00'
b'\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00(')
jar = parse_safari_cookies(cookies)
self.assertEqual(len(jar), 1)
cookie = next(ite... | @@ -67,6 +67,7 @@ def test_get_desktop_environment(self):
({'XDG_CURRENT_DESKTOP': 'GNOME'}, _LinuxDesktopEnvironment.GNOME),
({'XDG_CURRENT_DESKTOP': 'GNOME:GNOME-Classic'}, _LinuxDesktopEnvironment.GNOME),
({'XDG_CURRENT_DESKTOP': 'GNOME : GNOME-Classic'}, _LinuxDesktopEnvironme... | test/test_cookies.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cookies] Fix getting Linux desktop env from `$XDG_CURRENT_DESKTOP` in Ubuntu | 10,237 | yt-dlp/yt-dlp | 132,642 | Python | peisenwang | |
},
'skip': 'Patron-only content',
}]
_RETURN_TYPE = 'video'
def _real_extract(self, url):
video_id = self._match_id(url)
post = self._call_api(
f'posts/{video_id}', video_id, query={
'fields[media]': 'download_url,mimetype,size_bytes',
... | No issues found. | },
'skip': 'Patron-only content',
}]
_RETURN_TYPE = 'video'
def _real_extract(self, url):
video_id = self._match_id(url)
post = self._call_api(
f'posts/{video_id}', video_id, query={
'fields[media]': 'download_url,mimetype,size_bytes',
... | @@ -316,7 +316,8 @@ def _real_extract(self, url):
r'(https(?:%3A%2F%2F|://)player\.vimeo\.com.+app_id(?:=|%3D)+\d+)',
traverse_obj(attributes, ('embed', 'html', {str})), 'vimeo url', fatal=False) or '')
if url_or_none(v_url) and self._request_webpage(
- ... | yt_dlp/extractor/patreon.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/vimeo] Support browser impersonation | 10,327 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
# other than UA, custom headers that differ from std_headers should be kept
assert 'sec-fetch-mode: custom' in res
assert 'x-custom: test' in res
# but when not impersonating don't remove std_headers
res = validate_and_send(
rh, Request(f'http:... | No issues found. | # other than UA, custom headers that differ from std_headers should be kept
assert 'sec-fetch-mode: custom' in res
assert 'x-custom: test' in res
# but when not impersonating don't remove std_headers
res = validate_and_send(
rh, Request(f'http:... | @@ -265,6 +265,11 @@ def do_GET(self):
self.end_headers()
self.wfile.write(payload)
self.finish()
+ elif self.path == '/get_cookie':
+ self.send_response(200)
+ self.send_header('Set-Cookie', 'test=ytdlp; path=/')
+ self.end_headers()
+ ... | test/test_networking.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [networking] Add `legacy_ssl` request extension | 10,448 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
{
'int': 123,
'intStr': '123',
'float': 1.23,
'floatStr': '1.23',
},
)
self.assertDictEqual(
json.loads(js_to_json(
'''{
'object': a,
'objectStr': ... | No issues found. | {
'int': 123,
'intStr': '123',
'float': 1.23,
'floatStr': '1.23',
},
)
self.assertDictEqual(
json.loads(js_to_json(
'''{
'object': a,
'objectStr': ... | @@ -929,6 +929,11 @@ def test_parse_codecs(self):
'acodec': 'none',
'dynamic_range': 'DV',
})
+ self.assertEqual(parse_codecs('fLaC'), {
+ 'vcodec': 'none',
+ 'acodec': 'flac',
+ 'dynamic_range': None,
+ })
self.assertEqual(parse... | test/test_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/digitalconcerthall] Extract HEVC and FLAC formats | 10,470 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
'tbr': f.get('tbr') or tbr,
'width': f.get('width') or width,
'height': f.get('height') or height,
'format_id': f.get('format_id') if not tbr else format_id,
'vcodec': vcodec,
... | No issues found. | 'tbr': f.get('tbr') or tbr,
'width': f.get('width') or width,
'height': f.get('height') or height,
'format_id': f.get('format_id') if not tbr else format_id,
'vcodec': vcodec,
... | @@ -3150,7 +3150,7 @@ def _parse_ism_formats_and_subtitles(self, ism_doc, ism_url, ism_id=None):
})
return formats, subtitles
- def _parse_html5_media_entries(self, base_url, webpage, video_id, m3u8_id=None, m3u8_entry_protocol='m3u8_native', mpd_id=None, preference=None, quality=None... | yt_dlp/extractor/common.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/learningonscreen] Add extractor | 10,590 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
'https://www.youtube.com/s/player/4c3f79c5/player_ias.vflset/en_US/base.js',
'TDCstCG66tEAO5pR9o', 'dbxNtZ14c-yWyw',
),
(
'https://www.youtube.com/s/player/c81bbb4a/player_ias.vflset/en_US/base.js',
'gre3EcLurNY2vqp94', 'Z9DfGxWP115WTg',
),
(
'https://www.youtube.... | No issues found. | 'https://www.youtube.com/s/player/4c3f79c5/player_ias.vflset/en_US/base.js',
'TDCstCG66tEAO5pR9o', 'dbxNtZ14c-yWyw',
),
(
'https://www.youtube.com/s/player/c81bbb4a/player_ias.vflset/en_US/base.js',
'gre3EcLurNY2vqp94', 'Z9DfGxWP115WTg',
),
(
'https://www.youtube.... | @@ -175,6 +175,10 @@
'https://www.youtube.com/s/player/3400486c/player_ias.vflset/en_US/base.js',
'lL46g3XifCKUZn1Xfw', 'z767lhet6V2Skl',
),
+ (
+ 'https://www.youtube.com/s/player/20dfca59/player_ias.vflset/en_US/base.js',
+ '-fLCxedkAk4LUTK2', 'O8kfRq1y1eyHGw',
+ ),
]
| test/test_youtube_signature.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Fix `n` function name extraction for player `20dfca59` | 10,611 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
finally:
if os.path.exists(temp_file.name):
try:
os.remove(temp_file.name)
except OSError:
self.report_warning(f'Unable to delete temporary file "{temp_file.name}"')
f['__working'] = success
... | No issues found. | finally:
if os.path.exists(temp_file.name):
try:
os.remove(temp_file.name)
except OSError:
self.report_warning(f'Unable to delete temporary file "{temp_file.name}"')
f['__working'] = success
... | @@ -157,7 +157,7 @@
write_json_file,
write_string,
)
-from .utils._utils import _UnsafeExtensionError, _YDLLogger
+from .utils._utils import _UnsafeExtensionError, _YDLLogger, _ProgressState
from .utils.networking import (
HTTPHeaderDict,
clean_headers,
@@ -642,20 +642,19 @@ def __init__(self, par... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core] Support emitting ConEmu progress codes | 10,649 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
def create_map(mobj):
return json.dumps(dict(json.loads(js_to_json(mobj.group(1) or '[]', vars=vars))))
code = re.sub(r'(?:new\s+)?Array\((.*?)\)', r'[\g<1>]', code)
code = re.sub(r'new Map\((\[.*?\])?\)', create_map, code)
if not strict:
code = re.sub(rf'new Date\(({STRING_RE})\)', r'... | No issues found. |
def create_map(mobj):
return json.dumps(dict(json.loads(js_to_json(mobj.group(1) or '[]', vars=vars))))
code = re.sub(r'(?:new\s+)?Array\((.*?)\)', r'[\g<1>]', code)
code = re.sub(r'new Map\((\[.*?\])?\)', create_map, code)
if not strict:
code = re.sub(rf'new Date\(({STRING_RE})\)', r'... | @@ -1964,11 +1964,30 @@ def urljoin(base, path):
return urllib.parse.urljoin(base, path)
-def int_or_none(v, scale=1, default=None, get_attr=None, invscale=1):
+def partial_application(func):
+ sig = inspect.signature(func)
+
+ @functools.wraps(func)
+ def wrapped(*args, **kwargs):
+ try:
+ ... | yt_dlp/utils/_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add extractor helpers | 10,653 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
self._test('function f() { a=0; for (i=0; i-10; i++) {a++} return a }', 10)
def test_switch(self):
jsi = JSInterpreter('''
function f(x) { switch(x){
case 1:x+=1;
case 2:x+=2;
case 3:x+=3;break;
case 4:x+=4;
... | No issues found. | self._test('function f() { a=0; for (i=0; i-10; i++) {a++} return a }', 10)
def test_switch(self):
jsi = JSInterpreter('''
function f(x) { switch(x){
case 1:x+=1;
case 2:x+=2;
case 3:x+=3;break;
case 4:x+=4;
... | @@ -403,6 +403,34 @@ def test_split(self):
self._test(jsi, [''], args=['', '-'])
self._test(jsi, [], args=['', ''])
+ def test_slice(self):
+ self._test('function f(){return [0, 1, 2, 3, 4, 5, 6, 7, 8].slice()}', [0, 1, 2, 3, 4, 5, 6, 7, 8])
+ self._test('function f(){return... | test/test_jsinterp.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [jsinterp] Improve `slice` implementation | 10,664 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy imp... | No issues found. | NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy imp... | @@ -822,7 +822,10 @@
HungamaIE,
HungamaSongIE,
)
-from .huya import HuyaLiveIE
+from .huya import (
+ HuyaLiveIE,
+ HuyaVideoIE,
+)
from .hypem import HypemIE
from .hypergryph import MonsterSirenHypergryphMusicIE
from .hytale import HytaleIE | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/huya:video] Add extractor | 10,686 | yt-dlp/yt-dlp | 132,642 | Python | hugepower | |
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from... | No issues found. | NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from... | @@ -1532,6 +1532,10 @@
PinterestCollectionIE,
PinterestIE,
)
+from .piramidetv import (
+ PiramideTVChannelIE,
+ PiramideTVIE,
+)
from .pixivsketch import (
PixivSketchIE,
PixivSketchUserIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/piramidetv] Add extractors | 10,777 | yt-dlp/yt-dlp | 132,642 | Python | kclauhk | |
'This option can be used multiple times to set the sleep for the different retry types, '
'e.g. --retry-sleep linear=1::2 --retry-sleep fragment:exp=1:20'))
downloader.add_option(
'--skip-unavailable-fragments', '--no-abort-on-unavailable-fragments',
action='store_true', dest... | No issues found. | 'This option can be used multiple times to set the sleep for the different retry types, '
'e.g. --retry-sleep linear=1::2 --retry-sleep fragment:exp=1:20'))
downloader.add_option(
'--skip-unavailable-fragments', '--no-abort-on-unavailable-fragments',
action='store_true', dest... | @@ -647,16 +647,16 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
'You can also simply specify a field to match if the field is present, '
'use "!field" to check if the field is not present, and "&" to check multiple conditions. '
'Use a "\\" to escape "&" or... | yt_dlp/options.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Misc | 10,807 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
... | No issues found. | NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoIE
from .newgrounds import (
... | @@ -555,6 +555,7 @@
DropoutIE,
DropoutSeasonIE,
)
+from .drtalks import DrTalksIE
from .drtuber import DrTuberIE
from .drtv import (
DRTVIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/DrTalks] Add extractor | 10,831 | yt-dlp/yt-dlp | 132,642 | Python | pzhlkj6612 | |
from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
AppleDailyIE,
NextMediaActionNewsIE,
NextMediaIE,
NextTVIE,
)
from .nexx import (
NexxEmbedIE,
NexxIE,
)
from .nfb ... | No issues found. | from .newgrounds import (
NewgroundsIE,
NewgroundsPlaylistIE,
NewgroundsUserIE,
)
from .newspicks import NewsPicksIE
from .newsy import NewsyIE
from .nextmedia import (
AppleDailyIE,
NextMediaActionNewsIE,
NextMediaIE,
NextTVIE,
)
from .nexx import (
NexxEmbedIE,
NexxIE,
)
from .nfb ... | @@ -1433,6 +1433,7 @@
OnetPlIE,
)
from .onionstudios import OnionStudiosIE
+from .onsen import OnsenIE
from .opencast import (
OpencastIE,
OpencastPlaylistIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/onsen] Add extractor | 10,971 | yt-dlp/yt-dlp | 132,642 | Python | doe1080 | |
'upload_date': '20160814',
},
'skip': 'HTTP Error 404 Not Found',
}, {
# no explicit title
'url': 'http://www.mitele.es/programas-tv/cuarto-milenio/57b0de3dc915da14058b4876/player',
'info_dict': {
'id': 'oyNG1iNTE6TAPP-JmCjbwfwJqqMMX3Vq',
'... | No issues found. | 'upload_date': '20160814',
},
'skip': 'HTTP Error 404 Not Found',
}, {
# no explicit title
'url': 'http://www.mitele.es/programas-tv/cuarto-milenio/57b0de3dc915da14058b4876/player',
'info_dict': {
'id': 'oyNG1iNTE6TAPP-JmCjbwfwJqqMMX3Vq',
'... | @@ -1,14 +1,13 @@
-from .telecinco import TelecincoIE
+from .telecinco import TelecincoBaseIE
from ..utils import (
int_or_none,
parse_iso8601,
)
-class MiTeleIE(TelecincoIE): # XXX: Do not subclass from concrete IE
+class MiTeleIE(TelecincoBaseIE):
IE_DESC = 'mitele.es'
_VALID_URL = r'https?... | yt_dlp/extractor/mitele.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/Telecinco] Fix extractor: Add headers | 11,142 | yt-dlp/yt-dlp | 132,642 | Python | DarkZeros | |
def _select_formats(self, formats, selector):
return list(selector({
'formats': formats,
'has_merged_format': any('none' not in (f.get('acodec'), f.get('vcodec')) for f in formats),
'incomplete_formats': (all(f.get('vcodec') == 'none' for f in formats) # No formats with ... | No issues found. | def _select_formats(self, formats, selector):
return list(selector({
'formats': formats,
'has_merged_format': any('none' not in (f.get('acodec'), f.get('vcodec')) for f in formats),
'incomplete_formats': (all(f.get('vcodec') == 'none' for f in formats) # No formats with ... | @@ -4070,6 +4070,10 @@ def get_encoding(stream):
write_debug(f'Proxy map: {self.proxies}')
write_debug(f'Request Handlers: {", ".join(rh.RH_NAME for rh in self._request_director.handlers.values())}')
+ if os.environ.get('YTDLP_NO_PLUGINS'):
+ write_debug('Plugins are forcibly disab... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [build] `make_lazy_extractors`: Force running without plugins | 11,205 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
}, help=(
'Time to sleep between retries in seconds (optionally) prefixed by the type of retry '
'(http (default), fragment, file_access, extractor) to apply the sleep to. '
'EXPR can be a number, linear=START[:END[:STEP=1]] or exp=START[:END[:BASE=2]]. '
'This op... | No issues found. | }, help=(
'Time to sleep between retries in seconds (optionally) prefixed by the type of retry '
'(http (default), fragment, file_access, extractor) to apply the sleep to. '
'EXPR can be a number, linear=START[:END[:STEP=1]] or exp=START[:END[:BASE=2]]. '
'This op... | @@ -631,13 +631,13 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
metavar='DATE', dest='datebefore', default=None,
help=(
'Download only videos uploaded on or before this date. '
- 'The date formats accepted is the same as --date'))
+ 'The date ... | yt_dlp/options.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Misc | 11,216 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
yield from (config_dir / containing_folder).iterdir()
# Load from yt-dlp config folders
candidate_locations.extend(_get_package_paths(
*get_user_config_dirs('yt-dlp'),
*get_system_config_dirs('yt-dlp'),
containing_folder='plugins'))
# Loa... | No issues found. | yield from (config_dir / containing_folder).iterdir()
# Load from yt-dlp config folders
candidate_locations.extend(_get_package_paths(
*get_user_config_dirs('yt-dlp'),
*get_system_config_dirs('yt-dlp'),
containing_folder='plugins'))
# Loa... | @@ -15,6 +15,7 @@
from .compat import functools # isort: split
from .utils import (
+ Config,
get_executable_path,
get_system_config_dirs,
get_user_config_dirs,
@@ -84,6 +85,12 @@ def _get_package_paths(*root_paths, containing_folder='plugins'):
with contextlib.suppress(ValueError): # A... | yt_dlp/plugins.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add option for specifying plugins directories | 11,277 | yt-dlp/yt-dlp | 132,642 | Python | imranh2 | |
'id': '518789',
'ext': 'mp4',
'creators': ['Institute for Strategic Dialogue Germany gGmbH (ISD)'],
'description': 'md5:85228aed433e84ff0ff9bc582abd4ea8',
'release_date': '20230302',
'series': 'Narrative über den Krieg Russlands gegen die Ukraine (... | No issues found. | 'id': '518789',
'ext': 'mp4',
'creators': ['Institute for Strategic Dialogue Germany gGmbH (ISD)'],
'description': 'md5:85228aed433e84ff0ff9bc582abd4ea8',
'release_date': '20230302',
'series': 'Narrative über den Krieg Russlands gegen die Ukraine (... | @@ -1,35 +1,20 @@
-import functools
import re
from .common import InfoExtractor
from ..utils import (
clean_html,
extract_attributes,
- get_element_text_and_html_by_tag,
- get_elements_by_class,
join_nonempty,
js_to_json,
mimetype2ext,
unified_strdate,
url_or_none,
url... | yt_dlp/extractor/bpb.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Misc | 11,347 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
f['__working'] = success
if success:
yield f
else:
self.to_screen('[info] Unable to download format {}. Skipping...'.format(f['format_id']))
def _select_formats(self, formats, selector):
return list(selector({
'formats': format... | No issues found. | f['__working'] = success
if success:
yield f
else:
self.to_screen('[info] Unable to download format {}. Skipping...'.format(f['format_id']))
def _select_formats(self, formats, selector):
return list(selector({
'formats': format... | @@ -2849,13 +2849,10 @@ def is_wellformed(f):
sanitize_string_field(fmt, 'format_id')
sanitize_numeric_fields(fmt)
fmt['url'] = sanitize_url(fmt['url'])
- if fmt.get('ext') is None:
- fmt['ext'] = determine_ext(fmt['url']).lower()
+ FormatSorte... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core] Populate format sorting fields before dependent fields | 11,353 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
self.assertEqual(decryptor.decrypt(encrypted_value), value)
def test_safari_cookie_parsing(self):
cookies = (
b'cook\x00\x00\x00\x01\x00\x00\x00i\x00\x00\x01\x00\x01\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00Y'
b'\x00\x00\x00\x00\x00\x00\x00 \x00\x00\x00\x00\x00\x00\x00... | No issues found. | self.assertEqual(decryptor.decrypt(encrypted_value), value)
def test_safari_cookie_parsing(self):
cookies = (
b'cook\x00\x00\x00\x01\x00\x00\x00i\x00\x00\x01\x00\x01\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00Y'
b'\x00\x00\x00\x00\x00\x00\x00 \x00\x00\x00\x00\x00\x00\x00... | @@ -105,6 +105,13 @@ def test_chrome_cookie_decryptor_linux_v11(self):
decryptor = LinuxChromeCookieDecryptor('Chrome', Logger())
self.assertEqual(decryptor.decrypt(encrypted_value), value)
+ def test_chrome_cookie_decryptor_linux_v10_meta24(self):
+ with MonkeyPatch(cookies, {'_ge... | test/test_cookies.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cookies] Support chrome table version 24 | 11,425 | yt-dlp/yt-dlp | 132,642 | Python | kesor | |
@returns {int[]} 16-Byte cipher
"""
rounds = len(expanded_key) // BLOCK_SIZE_BYTES - 1
data = xor(data, expanded_key[:BLOCK_SIZE_BYTES])
for i in range(1, rounds + 1):
data = sub_bytes(data)
data = shift_rows(data)
if i != rounds:
data = list(iter_mix... | No issues found. | @returns {int[]} 16-Byte cipher
"""
rounds = len(expanded_key) // BLOCK_SIZE_BYTES - 1
data = xor(data, expanded_key[:BLOCK_SIZE_BYTES])
for i in range(1, rounds + 1):
data = sub_bytes(data)
data = shift_rows(data)
if i != rounds:
data = list(iter_mix... | @@ -230,11 +230,11 @@ def aes_gcm_decrypt_and_verify(data, key, tag, nonce):
iv_ctr = inc(j0)
decrypted_data = aes_ctr_decrypt(data, key, iv_ctr + [0] * (BLOCK_SIZE_BYTES - len(iv_ctr)))
- pad_len = len(data) // 16 * 16
+ pad_len = (BLOCK_SIZE_BYTES - (len(data) % BLOCK_SIZE_BYTES)) % BLOCK_SIZE_BYTES... | yt_dlp/aes.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [aes] Fix gcm pad length calculation | 11,438 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
assert traverse_obj(_TRAVERSE_STRING_DATA, ('str', slice(0, None, 2)), traverse_string=True) == 'sr', \
'`slice` should result in string if `traverse_string`'
assert traverse_obj(_TRAVERSE_STRING_DATA, ('str', lambda i, v: i or v == 's'), traverse_string=True) == 'str', \
'functi... | No issues found. | assert traverse_obj(_TRAVERSE_STRING_DATA, ('str', slice(0, None, 2)), traverse_string=True) == 'sr', \
'`slice` should result in string if `traverse_string`'
assert traverse_obj(_TRAVERSE_STRING_DATA, ('str', lambda i, v: i or v == 's'), traverse_string=True) == 'str', \
'functi... | @@ -481,7 +481,7 @@ def test_subs_list_to_dict(self):
'id': 'name',
'data': 'content',
'url': 'url',
- }, all, {subs_list_to_dict}]) == {
+ }, all, {subs_list_to_dict(lang=None)}]) == {
'de': [{'url': 'https://example.com/subs/de.ass'}],
'en... | test/test_traversal.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [utils] `subs_list_to_dict`: Add `lang` default parameter | 11,508 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
if success:
yield f
else:
self.to_screen('[info] Unable to download format {}. Skipping...'.format(f['format_id']))
def _select_formats(self, formats, selector):
return list(selector({
'formats': formats,
'has_merged_format': a... | No issues found. | if success:
yield f
else:
self.to_screen('[info] Unable to download format {}. Skipping...'.format(f['format_id']))
def _select_formats(self, formats, selector):
return list(selector({
'formats': formats,
'has_merged_format': a... | @@ -4381,7 +4381,9 @@ def _write_thumbnails(self, label, info_dict, filename, thumb_filename_base=None
return None
for idx, t in list(enumerate(thumbnails))[::-1]:
- thumb_ext = (f'{t["id"]}.' if multiple else '') + determine_ext(t['url'], 'jpg')
+ thumb_ext = t.get('ext') ... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/soop] Fix thumbnail extraction | 11,545 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
{
'url': 'https://sovietscloset.com/video/1105',
'md5': '89fa928f183893cb65a0b7be846d8a90',
'info_dict': {
'id': 'c0e5e76f-3a93-40b4-bf01-12343c2eec5d',
'ext': 'mp4',
'title': 'Arma 3 - Zeus Games #5',
'uploader'... | No issues found. | {
'url': 'https://sovietscloset.com/video/1105',
'md5': '89fa928f183893cb65a0b7be846d8a90',
'info_dict': {
'id': 'c0e5e76f-3a93-40b4-bf01-12343c2eec5d',
'ext': 'mp4',
'title': 'Arma 3 - Zeus Games #5',
'uploader'... | @@ -1,5 +1,6 @@
+from .bunnycdn import BunnyCdnIE
from .common import InfoExtractor
-from ..utils import try_get, unified_timestamp
+from ..utils import make_archive_id, try_get, unified_timestamp
class SovietsClosetBaseIE(InfoExtractor):
@@ -43,7 +44,7 @@ class SovietsClosetIE(SovietsClosetBaseIE):
... | yt_dlp/extractor/sovietscloset.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/BunnyCDN] Add extractor | 11,586 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
for excluded_client in excluded_clients:
if excluded_client in requested_clients:
requested_clients.remove(excluded_client)
if not requested_clients:
raise ExtractorError('No player clients have been requested', expected=True)
if smuggled_data.get('is_mus... | No issues found. | for excluded_client in excluded_clients:
if excluded_client in requested_clients:
requested_clients.remove(excluded_client)
if not requested_clients:
raise ExtractorError('No player clients have been requested', expected=True)
if smuggled_data.get('is_mus... | @@ -2925,7 +2925,7 @@ def _extract_sequence_from_mpd(refresh_sequence, immediate):
# Obtain from MPD's maximum seq value
old_mpd_url = mpd_url
last_error = ctx.pop('last_error', None)
- expire_fast = immediate or last_error and isinstance(last_error, HTTPError) and last... | yt_dlp/extractor/youtube.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Bump ruff to 0.8.x | 11,608 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
other = other.sensitive()
if isinstance(other, dict):
return type(self)(other, self.sensitive())
return NotImplemented
def __setitem__(self, key: str, value, /) -> None:
if isinstance(value, bytes):
value = value.decode('latin-1')
key_title = key.... | No issues found. | other = other.sensitive()
if isinstance(other, dict):
return type(self)(other, self.sensitive())
return NotImplemented
def __setitem__(self, key: str, value, /) -> None:
if isinstance(value, bytes):
value = value.decode('latin-1')
key_title = key.... | @@ -1,9 +1,16 @@
+from __future__ import annotations
+
import collections
+import collections.abc
import random
+import typing
import urllib.parse
import urllib.request
-from ._utils import remove_start
+if typing.TYPE_CHECKING:
+ T = typing.TypeVar('T')
+
+from ._utils import NO_DEFAULT, remove_start
def... | yt_dlp/utils/networking.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [networking] Add `keep_header_casing` extension | 11,652 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoI... | No issues found. | from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import NetzkinoI... | @@ -1278,6 +1278,10 @@
)
from .nekohacker import NekoHackerIE
from .nerdcubed import NerdCubedFeedIE
+from .nest import (
+ NestClipIE,
+ NestIE,
+)
from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/nest] Add extractors | 11,747 | yt-dlp/yt-dlp | 132,642 | Python | pabs3 | |
'timestamp': 1418760010,
'upload_date': '20141216',
},
}, {
'md5': 'b8dc6b744844032dab6ba3781a7274b9',
'info_dict': {
'id': '6fe14d66853511e4833a0025900fea04',
'ext': 'mp4',
'title': 'Pánek: Odmít... | No issues found. | 'timestamp': 1418760010,
'upload_date': '20141216',
},
}, {
'md5': 'b8dc6b744844032dab6ba3781a7274b9',
'info_dict': {
'id': '6fe14d66853511e4833a0025900fea04',
'ext': 'mp4',
'title': 'Pánek: Odmít... | @@ -162,7 +162,7 @@ def _real_extract(self, url):
items = re.findall(r'(?s)playlist\.push\(({.+?})\);', webpage)
if items:
return self.playlist_result(
- [self._parse_video_metadata(i, video_id, timestamp) for i in items],
+ (self._parse_video_metadata(i, vid... | yt_dlp/extractor/dvtv.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Make more playlist extractions lazy | 11,763 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
_ = compat.compat_pycrypto_AES # Must not raise error
def test_compat_expanduser(self):
old_home = os.environ.get('HOME')
test_str = R'C:\Documents and Settings\тест\Application Data'
try:
os.environ['HOME'] = test_str
self.assertEqual(compat_expanduser(... | No issues found. | _ = compat.compat_pycrypto_AES # Must not raise error
def test_compat_expanduser(self):
old_home = os.environ.get('HOME')
test_str = R'C:\Documents and Settings\тест\Application Data'
try:
os.environ['HOME'] = test_str
self.assertEqual(compat_expanduser(... | @@ -1,6 +1,7 @@
#!/usr/bin/env python3
# Allow direct execution
+import datetime as dt
import os
import sys
import unittest
@@ -12,7 +13,7 @@
from yt_dlp import compat
from yt_dlp.compat import urllib # isort: split
-from yt_dlp.compat import compat_etree_fromstring, compat_expanduser
+from yt_dlp.compat im... | test/test_compat.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core] Calculate date by `strftime_or_none`; fix seconds in `datetime_round` | 11,902 | yt-dlp/yt-dlp | 132,642 | Python | pzhlkj6612 | |
return json.dumps(dict(json.loads(js_to_json(mobj.group(1) or '[]', vars=vars))))
code = re.sub(r'(?:new\s+)?Array\((.*?)\)', r'[\g<1>]', code)
code = re.sub(r'new Map\((\[.*?\])?\)', create_map, code)
if not strict:
code = re.sub(rf'new Date\(({STRING_RE})\)', r'\g<1>', code)
code ... | No issues found. | return json.dumps(dict(json.loads(js_to_json(mobj.group(1) or '[]', vars=vars))))
code = re.sub(r'(?:new\s+)?Array\((.*?)\)', r'[\g<1>]', code)
code = re.sub(r'new Map\((\[.*?\])?\)', create_map, code)
if not strict:
code = re.sub(rf'new Date\(({STRING_RE})\)', r'\g<1>', code)
code ... | @@ -685,7 +685,8 @@ def _sanitize_path_parts(parts):
elif part == '..':
if sanitized_parts and sanitized_parts[-1] != '..':
sanitized_parts.pop()
- sanitized_parts.append('..')
+ else:
+ sanitized_parts.append('..')
continue
... | yt_dlp/utils/_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [utils] `sanitize_path`: Fix some incorrect behavior | 11,923 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
'title': 'HIGHLIGHTS: USA bag first ever series Cup win',
'uploader': 'EGSM',
},
'skip': 'Dead link',
}, {
'url': 'http://player.theplatform.com/p/NnzsPC/widget/select/media/4Y0TlYUr_ZT7',
'only_matching': True,
}, {
'url': 'http://player.theplatfo... | No issues found. | 'title': 'HIGHLIGHTS: USA bag first ever series Cup win',
'uploader': 'EGSM',
},
'skip': 'Dead link',
}, {
'url': 'http://player.theplatform.com/p/NnzsPC/widget/select/media/4Y0TlYUr_ZT7',
'only_matching': True,
}, {
'url': 'http://player.theplatfo... | @@ -118,8 +118,9 @@ def extract_site_specific_field(field):
'categories', lambda _, v: v.get('label') in ('category', None), 'name', {str})) or None,
'tags': traverse_obj(info, ('keywords', {lambda x: re.split(r'[;,]\s?', x) if x else None})),
'location': extract_site_specific... | yt_dlp/extractor/theplatform.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/cwtv] Fix extractor | 12,207 | yt-dlp/yt-dlp | 132,642 | Python | arantius | |
report_conflict('--sponskrub', 'sponskrub', '--sponsorblock-mark', 'sponsorblock_mark')
report_conflict('--sponskrub', 'sponskrub', '--sponsorblock-remove', 'sponsorblock_remove')
report_conflict('--sponskrub-cut', 'sponskrub_cut', '--split-chapter', 'split_chapters',
val1=opts.sponskrub... | No issues found. | report_conflict('--sponskrub', 'sponskrub', '--sponsorblock-mark', 'sponsorblock_mark')
report_conflict('--sponskrub', 'sponskrub', '--sponsorblock-remove', 'sponsorblock_remove')
report_conflict('--sponskrub-cut', 'sponskrub_cut', '--split-chapter', 'split_chapters',
val1=opts.sponskrub... | @@ -1021,8 +1021,9 @@ def _real_main(argv=None):
# List of simplified targets we know are supported,
# to help users know what dependencies may be required.
(ImpersonateTarget('chrome'), 'curl_cffi'),
- (ImpersonateTarget('edge'), 'curl_cffi'),
... | yt_dlp/__init__.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [rh:curl_cffi] Support `curl_cffi` 0.10.x | 12,670 | yt-dlp/yt-dlp | 132,642 | Python | Grub4K | |
'https://www.youtube.com/s/player/dc0c6770/player_ias.vflset/en_US/base.js',
'5EHDMgYLV6HPGk_Mu-kk', 'n9lUJLHbxUI0GQ',
),
(
'https://www.youtube.com/s/player/113ca41c/player_ias.vflset/en_US/base.js',
'cgYl-tlYkhjT7A', 'hI7BBr2zUgcmMg',
),
(
'https://www.youtube.c... | No issues found. | 'https://www.youtube.com/s/player/dc0c6770/player_ias.vflset/en_US/base.js',
'5EHDMgYLV6HPGk_Mu-kk', 'n9lUJLHbxUI0GQ',
),
(
'https://www.youtube.com/s/player/113ca41c/player_ias.vflset/en_US/base.js',
'cgYl-tlYkhjT7A', 'hI7BBr2zUgcmMg',
),
(
'https://www.youtube.c... | @@ -88,6 +88,11 @@
'2aq0aqSyOoJXtK73m-uME_jv7-pT15gOFC02RFkGMqWpzEICs69VdbwQ0LDp1v7j8xx92efCJlYFYb1sUkkBSPOlPmXgIARw8JQ0qOAOAA',
'0aqSyOoJXtK73m-uME_jv7-pT15gOFC02RFkGMqWpz2ICs6EVdbwQ0LDp1v7j8xx92efCJlYFYb1sUkkBSPOlPmXgIARw8JQ0qOAOAA',
),
+ (
+ 'https://www.youtube.com/s/player/4fcd6e4a... | test/test_youtube_signature.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Fix nsig extraction for player `4fcd6e4a` | 12,748 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
report_conflict('--id', 'useid', '--output', 'outtmpl', val2=opts.outtmpl.get('default'))
report_conflict('--remux-video', 'remuxvideo', '--recode-video', 'recodevideo')
report_conflict('--sponskrub', 'sponskrub', '--remove-chapters', 'remove_chapters')
report_conflict('--sponskrub', 'sponskrub', '--spo... | No issues found. | report_conflict('--id', 'useid', '--output', 'outtmpl', val2=opts.outtmpl.get('default'))
report_conflict('--remux-video', 'remuxvideo', '--recode-video', 'recodevideo')
report_conflict('--sponskrub', 'sponskrub', '--remove-chapters', 'remove_chapters')
report_conflict('--sponskrub', 'sponskrub', '--spo... | @@ -159,6 +159,12 @@ def set_default_compat(compat_name, opt_name, default=True, remove_compat=True):
elif 'prefer-vp9-sort' in opts.compat_opts:
opts.format_sort.extend(FormatSorter._prefer_vp9_sort)
+ if 'mtime-by-default' in opts.compat_opts:
+ if opts.updatetime is None:
+ opts.... | yt_dlp/__init__.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | No longer enable `--mtime` by default | 12,781 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
def qualities(quality_ids):
""" Get a numeric quality value out of a list of possible values """
def q(qid):
try:
return quality_ids.index(qid)
except ValueError:
return -1
return q
POSTPROCESS_WHEN = ('pre_process', 'after_filter', 'video', 'before_dl', 'post_proce... | No issues found. | def qualities(quality_ids):
""" Get a numeric quality value out of a list of possible values """
def q(qid):
try:
return quality_ids.index(qid)
except ValueError:
return -1
return q
POSTPROCESS_WHEN = ('pre_process', 'after_filter', 'video', 'before_dl', 'post_proce... | @@ -54,7 +54,7 @@
from ..dependencies import xattr
from ..globals import IN_CLI
-__name__ = __name__.rsplit('.', 1)[0] # noqa: A001: Pretend to be the parent module
+__name__ = __name__.rsplit('.', 1)[0] # noqa: A001 # Pretend to be the parent module
class NO_DEFAULT: | yt_dlp/utils/_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cleanup] Misc (for 2025-04) | 12,844 | yt-dlp/yt-dlp | 132,642 | Python | seproDev | |
'playlist_mincount': 199,
}, {
'note': 'Playlists tab',
'url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w/playlists',
'info_dict': {
'id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
'title': 'lex will - Playlists',
'description': 'md5:2163c5d0ff54e... | No issues found. | 'playlist_mincount': 199,
}, {
'note': 'Playlists tab',
'url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w/playlists',
'info_dict': {
'id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
'title': 'lex will - Playlists',
'description': 'md5:2163c5d0ff54e... | @@ -524,10 +524,16 @@ def _entries(self, tab, item_id, ytcfg, delegated_session_id, visitor_data):
response = self._extract_response(
item_id=f'{item_id} page {page_num}',
query=continuation, headers=headers, ytcfg=ytcfg,
- check_get_keys=('continuationConte... | yt_dlp/extractor/youtube/_tab.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube:tab] Extract continuation from empty page | 12,938 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
)
from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import Netzkin... | No issues found. | )
from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
NetversePlaylistIE,
NetverseSearchIE,
)
from .netzkino import Netzkin... | @@ -2007,6 +2007,11 @@
TapTapMomentIE,
TapTapPostIntlIE,
)
+from .tarangplus import (
+ TarangPlusEpisodesIE,
+ TarangPlusPlaylistIE,
+ TarangPlusVideoIE,
+)
from .tass import TassIE
from .tbs import TBSIE
from .tbsjp import ( | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/tarangplus] Add extractors | 13,060 | yt-dlp/yt-dlp | 132,642 | Python | subrat-lima | |
'info_dict': {
'id': '26e_lv-8-5-1',
'ext': 'mp4',
'title': 'LV-8-5-1',
'timestamp': 1669767167,
'thumbnail': 'https://store.bstrm.net/tmsp00120/assets/media/488306/placeholder1679423604.jpg',
'duration': 1205,
'upload_date': '2... | No issues found. | 'info_dict': {
'id': '26e_lv-8-5-1',
'ext': 'mp4',
'title': 'LV-8-5-1',
'timestamp': 1669767167,
'thumbnail': 'https://store.bstrm.net/tmsp00120/assets/media/488306/placeholder1679423604.jpg',
'duration': 1205,
'upload_date': '2... | @@ -11,7 +11,7 @@
class CloudyCDNIE(InfoExtractor):
- _VALID_URL = r'(?:https?:)?//embed\.cloudycdn\.services/(?P<site_id>[^/?#]+)/media/(?P<id>[\w-]+)'
+ _VALID_URL = r'(?:https?:)?//embed\.(?P<domain>cloudycdn\.services|backscreen\.com)/(?P<site_id>[^/?#]+)/media/(?P<id>[\w-]+)'
_EMBED_REGEX = [rf'<if... | yt_dlp/extractor/cloudycdn.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/lsm] Fix extraction | 13,126 | yt-dlp/yt-dlp | 132,642 | Python | Caesim404 | |
# FIXME: Other metadata should be extracted from the clip, not from the base video
'url': 'https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQ',
'info_dict': {
'id': 'UgytZKpehg-hEMBSn3F4AaABCQ',
'ext': 'mp4',
'section_start': 29.0,
'section_en... | No issues found. | # FIXME: Other metadata should be extracted from the clip, not from the base video
'url': 'https://www.youtube.com/clip/UgytZKpehg-hEMBSn3F4AaABCQ',
'info_dict': {
'id': 'UgytZKpehg-hEMBSn3F4AaABCQ',
'ext': 'mp4',
'section_start': 29.0,
'section_en... | @@ -37,6 +37,7 @@ class YoutubeClipIE(YoutubeTabBaseInfoExtractor):
'chapters': 'count:20',
'comment_count': int,
'heatmap': 'count:100',
+ 'media_type': 'clip',
},
}]
@@ -59,6 +60,7 @@ def _real_extract(self, url):
'url': f'https://www.yout... | yt_dlp/extractor/youtube/_clip.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Extract `media_type` for all videos | 13,136 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
# external resources. See section 11.4 and section 4 of F4M spec
if bootstrap_info is None:
media_url = None
# @href is introduced in 2.0, see section 11.6 of F4M spec
if manifest_version == '2.0':
media_url = media_el.attrib.g... | No issues found. | # external resources. See section 11.4 and section 4 of F4M spec
if bootstrap_info is None:
media_url = None
# @href is introduced in 2.0, see section 11.6 of F4M spec
if manifest_version == '2.0':
media_url = media_el.attrib.g... | @@ -263,6 +263,9 @@ class InfoExtractor:
* http_chunk_size Chunk size for HTTP downloads
* ffmpeg_args Extra arguments for ffmpeg downloader (input)
* ffmpeg_args_out Extra arguments for ffmpeg downloader (output)
... | yt_dlp/extractor/common.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/niconico:live] Fix extractor and downloader | 13,158 | yt-dlp/yt-dlp | 132,642 | Python | doe1080 | |
downloader.add_option(
'-r', '--limit-rate', '--rate-limit',
dest='ratelimit', metavar='RATE',
help='Maximum download rate in bytes per second, e.g. 50K or 4.2M')
downloader.add_option(
'--throttled-rate',
dest='throttledratelimit', metavar='RATE',
help='Minimum d... | No issues found. | downloader.add_option(
'-r', '--limit-rate', '--rate-limit',
dest='ratelimit', metavar='RATE',
help='Maximum download rate in bytes per second, e.g. 50K or 4.2M')
downloader.add_option(
'--throttled-rate',
dest='throttledratelimit', metavar='RATE',
help='Minimum d... | @@ -470,7 +470,7 @@ def _preset_alias_callback(option, opt_str, value, parser):
general.add_option(
'--live-from-start',
action='store_true', dest='live_from_start',
- help='Download livestreams from the start. Currently only supported for YouTube (Experimental)')
+ help='Download l... | yt_dlp/options.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/twitch] Support `--live-from-start` | 13,202 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkForSchoolBangumiIE,
NhkForSchoolProgramListIE,
NhkForSchoolSubjectIE,
NhkRadioNewsPageIE,
NhkRadi... | No issues found. | from .nfb import (
NFBIE,
NFBSeriesIE,
)
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
NFLPlusEpisodeIE,
NFLPlusReplayIE,
)
from .nhk import (
NhkForSchoolBangumiIE,
NhkForSchoolProgramListIE,
NhkForSchoolSubjectIE,
NhkRadioNewsPageIE,
NhkRadi... | @@ -2360,7 +2360,11 @@
VoicyChannelIE,
VoicyIE,
)
-from .volejtv import VolejTVIE
+from .volejtv import (
+ VolejTVCategoryPlaylistIE,
+ VolejTVClubPlaylistIE,
+ VolejTVIE,
+)
from .voxmedia import (
VoxMediaIE,
VoxMediaVolumeIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/volejtv] Fix and add extractors | 13,226 | yt-dlp/yt-dlp | 132,642 | Python | subrat-lima | |
def _select_api_hostname(self, req_api_hostname, default_client=None):
return (self._configuration_arg('innertube_host', [''], ie_key=CONFIGURATION_ARG_KEY)[0]
or req_api_hostname or self._get_innertube_host(default_client or 'web'))
def _extract_context(self, ytcfg=None, default_clien... | No issues found. |
def _select_api_hostname(self, req_api_hostname, default_client=None):
return (self._configuration_arg('innertube_host', [''], ie_key=CONFIGURATION_ARG_KEY)[0]
or req_api_hostname or self._get_innertube_host(default_client or 'web'))
def _extract_context(self, ytcfg=None, default_clien... | @@ -35,6 +35,7 @@
class _PoTokenContext(enum.Enum):
PLAYER = 'player'
GVS = 'gvs'
+ SUBS = 'subs'
# any clients starting with _ cannot be explicitly requested by the user
@@ -787,6 +788,7 @@ def _download_webpage_with_retries(self, *args, retry_fatal=False, retry_on_stat
def _download_ytcfg(se... | yt_dlp/extractor/youtube/_base.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/youtube] Add PO token support for subtitles | 13,234 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
'episode_id': 'POS_6225d1ca-a0d5-45e3-870b-e783ee6c8a3f',
'timestamp': 1695081600,
'upload_date': '20230919',
},
}, {
'url': 'https://www.3sat.de/gesellschaft/37-grad-leben/aus-dem-leben-gerissen-102.html',
'md5': 'a903eaf8d1fd635bd3317cd2ad87ec84',
... | No issues found. | 'episode_id': 'POS_6225d1ca-a0d5-45e3-870b-e783ee6c8a3f',
'timestamp': 1695081600,
'upload_date': '20230919',
},
}, {
'url': 'https://www.3sat.de/gesellschaft/37-grad-leben/aus-dem-leben-gerissen-102.html',
'md5': 'a903eaf8d1fd635bd3317cd2ad87ec84',
... | @@ -64,7 +64,7 @@ class DreiSatIE(ZDFBaseIE):
'title': 'dein buch - Das Beste von der Leipziger Buchmesse 2025 - Teil 1',
'description': 'md5:bae51bfc22f15563ce3acbf97d2e8844',
'duration': 5399.0,
- 'thumbnail': 'https://www.3sat.de/assets/buchmesse-kerkeling-100~origi... | yt_dlp/extractor/dreisat.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/zdf] Fix language extraction and format sorting | 13,313 | yt-dlp/yt-dlp | 132,642 | Python | InvalidUsernameException | |
import pytest
from yt_dlp.extractor.youtube.pot.provider import (
PoTokenContext,
)
from yt_dlp.extractor.youtube.pot.utils import get_webpo_content_binding, ContentBindingType
class TestGetWebPoContentBinding:
@pytest.mark.parametrize('client_name, context, is_authenticated, expected', [
*[(client... | No issues found. | import pytest
from yt_dlp.extractor.youtube.pot.provider import (
PoTokenContext,
)
from yt_dlp.extractor.youtube.pot.utils import get_webpo_content_binding, ContentBindingType
class TestGetWebPoContentBinding:
@pytest.mark.parametrize('client_name, context, is_authenticated, expected', [
*[(client... | @@ -11,7 +11,7 @@ class TestGetWebPoContentBinding:
@pytest.mark.parametrize('client_name, context, is_authenticated, expected', [
*[(client, context, is_authenticated, expected) for client in [
- 'WEB', 'MWEB', 'TVHTML5', 'WEB_EMBEDDED_PLAYER', 'WEB_CREATOR', 'TVHTML5_SIMPLY_EMBEDDED_PLAYER'... | test/test_pot/test_pot_builtin_utils.py | 0 | Python | 1 | none | 16 | 48 | 48 | true | [ie/youtube] Add `tv_simply` player client | 13,389 | yt-dlp/yt-dlp | 132,642 | Python | gamer191 | |
if spritesheets:
formats.append({
'format_id': 'spritesheets',
'format_note': 'storyboard',
'acodec': 'none',
'vcodec': 'none',
'ext': 'mhtml',
'protocol': 'mhtml',
'url': 'about:invalid',... | No issues found. | if spritesheets:
formats.append({
'format_id': 'spritesheets',
'format_note': 'storyboard',
'acodec': 'none',
'vcodec': 'none',
'ext': 'mhtml',
'protocol': 'mhtml',
'url': 'about:invalid',... | @@ -1,4 +1,3 @@
-import json
import re
import urllib.parse
@@ -19,7 +18,11 @@
unsmuggle_url,
url_or_none,
)
-from ..utils.traversal import find_element, traverse_obj
+from ..utils.traversal import (
+ find_element,
+ get_first,
+ traverse_obj,
+)
class FranceTVBaseInfoExtractor(InfoExtracto... | yt_dlp/extractor/francetv.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie] Add `_search_nextjs_v13_data` helper | 13,398 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | |
from .netapp import (
NetAppCollectionIE,
NetAppVideoIE,
)
from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
Netverse... | No issues found. | from .netapp import (
NetAppCollectionIE,
NetAppVideoIE,
)
from .neteasemusic import (
NetEaseMusicAlbumIE,
NetEaseMusicDjRadioIE,
NetEaseMusicIE,
NetEaseMusicListIE,
NetEaseMusicMvIE,
NetEaseMusicProgramIE,
NetEaseMusicSingerIE,
)
from .netverse import (
NetverseIE,
Netverse... | @@ -638,6 +638,7 @@
)
from .fczenit import FczenitIE
from .fifa import FifaIE
+from .filmarchiv import FilmArchivIE
from .filmon import (
FilmOnChannelIE,
FilmOnIE, | yt_dlp/extractor/_extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [ie/filmarchiv] Add extractor | 13,490 | yt-dlp/yt-dlp | 132,642 | Python | 4elta |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.