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
}''') d = json.loads(on) self.assertEqual(d['x'], 1) self.assertEqual(d['y'], 'a') # Just drop ! prefix for now though this results in a wrong value on = js_to_json('''{ a: !0, b: !1, c: !!0, d: !!42.42, e: !!![...
No issues found.
}''') d = json.loads(on) self.assertEqual(d['x'], 1) self.assertEqual(d['y'], 'a') # Just drop ! prefix for now though this results in a wrong value on = js_to_json('''{ a: !0, b: !1, c: !!0, d: !!42.42, e: !!![...
@@ -109,6 +109,7 @@ strip_or_none, subtitles_filename, timeconvert, + traverse_obj, unescapeHTML, unified_strdate, unified_timestamp, @@ -1874,6 +1875,192 @@ def test_get_compatible_ext(self): self.assertEqual(get_compatible_ext( vcodecs=['av1'], acodecs=['mp4a'], ...
test/test_utils.py
0
Python
1
none
16
51
51
true
[core] `traverse_obj`: Various fixes
5,024
yt-dlp/yt-dlp
132,642
Python
Grub4K
continue for entry in extract_thread(continuation_items): if not entry: return yield entry continuation = self._extract_continuation({'contents': continuation_items}) if continuation: ...
No issues found.
continue for entry in extract_thread(continuation_items): if not entry: return yield entry continuation = self._extract_continuation({'contents': continuation_items}) if continuation: ...
@@ -1009,7 +1009,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): _EMBED_REGEX = [ r'''(?x) (?: - <iframe[^>]+?src=| + <(?:[0-9A-Za-z-]+?)?iframe[^>]+?src=| data-video-url=| <embed[^>]+?src=| embedSWF\(?:\s*|
yt_dlp/extractor/youtube.py
0
Python
1
none
16
51
51
true
[extractor/heise] Fix extractor
5,029
yt-dlp/yt-dlp
132,642
Python
coletdjnz
def _default_format_spec(self, info_dict, download=True): def can_merge(): merger = FFmpegMergerPP(self) return merger.available and merger.can_merge() prefer_best = ( not self.params.get('simulate') and download and ( no...
No issues found.
def _default_format_spec(self, info_dict, download=True): def can_merge(): merger = FFmpegMergerPP(self) return merger.available and merger.can_merge() prefer_best = ( not self.params.get('simulate') and download and ( no...
@@ -846,7 +846,7 @@ def to_stdout(self, message, skip_eol=False, quiet=None): 'Use "YoutubeDL.to_screen" instead') self._write_string(f'{self._bidi_workaround(message)}\n', self._out_files.out) - def to_screen(self, message, skip_eol=False, quiet=None): + def to_sc...
yt_dlp/YoutubeDL.py
0
Python
1
none
16
51
51
true
[extractor/crunchyroll:beta] Provide hardsub formats where possible
5,041
yt-dlp/yt-dlp
132,642
Python
Grub4K
def get_requested_items(self): playlist_items = self.ydl.params.get('playlist_items') playlist_start = self.ydl.params.get('playliststart', 1) playlist_end = self.ydl.params.get('playlistend') # For backwards compatibility, interpret -1 as whole list if playlist_end in (-1, ...
No issues found.
def get_requested_items(self): playlist_items = self.ydl.params.get('playlist_items') playlist_start = self.ydl.params.get('playliststart', 1) playlist_end = self.ydl.params.get('playlistend') # For backwards compatibility, interpret -1 as whole list if playlist_end in (-1, ...
@@ -413,6 +413,8 @@ def get_elements_text_and_html_by_attribute(attribute, value, html, *, tag=r'[\w Return the text (content) and the html (whole) of the tag with the specified attribute in the passed HTML document """ + if not value: + return quote = '' if re.match(r'''[\s"'`=<>]''', v...
yt_dlp/utils.py
0
Python
1
none
16
51
51
true
[bitchute] extractor overhaul
5,066
yt-dlp/yt-dlp
132,642
Python
flashdagger
'product_version': VERSION, 'icon_resources': [(1, 'devscripts/logo.ico')], }], 'options': { 'py2exe': { 'bundle_files': 0, 'compressed': 1, 'optimize': 2, 'dist_dir': './dist', 'excludes'...
No issues found.
'product_version': VERSION, 'icon_resources': [(1, 'devscripts/logo.ico')], }], 'options': { 'py2exe': { 'bundle_files': 0, 'compressed': 1, 'optimize': 2, 'dist_dir': './dist', 'excludes'...
@@ -32,7 +32,6 @@ def packages(): return [ 'yt_dlp', 'yt_dlp.extractor', 'yt_dlp.downloader', 'yt_dlp.postprocessor', 'yt_dlp.compat', - 'yt_dlp.extractor.anvato_token_generator', ]
setup.py
0
Python
1
none
16
51
51
true
[extractor/anvato] Fix extractor
5,074
yt-dlp/yt-dlp
132,642
Python
bashonly
) from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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 .n...
No issues found.
) from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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 .n...
@@ -70,6 +70,12 @@ AfreecaTVLiveIE, AfreecaTVUserIE, ) +from .agora import ( + TokFMAuditionIE, + TokFMPodcastIE, + WyborczaPodcastIE, + WyborczaVideoIE, +) from .airmozilla import AirMozillaIE from .aljazeera import AlJazeeraIE from .alphaporno import AlphaPornoIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
add agora extractors (tokfm, wyborcza)
5,101
yt-dlp/yt-dlp
132,642
Python
selfisekai
}, }, { # video stored on custom kaltura server 'url': 'http://www.expansion.com/multimedia/videos.html?media=EQcM30NHIPv', 'md5': '537617d06e64dfed891fa1593c4b30cc', 'info_dict': { 'id': '0_1iotm5bh', 'ext': 'mp...
No issues found.
}, }, { # video stored on custom kaltura server 'url': 'http://www.expansion.com/multimedia/videos.html?media=EQcM30NHIPv', 'md5': '537617d06e64dfed891fa1593c4b30cc', 'info_dict': { 'id': '0_1iotm5bh', 'ext': 'mp...
@@ -1071,18 +1071,6 @@ class GenericIE(InfoExtractor): 'skip_download': True, } }, - { - # JWPlatform iframe - 'url': 'https://www.covermagazine.co.uk/feature/2465255/business-protection-involved', - 'info_dict': { - 'id': 'AG...
yt_dlp/extractor/generic.py
0
Python
1
none
16
51
51
true
[extractor/JWPlatform] Fix extractor
5,112
yt-dlp/yt-dlp
132,642
Python
coletdjnz
NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE...
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, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE...
@@ -1869,6 +1869,10 @@ KatsomoIE, MTVUutisetArticleIE, ) +from .tv24ua import ( + TV24UAVideoIE, + TV24UAGenericPassthroughIE +) from .tv2dk import ( TV2DKIE, TV2DKBornholmPlayIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/24tv.ua] Add extractors
5,121
yt-dlp/yt-dlp
132,642
Python
coletdjnz
'ext': 'mp4', 'title': 'Elecciones británicas: 5 lecciones para Rajoy', 'description': 'md5:435a89d68b9760b92ce67ed227055f16', 'uploader_id': 'videos.expansion@el-mundo.net', 'upload_date': '20150429', 'timestamp': 143030347...
No issues found.
'ext': 'mp4', 'title': 'Elecciones británicas: 5 lecciones para Rajoy', 'description': 'md5:435a89d68b9760b92ce67ed227055f16', 'uploader_id': 'videos.expansion@el-mundo.net', 'upload_date': '20150429', 'timestamp': 143030347...
@@ -2463,6 +2463,21 @@ class GenericIE(InfoExtractor): 'duration': 111.0, } }, + { + 'note': 'JSON LD with unexpected data type', + 'url': 'https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/', + 'info_dict': { + ...
yt_dlp/extractor/generic.py
0
Python
1
none
16
51
51
true
[extractor/common] Fix `json_ld` type checks
5,145
yt-dlp/yt-dlp
132,642
Python
Grub4K
d: !!42.42, e: !!![], f: !"abc", g: !"", !42: 42 }''') self.assertEqual(json.loads(on), { 'a': 0, 'b': 1, 'c': 0, 'd': 42.42, 'e': [], 'f': "abc", 'g': "", ...
No issues found.
d: !!42.42, e: !!![], f: !"abc", g: !"", !42: 42 }''') self.assertEqual(json.loads(on), { 'a': 0, 'b': 1, 'c': 0, 'd': 42.42, 'e': [], 'f': "abc", 'g': "", ...
@@ -1890,6 +1890,7 @@ def test_traverse_obj(self): {'index': 2}, {'index': 3}, ), + 'dict': {}, } # Test base functionality @@ -1926,11 +1927,15 @@ def test_traverse_obj(self): # Test alternative paths self.assertEqual(tra...
test/test_utils.py
0
Python
1
none
16
51
51
true
[utils] `traverse_obj`: return `[]` if last path branches without default
5,170
yt-dlp/yt-dlp
132,642
Python
Grub4K
'info_dict': { 'id': '2074790', 'ext': 'mp4', 'title': 'У Харкові ворожа ракета прилетіла в будинок, де слухали пісні про "офіцерів-росіян"', 'thumbnail': r're:^https?://.*\.jpe?g', } }, { 'url': 'https://24tv.ua/news/showPlayer.do?videoUrl=202...
No issues found.
'info_dict': { 'id': '2074790', 'ext': 'mp4', 'title': 'У Харкові ворожа ракета прилетіла в будинок, де слухали пісні про "офіцерів-росіян"', 'thumbnail': r're:^https?://.*\.jpe?g', } }, { 'url': 'https://24tv.ua/news/showPlayer.do?videoUrl=202...
@@ -1,15 +1,10 @@ -import base64 import re -import urllib.parse from .common import InfoExtractor from ..utils import ( determine_ext, - extract_attributes, - get_elements_html_by_class, js_to_json, mimetype2ext, - smuggle_url, traverse_obj, ) @@ -87,60 +82,3 @@ def _real_extract(se...
yt_dlp/extractor/tv24ua.py
0
Python
1
none
16
51
51
true
[extr/generic:quoted-html] Extract embeds within commonly escaped HTML
5,213
yt-dlp/yt-dlp
132,642
Python
coletdjnz
# 20 minuten embed 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552', 'info_dict': { 'id': '523629', 'ext': 'mp4', 'title': 'So kommen Sie bei Eis und Schnee sicher an', ...
No issues found.
# 20 minuten embed 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552', 'info_dict': { 'id': '523629', 'ext': 'mp4', 'title': 'So kommen Sie bei Eis und Schnee sicher an', ...
@@ -863,20 +863,6 @@ class GenericIE(InfoExtractor): 'thumbnail': r're:^https?://.*\.jpg$', }, }, - { - # JWPlayer config passed as variable - 'url': 'http://www.txxx.com/videos/3326530/ariele/', - 'info_dict': { - 'id': '3326...
yt_dlp/extractor/generic.py
0
Python
1
none
16
51
51
true
[txxx] Add extractor
5,240
yt-dlp/yt-dlp
132,642
Python
chio0hai
AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoo...
No issues found.
AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoo...
@@ -2008,7 +2008,10 @@ from .vbox7 import Vbox7IE from .veehd import VeeHDIE from .veo import VeoIE -from .veoh import VeohIE +from .veoh import ( + VeohIE, + VeohUserIE +) from .vesti import VestiIE from .vevo import ( VevoIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
Veoh user IE support
5,242
yt-dlp/yt-dlp
132,642
Python
tntmod54321
NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoo...
No issues found.
NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoo...
@@ -1966,6 +1966,7 @@ TwitterIE, TwitterAmplifyIE, TwitterBroadcastIE, + TwitterSpacesIE, TwitterShortenerIE, ) from .udemy import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/twitter] Base extractor api overhaul
5,247
yt-dlp/yt-dlp
132,642
Python
Grub4K
'[SponsorBlock]: Interaction Reminder, Endcards/Credits', '[SponsorBlock]: Endcards/Credits']) self._remove_marked_arrange_sponsors_test_impl(chapters, expected, []) def test_remove_marked_arrange_sponsors_ChapterWithRunsOfOverlappingCuts(self): chapters = self._chapters([170], ['c']) ...
No issues found.
'[SponsorBlock]: Interaction Reminder, Endcards/Credits', '[SponsorBlock]: Endcards/Credits']) self._remove_marked_arrange_sponsors_test_impl(chapters, expected, []) def test_remove_marked_arrange_sponsors_ChapterWithRunsOfOverlappingCuts(self): chapters = self._chapters([170], ['c']) ...
@@ -16,6 +16,7 @@ MetadataFromFieldPP, MetadataParserPP, ModifyChaptersPP, + SponsorBlockPP, ) @@ -76,11 +77,15 @@ def setUp(self): self._pp = ModifyChaptersPP(YoutubeDL()) @staticmethod - def _sponsor_chapter(start, end, cat, remove=False): - c = {'start_time': start, '...
test/test_postprocessors.py
0
Python
1
none
16
51
51
true
[SponsorBlock] Add support for chapter category
5,260
yt-dlp/yt-dlp
132,642
Python
ajayyy
params.setdefault('extract_flat', 'in_playlist') params.setdefault('playlistend', test_case.get( 'playlist_mincount', test_case.get('playlist_count', -2) + 1)) params.setdefault('skip_download', True) ydl = YoutubeDL(params, auto_init=False) ydl.add_d...
No issues found.
params.setdefault('extract_flat', 'in_playlist') params.setdefault('playlistend', test_case.get( 'playlist_mincount', test_case.get('playlist_count', -2) + 1)) params.setdefault('skip_download', True) ydl = YoutubeDL(params, auto_init=False) ydl.add_d...
@@ -122,7 +122,8 @@ def print_skipping(reason): params['outtmpl'] = tname + '_' + params['outtmpl'] if is_playlist and 'playlist' not in test_case: params.setdefault('extract_flat', 'in_playlist') - params.setdefault('playlistend', test_case.get('playlist_mincount')) + ...
test/test_download.py
0
Python
1
none
16
51
51
true
[zen.yandex.ru] Fix download
5,268
yt-dlp/yt-dlp
132,642
Python
lksj
return formats.sort(key=self.FormatSort(self, field_preference).calculate_preference) def _check_formats(self, formats, video_id): if formats: formats[:] = filter( lambda f: self._is_valid_url( f['url'], video_id, item=...
No issues found.
return formats.sort(key=self.FormatSort(self, field_preference).calculate_preference) def _check_formats(self, formats, video_id): if formats: formats[:] = filter( lambda f: self._is_valid_url( f['url'], video_id, item=...
@@ -1576,7 +1576,7 @@ def traverse_json_ld(json_ld, at_top_level=True): continue if at_top_level and set(e.keys()) == {'@context', '@graph'}: traverse_json_ld(e['@graph'], at_top_level=False) - break + continue ...
yt_dlp/extractor/common.py
0
Python
1
none
16
51
51
true
[zeenews] Add extractor
5,289
yt-dlp/yt-dlp
132,642
Python
m4tu4g
# Python 3.5. Introducing dummy exception for Python >3.5 for compatible # and uniform cross-version exception handling class compat_HTMLParseError(ValueError): pass class _TreeBuilder(etree.TreeBuilder): def doctype(self, name, pubid, system): pass def compat_etree_fromstring(text): return etre...
No issues found.
# Python 3.5. Introducing dummy exception for Python >3.5 for compatible # and uniform cross-version exception handling class compat_HTMLParseError(ValueError): pass class _TreeBuilder(etree.TreeBuilder): def doctype(self, name, pubid, system): pass def compat_etree_fromstring(text): return etre...
@@ -14,7 +14,7 @@ # HTMLParseError has been deprecated in Python 3.3 and removed in # Python 3.5. Introducing dummy exception for Python >3.5 for compatible # and uniform cross-version exception handling -class compat_HTMLParseError(Exception): +class compat_HTMLParseError(ValueError): pass
yt_dlp/compat/__init__.py
0
Python
1
none
16
51
51
true
[listennotes.com] Add extractor
5,310
yt-dlp/yt-dlp
132,642
Python
lksj
import argparse import functools def read_file(fname): with open(fname, encoding='utf-8') as f: return f.read() def write_file(fname, content, mode='w'): with open(fname, mode, encoding='utf-8') as f: return f.write(content) # Get the version without importing the package def read_version(...
No issues found.
import argparse import functools def read_file(fname): with open(fname, encoding='utf-8') as f: return f.read() def write_file(fname, content, mode='w'): with open(fname, mode, encoding='utf-8') as f: return f.write(content) # Get the version without importing the package def read_version(...
@@ -7,8 +7,8 @@ def read_file(fname): return f.read() -def write_file(fname, content): - with open(fname, 'w', encoding='utf-8') as f: +def write_file(fname, content, mode='w'): + with open(fname, mode, encoding='utf-8') as f: return f.write(content)
devscripts/utils.py
0
Python
1
none
16
36
36
true
Replace all `set-outut` usages with $GITHUB_OUTPUT
5,315
yt-dlp/yt-dlp
132,642
Python
Lesmiscore
def get_requested_items(self): playlist_items = self.ydl.params.get('playlist_items') playlist_start = self.ydl.params.get('playliststart', 1) playlist_end = self.ydl.params.get('playlistend') # For backwards compatibility, interpret -1 as whole list if playlist_end in (-1, N...
No issues found.
def get_requested_items(self): playlist_items = self.ydl.params.get('playlist_items') playlist_start = self.ydl.params.get('playliststart', 1) playlist_end = self.ydl.params.get('playlistend') # For backwards compatibility, interpret -1 as whole list if playlist_end in (-1, N...
@@ -3073,8 +3073,8 @@ def escape_url(url): ).geturl() -def parse_qs(url): - return urllib.parse.parse_qs(urllib.parse.urlparse(url).query) +def parse_qs(url, **kwargs): + return urllib.parse.parse_qs(urllib.parse.urlparse(url).query, **kwargs) def read_batch_urls(batch_fd):
yt_dlp/utils.py
0
Python
1
none
16
51
51
true
[extractor/telegram] Add playlist support and more metadata
5,358
yt-dlp/yt-dlp
132,642
Python
bashonly
from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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...
No issues found.
from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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...
@@ -464,6 +464,10 @@ ) from .dumpert import DumpertIE from .defense import DefenseGouvFrIE +from .deuxm import ( + DeuxMIE, + DeuxMNewsIE +) from .digitalconcerthall import DigitalConcertHallIE from .discovery import DiscoveryIE from .disney import DisneyIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
Add extractors for 2m.ma
5,388
yt-dlp/yt-dlp
132,642
Python
CrankDatSouljaBoy
from .netverse import ( NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNews...
No issues found.
from .netverse import ( NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNews...
@@ -1409,6 +1409,8 @@ from .polsatgo import PolsatGoIE from .polskieradio import ( PolskieRadioIE, + PolskieRadioLegacyIE, + PolskieRadioAuditionIE, PolskieRadioCategoryIE, PolskieRadioPlayerIE, PolskieRadioPodcastIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[polskieradio] adapt to next.js redesigns
5,416
yt-dlp/yt-dlp
132,642
Python
selfisekai
from yt_dlp.extractor import YoutubeIE, YoutubeTabIE from yt_dlp.utils import ExtractorError @is_download_test class TestYoutubeLists(unittest.TestCase): def assertIsPlaylist(self, info): """Make sure the info has '_type' set to 'playlist'""" self.assertEqual(info['_type'], 'playlist') def te...
No issues found.
from yt_dlp.extractor import YoutubeIE, YoutubeTabIE from yt_dlp.utils import ExtractorError @is_download_test class TestYoutubeLists(unittest.TestCase): def assertIsPlaylist(self, info): """Make sure the info has '_type' set to 'playlist'""" self.assertEqual(info['_type'], 'playlist') def te...
@@ -10,6 +10,7 @@ from test.helper import FakeYDL, is_download_test from yt_dlp.extractor import YoutubeIE, YoutubeTabIE +from yt_dlp.utils import ExtractorError @is_download_test @@ -53,6 +54,18 @@ def test_youtube_flat_playlist_extraction(self): self.assertEqual(video['duration'], 10) self....
test/test_youtube_lists.py
0
Python
1
none
16
51
51
true
[extractor/youtube] Improve channel tab handling
5,439
yt-dlp/yt-dlp
132,642
Python
coletdjnz
NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import...
No issues found.
NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import...
@@ -1626,7 +1626,6 @@ SkyItVideoIE, SkyItVideoLiveIE, SkyItIE, - SkyItAcademyIE, SkyItArteIE, CieloTVItIE, TV8ItIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/skyit] Various fixes and cleanups
5,442
yt-dlp/yt-dlp
132,642
Python
nixxo
opts = sys.argv[1:] if opts[0:1] in (['32'], ['64']): if ARCH != opts[0]: raise Exception(f'{opts[0]}bit executable cannot be built on a {ARCH}bit system') opts = opts[1:] return opts def exe(onedir): """@returns (name, path)""" name = '_'.join(filter(None, ( 'y...
No issues found.
opts = sys.argv[1:] if opts[0:1] in (['32'], ['64']): if ARCH != opts[0]: raise Exception(f'{opts[0]}bit executable cannot be built on a {ARCH}bit system') opts = opts[1:] return opts def exe(onedir): """@returns (name, path)""" name = '_'.join(filter(None, ( 'y...
@@ -12,9 +12,8 @@ from devscripts.utils import read_version -OS_NAME, MACHINE, ARCH = sys.platform, platform.machine(), platform.architecture()[0][:2] -if MACHINE in ('x86_64', 'AMD64') or ('i' in MACHINE and '86' in MACHINE): - # NB: Windows x86 has MACHINE = AMD64 irrespective of bitness +OS_NAME, MACHINE, AR...
pyinst.py
0
Python
1
none
16
51
51
true
Add armv7 & aarch64 build artifacts to the build workflow
5,449
yt-dlp/yt-dlp
132,642
Python
MrOctopus
from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Nexx...
No issues found.
from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Nexx...
@@ -2021,6 +2021,7 @@ from .unistra import UnistraIE from .unity import UnityIE from .unscripted import UnscriptedNewsVideoIE +from .unsupported import KnownDRMIE from .uol import UOLIE from .uplynk import ( UplynkIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/unsupported] Add extractor
5,483
yt-dlp/yt-dlp
132,642
Python
coletdjnz
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
No issues found.
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
@@ -1561,6 +1561,7 @@ from .rule34video import Rule34VideoIE from .rumble import ( RumbleEmbedIE, + RumbleIE, RumbleChannelIE, ) from .rutube import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[rumble] add dedicated RumbleIE extractor class
5,515
yt-dlp/yt-dlp
132,642
Python
flashdagger
real_start = time.time() real_downloader = get_suitable_downloader( info_dict, self.params, None, protocol='dash_frag_urls', to_stdout=(filename == '-')) requested_formats = [{**info_dict, **fmt} for fmt in info_dict.get('requested_formats', [])] args = [] for fmt i...
No issues found.
real_start = time.time() real_downloader = get_suitable_downloader( info_dict, self.params, None, protocol='dash_frag_urls', to_stdout=(filename == '-')) requested_formats = [{**info_dict, **fmt} for fmt in info_dict.get('requested_formats', [])] args = [] for fmt i...
@@ -1,8 +1,9 @@ import time +import urllib.parse from . import get_suitable_downloader from .fragment import FragmentFD -from ..utils import urljoin +from ..utils import update_url_query, urljoin class DashSegmentsFD(FragmentFD): @@ -40,7 +41,12 @@ def real_download(self, filename, info_dict): ...
yt_dlp/downloader/dash.py
0
Python
1
none
16
51
51
true
Add `fragment_query` generic extractor arg for DASH and native HLS
5,528
yt-dlp/yt-dlp
132,642
Python
bashonly
def _get_cache_fn(self, section, key, dtype): assert re.match(r'^[\w.-]+$', section), f'invalid section {section!r}' key = urllib.parse.quote(key, safe='').replace('%', ',') # encode non-ascii characters return os.path.join(self._get_root_dir(), section, f'{key}.{dtype}') @property ...
No issues found.
def _get_cache_fn(self, section, key, dtype): assert re.match(r'^[\w.-]+$', section), f'invalid section {section!r}' key = urllib.parse.quote(key, safe='').replace('%', ',') # encode non-ascii characters return os.path.join(self._get_root_dir(), section, f'{key}.{dtype}') @property ...
@@ -5,6 +5,7 @@ import re import shutil import traceback +import urllib.parse from .utils import expand_path, traverse_obj, version_tuple, write_json_file from .version import __version__ @@ -22,11 +23,9 @@ def _get_root_dir(self): return expand_path(res) def _get_cache_fn(self, section, key, dty...
yt_dlp/cache.py
0
Python
1
none
16
51
51
true
[cda] premium content downloading, fix login by e-mail, reduce followed redirects for web
5,529
yt-dlp/yt-dlp
132,642
Python
selfisekai
NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) fro...
No issues found.
NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) fro...
@@ -78,6 +78,7 @@ WyborczaVideoIE, ) from .airmozilla import AirMozillaIE +from .airtv import AirTVIE from .aljazeera import AlJazeeraIE from .alphaporno import AlphaPornoIE from .amara import AmaraIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/airtv] Add extractor
5,533
yt-dlp/yt-dlp
132,642
Python
HobbyistDev
duration = parse_duration(xpath_text(playlist, './info/duration', 'duration')) view_count = int_or_none(xpath_text(playlist, './info/views', 'views')) language_preference = qualities(preferred_langs[::-1]) formats = [] for file_ in playlist.findall('./files/file'): ...
No issues found.
duration = parse_duration(xpath_text(playlist, './info/duration', 'duration')) view_count = int_or_none(xpath_text(playlist, './info/views', 'views')) language_preference = qualities(preferred_langs[::-1]) formats = [] for file_ in playlist.findall('./files/file'): ...
@@ -3,6 +3,7 @@ int_or_none, orderedSet, parse_duration, + parse_iso8601, parse_qs, qualities, unified_strdate, @@ -88,3 +89,86 @@ def get_item(type_, preference): 'view_count': view_count, 'formats': formats } + + +class EuroParlWebstreamIE(InfoExtrac...
yt_dlp/extractor/europa.py
0
Python
1
none
16
51
51
true
[extractor/europarl] Add EuroParlWebstream Extractor
5,547
yt-dlp/yt-dlp
132,642
Python
HobbyistDev
NetEaseMusicSingerIE, ) 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...
No issues found.
NetEaseMusicSingerIE, ) 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...
@@ -1646,6 +1646,7 @@ RadioKapitalIE, RadioKapitalShowIE, ) +from .radioradicale import RadioRadicaleIE from .radiozet import RadioZetPodcastIE from .radlive import ( RadLiveChannelIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[ie/RadioRadicale] Add extractor
5,607
yt-dlp/yt-dlp
132,642
Python
a13ssandr0
NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, ...
No issues found.
NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, ...
@@ -1868,6 +1868,7 @@ TikTokEffectIE, TikTokTagIE, TikTokVMIE, + TikTokLiveIE, DouyinIE, ) from .tinypic import TinyPicIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/TikTok] Add `TikTokLiveIE` to download Live Stream
5,637
yt-dlp/yt-dlp
132,642
Python
JC-Chung
'info_dict': { 'id': '523629', 'ext': 'mp4', 'title': 'So kommen Sie bei Eis und Schnee sicher an', 'description': 'md5:117c212f64b25e3d95747e5276863f7d', }, 'params': { 'skip_download': True, ...
No issues found.
'info_dict': { 'id': '523629', 'ext': 'mp4', 'title': 'So kommen Sie bei Eis und Schnee sicher an', 'description': 'md5:117c212f64b25e3d95747e5276863f7d', }, 'params': { 'skip_download': True, ...
@@ -2374,7 +2374,7 @@ def _real_extract(self, url): info_dict.update({ 'formats': formats, 'subtitles': subtitles, - 'http_headers': headers, + 'http_headers': headers or None, }) return info_dict
yt_dlp/extractor/generic.py
0
Python
1
none
16
51
51
true
Fix headers for ffmpeg and video+audio formats
5,659
yt-dlp/yt-dlp
132,642
Python
bashonly
}, 'playlist_mincount': 2, }, { # 20 minuten embed 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552', 'info_dict': { 'id': '523629', 'ext': 'mp4', ...
No issues found.
}, 'playlist_mincount': 2, }, { # 20 minuten embed 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552', 'info_dict': { 'id': '523629', 'ext': 'mp4', ...
@@ -1547,19 +1547,6 @@ class GenericIE(InfoExtractor): }, 'add_ie': ['WashingtonPost'], }, - { - # Mediaset embed - 'url': 'http://www.tgcom24.mediaset.it/politica/serracchiani-voglio-vivere-in-una-societa-aperta-reazioni-sproporzionate-_3071354-201702a.sh...
yt_dlp/extractor/generic.py
0
Python
1
none
16
51
51
true
[extractor/mediaset] Better DRM/Paywall message + _EMBED_REGEX
5,664
yt-dlp/yt-dlp
132,642
Python
nixxo
NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, NFLPlusEpisodeIE, NFLPlusReplayIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramListIE, Nhk...
No issues found.
NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, NFLPlusEpisodeIE, NFLPlusReplayIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramListIE, Nhk...
@@ -1298,6 +1298,11 @@ NineCNineMediaIE, CPTwentyFourIE, ) +from .niconicochannelplus import ( + NiconicoChannelPlusIE, + NiconicoChannelPlusChannelVideosIE, + NiconicoChannelPlusChannelLivesIE, +) from .ninegag import NineGagIE from .ninenow import NineNowIE from .nintendo import NintendoIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/niconicochannelplus] Add extractor
5,686
yt-dlp/yt-dlp
132,642
Python
pzhlkj6612
NetEaseMusicDjRadioIE, ) from .netverse import ( NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMed...
No issues found.
NetEaseMusicDjRadioIE, ) from .netverse import ( NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMed...
@@ -836,6 +836,10 @@ KhanAcademyIE, KhanAcademyUnitIE, ) +from .kick import ( + KickIE, + KickVODIE, +) from .kicker import KickerIE from .kickstarter import KickStarterIE from .kinja import KinjaEmbedIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/kick] Add extractor
5,736
yt-dlp/yt-dlp
132,642
Python
bashonly
heartbeat() if type(fd).__name__ == 'HlsFD': info_dict.update(ie._extract_m3u8_formats(info_dict['url'], info_dict['id'])[0]) success = fd.real_download(filename, info_dict) finally: if heartbeat_lock: with heartbeat_lock: ...
No issues found.
heartbeat() if type(fd).__name__ == 'HlsFD': info_dict.update(ie._extract_m3u8_formats(info_dict['url'], info_dict['id'])[0]) success = fd.real_download(filename, info_dict) finally: if heartbeat_lock: with heartbeat_lock: ...
@@ -1,8 +1,17 @@ +import json import threading +import time from . import get_suitable_downloader from .common import FileDownloader -from ..utils import sanitized_Request +from .external import FFmpegFD +from ..utils import ( + DownloadError, + str_or_none, + sanitized_Request, + WebSocketsWrapper, + ...
yt_dlp/downloader/niconico.py
0
Python
1
none
16
51
51
true
[extractor/niconico:live] Add extractor
5,764
yt-dlp/yt-dlp
132,642
Python
Lesmiscore
with contextlib.closing(batch_fd) as fd: return [url for url in map(fixup, fd) if url] def urlencode_postdata(*args, **kargs): return urllib.parse.urlencode(*args, **kargs).encode('ascii') def update_url_query(url, query): if not query: return url parsed_url = urllib.parse.urlparse(u...
No issues found.
with contextlib.closing(batch_fd) as fd: return [url for url in map(fixup, fd) if url] def urlencode_postdata(*args, **kargs): return urllib.parse.urlencode(*args, **kargs).encode('ascii') def update_url_query(url, query): if not query: return url parsed_url = urllib.parse.urlparse(u...
@@ -3360,7 +3360,13 @@ def fix_kv(m): return f'"{i}":' if v.endswith(':') else str(i) if v in vars: - return json.dumps(vars[v]) + try: + if not strict: + json.loads(vars[v]) + except json.decoder.JSONDecodeError: + ...
yt_dlp/utils.py
0
Python
1
none
16
51
51
true
[extractor/sovietscloset] Fix __NUXT_JSONP__ extraction
5,771
yt-dlp/yt-dlp
132,642
Python
ChillingPepper
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...
@@ -565,6 +565,7 @@ EpiconIE, EpiconSeriesIE, ) +from .eplus import EplusIbIE from .epoch import EpochIE from .eporner import EpornerIE from .eroprofile import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/eplus] Add extractor for URLs from "ib.eplus.jp"
5,782
yt-dlp/yt-dlp
132,642
Python
pzhlkj6612
NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from...
No issues found.
NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from...
@@ -2097,6 +2097,13 @@ ) from .videodetective import VideoDetectiveIE from .videofyme import VideofyMeIE +from .videoken import ( + VideoKenIE, + VideoKenPlayerIE, + VideoKenPlaylistIE, + VideoKenCategoryIE, + VideoKenTopicIE, +) from .videomore import ( VideomoreIE, VideomoreVideoIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/videoken] Add extractors
5,824
yt-dlp/yt-dlp
132,642
Python
bashonly
NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE...
No issues found.
NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE...
@@ -1155,6 +1155,7 @@ from .netverse import ( NetverseIE, NetversePlaylistIE, + NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/netverse] Add NetverseSearch extractor
5,838
yt-dlp/yt-dlp
132,642
Python
HobbyistDev
) from .netverse import ( NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNe...
No issues found.
) from .netverse import ( NetverseIE, NetversePlaylistIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNe...
@@ -87,7 +87,10 @@ AluraCourseIE ) from .amcnetworks import AMCNetworksIE -from .amazon import AmazonStoreIE +from .amazon import ( + AmazonStoreIE, + AmazonReviewsIE, +) from .amazonminitv import ( AmazonMiniTVIE, AmazonMiniTVSeasonIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/amazon] Add `AmazonReviewsIE`
5,857
yt-dlp/yt-dlp
132,642
Python
bashonly
or self.params['outtmpl']['default'] == '-')) compat = ( prefer_best or self.params.get('allow_multiple_audio_streams', False) or 'format-spec' in self.params['compat_opts']) return ( 'best/bestvideo+bestaudio' if prefer_best e...
No issues found.
or self.params['outtmpl']['default'] == '-')) compat = ( prefer_best or self.params.get('allow_multiple_audio_streams', False) or 'format-spec' in self.params['compat_opts']) return ( 'best/bestvideo+bestaudio' if prefer_best e...
@@ -33,7 +33,7 @@ from .extractor.openload import PhantomJSwrapper from .minicurses import format_text from .plugins import directories as plugin_directories -from .postprocessor import _PLUGIN_CLASSES as plugin_postprocessors +from .postprocessor import _PLUGIN_CLASSES as plugin_pps from .postprocessor import ( ...
yt_dlp/YoutubeDL.py
0
Python
1
none
16
51
51
true
Misc. plugin improvements
5,916
yt-dlp/yt-dlp
132,642
Python
coletdjnz
help='Delete downloaded fragments after downloading is finished (default)') downloader.add_option( '--buffer-size', dest='buffersize', metavar='SIZE', default='1024', help='Size of download buffer, e.g. 1024 or 16K (default is %default)') downloader.add_option( '--resize-...
No issues found.
help='Delete downloaded fragments after downloading is finished (default)') downloader.add_option( '--buffer-size', dest='buffersize', metavar='SIZE', default='1024', help='Size of download buffer, e.g. 1024 or 16K (default is %default)') downloader.add_option( '--resize-...
@@ -516,6 +516,11 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs): action='store_const', const='::', dest='source_address', help='Make all connections via IPv6', ) + network.add_option( + '--enable-file-urls', action='store_true', + dest='enable_file_urls', de...
yt_dlp/options.py
0
Python
1
none
16
51
51
true
Add `--enable-file-urls`
5,917
yt-dlp/yt-dlp
132,642
Python
coletdjnz
NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDaily...
No issues found.
NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDaily...
@@ -669,6 +669,7 @@ GloboIE, GloboArticleIE, ) +from .gmanetwork import GMANetworkVideoIE from .go import GoIE from .godtube import GodTubeIE from .gofile import GofileIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/gmanetwork] Add extractor
5,945
yt-dlp/yt-dlp
132,642
Python
HobbyistDev
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
No issues found.
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
@@ -1439,7 +1439,6 @@ PolskieRadioPlayerIE, PolskieRadioPodcastIE, PolskieRadioPodcastListIE, - PolskieRadioRadioKierowcowIE, ) from .popcorntimes import PopcorntimesIE from .popcorntv import PopcornTVIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[polskieradio] category fixes, tag support
5,948
yt-dlp/yt-dlp
132,642
Python
selfisekai
'ext': 'flv' if bootstrap_info is not None else None, 'protocol': 'f4m', 'tbr': tbr, 'width': width, 'height': height, 'vcodec': vcodec, 'preference': preference, 'quality': quality, ...
No issues found.
'ext': 'flv' if bootstrap_info is not None else None, 'protocol': 'f4m', 'tbr': tbr, 'width': width, 'height': height, 'vcodec': vcodec, 'preference': preference, 'quality': quality, ...
@@ -2178,13 +2178,23 @@ def _extract_m3u8_vod_duration( return self._parse_m3u8_vod_duration(m3u8_vod or '', video_id) def _parse_m3u8_vod_duration(self, m3u8_vod, video_id): - if '#EXT-X-PLAYLIST-TYPE:VOD' not in m3u8_vod: + if '#EXT-X-ENDLIST' not in m3u8_vod: return None ...
yt_dlp/extractor/common.py
0
Python
1
none
16
51
51
true
[extractor/slideslive] Fix thumbnails and chapters/duration
6,024
yt-dlp/yt-dlp
132,642
Python
bashonly
from .netverse import ( NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, ...
No issues found.
from .netverse import ( NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, ...
@@ -249,6 +249,14 @@ BRMediathekIE, ) from .bravotv import BravoTVIE +from .brainpop import ( + BrainPOPIE, + BrainPOPJrIE, + BrainPOPELLIE, + BrainPOPEspIE, + BrainPOPFrIE, + BrainPOPIlIE, +) from .breakcom import BreakIE from .breitbart import BreitBartIE from .brightcove import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[BrainPOP] Add extractors
6,106
yt-dlp/yt-dlp
132,642
Python
MinePlayersPE
if isinstance(v, str): v = v.encode() # RFC 2047 requires non-ASCII field names to be encoded, while RFC 7578 # suggests sending UTF-8 directly. Firefox sends UTF-8, too content = b'Content-Disposition: form-data; name="' + k + b'"\r\n\r\n' + v + b'\r\n' if boundary.e...
No issues found.
if isinstance(v, str): v = v.encode() # RFC 2047 requires non-ASCII field names to be encoded, while RFC 7578 # suggests sending UTF-8 directly. Firefox sends UTF-8, too content = b'Content-Disposition: form-data; name="' + k + b'"\r\n\r\n' + v + b'\r\n' if boundary.e...
@@ -1438,19 +1438,16 @@ def http_response(self, req, resp): raise original_ioerror resp = urllib.request.addinfourl(uncompressed, old_resp.headers, old_resp.url, old_resp.code) resp.msg = old_resp.msg - del resp.headers['Content-encoding'] # deflate ...
yt_dlp/utils.py
0
Python
1
none
16
51
51
true
[utils] Don't trust Content-length when Content-encoding is present
6,176
yt-dlp/yt-dlp
132,642
Python
felixonmars
c: !!0, d: !!42.42, e: !!![], f: !"abc", g: !"", !42: 42 }''') self.assertEqual(json.loads(on), { 'a': 0, 'b': 1, 'c': 0, 'd': 42.42, 'e': [], 'f': "abc", ...
No issues found.
c: !!0, d: !!42.42, e: !!![], f: !"abc", g: !"", !42: 42 }''') self.assertEqual(json.loads(on), { 'a': 0, 'b': 1, 'c': 0, 'd': 42.42, 'e': [], 'f': "abc", ...
@@ -2000,8 +2000,8 @@ def test_traverse_obj(self): # Test Ellipsis behavior self.assertCountEqual(traverse_obj(_TEST_DATA, ...), - (item for item in _TEST_DATA.values() if item is not None), - msg='`...` should give all values except `None`')...
test/test_utils.py
0
Python
1
none
16
51
51
true
[utils] `traverse_obj`: Fix several behavioral problems
6,180
yt-dlp/yt-dlp
132,642
Python
Grub4K
NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) fro...
No issues found.
NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) fro...
@@ -1197,6 +1197,8 @@ from .nfl import ( NFLIE, NFLArticleIE, + NFLPlusEpisodeIE, + NFLPlusReplayIE, ) from .nhk import ( NhkVodIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/nfl] Add `NFLPlus` extractors
6,222
yt-dlp/yt-dlp
132,642
Python
bashonly
NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import...
No issues found.
NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import...
@@ -1539,6 +1539,7 @@ RCTIPlusTVIE, ) from .rds import RDSIE +from .recurbate import RecurbateIE from .redbee import ParliamentLiveUKIE, RTBFIE from .redbulltv import ( RedBullTVIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[recurbate.com] Add recurbate extractor
6,297
yt-dlp/yt-dlp
132,642
Python
mrscrapy
'md5': '3972ddf2d5f8b98699f191687258e2f9', 'info_dict': { 'id': 'QChnbPYA', 'title': 'Où en est le couple franco-allemand ? Retrouvez Le Club Le Figaro International', 'description': 'md5:6f47235b7e7c93b366fd8ebfa10572ac', 'upload_date': '20230123', ...
No issues found.
'md5': '3972ddf2d5f8b98699f191687258e2f9', 'info_dict': { 'id': 'QChnbPYA', 'title': 'Où en est le couple franco-allemand ? Retrouvez Le Club Le Figaro International', 'description': 'md5:6f47235b7e7c93b366fd8ebfa10572ac', 'upload_date': '20230123', ...
@@ -0,0 +1,135 @@ +import json +import math + +from .common import InfoExtractor +from ..utils import ( + InAdvancePagedList, + traverse_obj, +) + + +class LeFigaroVideoEmbedIE(InfoExtractor): + _VALID_URL = r'https?://video\.lefigaro\.fr/embed/[^?#]+/(?P<id>[\w-]+)' + + _TESTS = [{ + 'url': 'https:/...
yt_dlp/extractor/lefigaro.py
0
Python
1
none
16
51
51
true
[extractor/jwplatform] Add LeFigaroVideo extractors
6,309
yt-dlp/yt-dlp
132,642
Python
elyse0
) from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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 .n...
No issues found.
) from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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 .n...
@@ -2315,7 +2315,10 @@ from .xstream import XstreamIE from .xtube import XTubeUserIE, XTubeIE from .xuite import XuiteIE -from .xvideos import XVideosIE +from .xvideos import ( + XVideosIE, + XVideosQuickiesIE +) from .xxxymovies import XXXYMoviesIE from .yahoo import ( YahooIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[xvideos] Added support for quickies
6,414
yt-dlp/yt-dlp
132,642
Python
Yakabuff
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, NFLPlusEpisodeIE, NFLP...
No issues found.
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, NFLPlusEpisodeIE, NFLP...
@@ -1750,6 +1750,7 @@ ShahidIE, ShahidShowIE, ) +from .sharepoint import SharePointIE from .sharevideos import ShareVideosEmbedIE from .sibnet import SibnetEmbedIE from .shemaroome import ShemarooMeIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/sharepoint] New extractor for Microsoft Sharepoint
6,531
yt-dlp/yt-dlp
132,642
Python
C0D3D3V
from .common import InfoExtractor from .rtvcplay import RTVCKalturaIE class SenalColombiaLiveIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?senalcolombia\.tv/(?P<id>senal-en-vivo)' _TESTS = [{ 'url': 'https://www.senalcolombia.tv/senal-en-vivo', 'info_dict': { 'id': 'indexSC...
No issues found.
from .common import InfoExtractor from .rtvcplay import RTVCKalturaIE class SenalColombiaLiveIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?senalcolombia\.tv/(?P<id>senal-en-vivo)' _TESTS = [{ 'url': 'https://www.senalcolombia.tv/senal-en-vivo', 'info_dict': { 'id': 'indexSC...
@@ -0,0 +1,31 @@ +from .common import InfoExtractor +from .rtvcplay import RTVCKalturaIE + + +class SenalColombiaLiveIE(InfoExtractor): + _VALID_URL = r'https?://(?:www\.)?senalcolombia\.tv/(?P<id>senal-en-vivo)' + + _TESTS = [{ + 'url': 'https://www.senalcolombia.tv/senal-en-vivo', + 'info_dict': {...
yt_dlp/extractor/senalcolombia.py
0
Python
1
none
16
32
32
true
[extractors/rtvc] Add extractors
6,578
yt-dlp/yt-dlp
132,642
Python
elyse0
videoPlayer = query.get('@videoPlayer') if videoPlayer: # We set the original url as the default 'Referer' header referer = query.get('linkBaseURL', [None])[0] or smuggled_data.get('Referer', url) video_id = videoPlayer[0] if 'playerID' not in query: ...
No issues found.
videoPlayer = query.get('@videoPlayer') if videoPlayer: # We set the original url as the default 'Referer' header referer = query.get('linkBaseURL', [None])[0] or smuggled_data.get('Referer', url) video_id = videoPlayer[0] if 'playerID' not in query: ...
@@ -575,6 +575,7 @@ def build_format_id(kind): self.raise_no_formats( error.get('message') or error.get('error_subcode') or error['error_code'], expected=True) + headers.pop('Authorization', None) # or else http formats will give error 400 for f in formats: ...
yt_dlp/extractor/brightcove.py
0
Python
1
none
16
51
51
true
[extractor/cbs] Add `ParamountPressExpress` extractor
6,604
yt-dlp/yt-dlp
132,642
Python
bashonly
# RFC 2047 requires non-ASCII field names to be encoded, while RFC 7578 # suggests sending UTF-8 directly. Firefox sends UTF-8, too content = b'Content-Disposition: form-data; name="' + k + b'"\r\n\r\n' + v + b'\r\n' if boundary.encode('ascii') in content: raise ValueError('B...
No issues found.
# RFC 2047 requires non-ASCII field names to be encoded, while RFC 7578 # suggests sending UTF-8 directly. Firefox sends UTF-8, too content = b'Content-Disposition: form-data; name="' + k + b'"\r\n\r\n' + v + b'\r\n' if boundary.encode('ascii') in content: raise ValueError('B...
@@ -3366,7 +3366,7 @@ def strip_jsonp(code): def js_to_json(code, vars={}, *, strict=False): # vars is a dict of var, val pairs to substitute - STRING_QUOTES = '\'"' + STRING_QUOTES = '\'"`' STRING_RE = '|'.join(rf'{q}(?:\\.|[^\\{q}])*{q}' for q in STRING_QUOTES) COMMENT_RE = r'/\*(?:(?!\*/).)*?...
yt_dlp/utils.py
0
Python
1
none
16
51
51
true
[utils] `js_to_json`: Implement template strings
6,623
yt-dlp/yt-dlp
132,642
Python
Grub4K
) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Ne...
No issues found.
) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Ne...
@@ -499,6 +499,7 @@ DeuxMNewsIE ) from .digitalconcerthall import DigitalConcertHallIE +from .discogs import DiscogsReleasePlaylistIE from .discovery import DiscoveryIE from .disney import DisneyIE from .dispeak import DigitallySpeakingIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/discogs] Add extractor
6,624
yt-dlp/yt-dlp
132,642
Python
rjy
from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Nexx...
No issues found.
from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Nexx...
@@ -1962,6 +1962,7 @@ from .triller import ( TrillerIE, TrillerUserIE, + TrillerShortIE, ) from .trilulilu import TriluliluIE from .trovo import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/triller] Support short URLs, detect removed videos
6,636
yt-dlp/yt-dlp
132,642
Python
bashonly
NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from...
No issues found.
NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from...
@@ -260,6 +260,10 @@ BrightcoveLegacyIE, BrightcoveNewIE, ) +from .brilliantpala import ( + BrilliantpalaElearnIE, + BrilliantpalaClassesIE, +) from .businessinsider import BusinessInsiderIE from .bundesliga import BundesligaIE from .buzzfeed import BuzzFeedIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[brilliantpala] Add extractor
6,680
yt-dlp/yt-dlp
132,642
Python
pzhlkj6612
NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDaily...
No issues found.
NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDaily...
@@ -444,6 +444,10 @@ ) from .democracynow import DemocracynowIE from .detik import DetikEmbedIE +from .dlf import ( + DLFIE, + DLFCorpusIE, +) from .dfb import DFBIE from .dhm import DHMIE from .digg import DiggIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/dlf] Add support for Deutschlandfunk
6,697
yt-dlp/yt-dlp
132,642
Python
nick-cd
NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDaily...
No issues found.
NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDaily...
@@ -1232,6 +1232,8 @@ NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramListIE, + NhkRadioNewsPageIE, + NhkRadiruIE, ) from .nhl import NHLIE from .nick import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/nhk] Add NHK Radiru (らじる) extractor
6,819
yt-dlp/yt-dlp
132,642
Python
garret1317
content = b'Content-Disposition: form-data; name="' + k + b'"\r\n\r\n' + v + b'\r\n' if boundary.encode('ascii') in content: raise ValueError('Boundary overlaps with data') out += content out += b'--' + boundary.encode('ascii') + b'--\r\n' return out, content_type def mul...
No issues found.
content = b'Content-Disposition: form-data; name="' + k + b'"\r\n\r\n' + v + b'\r\n' if boundary.encode('ascii') in content: raise ValueError('Boundary overlaps with data') out += content out += b'--' + boundary.encode('ascii') + b'--\r\n' return out, content_type def mul...
@@ -4093,6 +4093,10 @@ def data(self, data): def close(self): return self._out.strip() + # Fix UTF-8 encoded file wrongly marked as UTF-16. See https://github.com/yt-dlp/yt-dlp/issues/6543#issuecomment-1477169870 + # This will not trigger false positives since only UTF-8 text is being repl...
yt_dlp/utils.py
0
Python
1
none
16
51
51
true
[extractor/sbs] Overhaul extractor for new APIs
6,839
yt-dlp/yt-dlp
132,642
Python
vidiot720
def __getitem__(self, idx): if isinstance(idx, int): idx = slice(idx, idx) # NB: PlaylistEntries[1:10] => (0, 1, ... 9) step = 1 if idx.step is None else idx.step if idx.start is None: start = 0 if step > 0 else len(self) - 1 else: start ...
No issues found.
def __getitem__(self, idx): if isinstance(idx, int): idx = slice(idx, idx) # NB: PlaylistEntries[1:10] => (0, 1, ... 9) step = 1 if idx.step is None else idx.step if idx.start is None: start = 0 if step > 0 else len(self) - 1 else: start ...
@@ -1308,25 +1308,12 @@ def _create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, source_a return hc -def handle_youtubedl_headers(headers): - filtered_headers = headers - - if 'Youtubedl-no-compression' in filtered_headers: - filtered_headers = {k: v for k, v in filtered_headers.ite...
yt_dlp/utils/_utils.py
0
Python
1
none
16
51
51
true
Deprecate `Youtubedl-no-compression` header
6,876
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 = list(ja...
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 = list(ja...
@@ -49,32 +49,38 @@ def test_get_desktop_environment(self): """ based on https://chromium.googlesource.com/chromium/src/+/refs/heads/main/base/nix/xdg_util_unittest.cc """ test_cases = [ ({}, _LinuxDesktopEnvironment.OTHER), + ({'DESKTOP_SESSION': 'my_custom_de'}, _LinuxDesktop...
test/test_cookies.py
0
Python
1
none
16
51
51
true
Cookie fixes
6,897
yt-dlp/yt-dlp
132,642
Python
mbway
from .netverse import ( NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, ...
No issues found.
from .netverse import ( NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, ...
@@ -685,6 +685,13 @@ from .giantbomb import GiantBombIE from .giga import GigaIE from .glide import GlideIE +from .globalplayer import ( + GlobalPlayerLiveIE, + GlobalPlayerLivePlaylistIE, + GlobalPlayerAudioIE, + GlobalPlayerAudioEpisodeIE, + GlobalPlayerVideoIE +) from .globo import ( GloboIE,...
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractors/globalplayer] add Global Player extractors
6,903
yt-dlp/yt-dlp
132,642
Python
garret1317
return filename def ytdl_filename(self, filename): return filename + '.ytdl' def wrap_file_access(action, *, fatal=False): def error_callback(err, count, retries, *, fd): return RetryManager.report_retry( err, count, retries, info=fd.__to_screen, ...
No issues found.
return filename def ytdl_filename(self, filename): return filename + '.ytdl' def wrap_file_access(action, *, fatal=False): def error_callback(err, count, retries, *, fd): return RetryManager.report_retry( err, count, retries, info=fd.__to_screen, ...
@@ -285,7 +285,8 @@ def _prepare_multiline_status(self, lines=1): self._multiline = BreaklineStatusPrinter(self.ydl._out_files.out, lines) else: self._multiline = MultilinePrinter(self.ydl._out_files.out, lines, not self.params.get('quiet')) - self._multiline.allow_colors = sel...
yt_dlp/downloader/common.py
0
Python
1
none
16
51
51
true
[core] Implement `--color` flag
6,904
yt-dlp/yt-dlp
132,642
Python
Grub4K
self.assertEqual(json.loads(on), ['abc', 'def']) on = js_to_json('{"abc": "def",}') self.assertEqual(json.loads(on), {'abc': 'def'}) on = js_to_json('{/*comment\n*/"abc"/*comment\n*/:/*comment\n*/"def"/*comment\n*/,/*comment\n*/}') self.assertEqual(json.loads(on), {'abc': 'def'...
No issues found.
self.assertEqual(json.loads(on), ['abc', 'def']) on = js_to_json('{"abc": "def",}') self.assertEqual(json.loads(on), {'abc': 'def'}) on = js_to_json('{/*comment\n*/"abc"/*comment\n*/:/*comment\n*/"def"/*comment\n*/,/*comment\n*/}') self.assertEqual(json.loads(on), {'abc': 'def'...
@@ -2016,7 +2016,7 @@ def test_traverse_obj(self): msg='nested `...` queries should work') self.assertCountEqual(traverse_obj(_TEST_DATA, (..., ..., 'index')), range(4), msg='`...` query result should be flattened') - self.assertEqual(traverse_obj...
test/test_utils.py
0
Python
1
none
16
51
51
true
[utils] `traverse_obj`: More fixes
6,959
yt-dlp/yt-dlp
132,642
Python
Grub4K
NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE...
No issues found.
NetverseIE, NetversePlaylistIE, NetverseSearchIE, ) from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE...
@@ -1195,6 +1195,7 @@ NebulaSubscriptionsIE, NebulaChannelIE, ) +from .nekohacker import NekoHackerIE from .nerdcubed import NerdCubedFeedIE from .netzkino import NetzkinoIE from .neteasemusic import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/nekohacker] Add Extractor
7,003
yt-dlp/yt-dlp
132,642
Python
hasezoey
NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, NFLPlusEpisodeIE, NFLPlusReplayIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramListIE, Nhk...
No issues found.
NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, NFLPlusEpisodeIE, NFLPlusReplayIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramListIE, Nhk...
@@ -1555,7 +1555,14 @@ from .radiode import RadioDeIE from .radiojavan import RadioJavanIE from .radiobremen import RadioBremenIE -from .radiofrance import FranceCultureIE, RadioFranceIE +from .radiofrance import ( + FranceCultureIE, + RadioFranceIE, + RadioFranceLiveIE, + RadioFrancePodcastIE, + Radi...
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[radiofrance] Add live stations, podcast, profile and program schedule extractors
7,006
yt-dlp/yt-dlp
132,642
Python
elyse0
from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Nexx...
No issues found.
from .newgrounds import ( NewgroundsIE, NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( Nexx...
@@ -284,6 +284,10 @@ CamdemyIE, CamdemyFolderIE ) +from .camfm import ( + CamFMEpisodeIE, + CamFMShowIE +) from .cammodels import CamModelsIE from .camsoda import CamsodaIE from .camtasia import CamtasiaEmbedIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
Add Cam FM catch up extractors
7,083
yt-dlp/yt-dlp
132,642
Python
garret1317
params=escape_rfc3986(url_parsed.params), query=escape_rfc3986(url_parsed.query), fragment=escape_rfc3986(url_parsed.fragment) ).geturl() def parse_qs(url, **kwargs): return urllib.parse.parse_qs(urllib.parse.urlparse(url).query, **kwargs) def read_batch_urls(batch_fd): def fixup...
No issues found.
params=escape_rfc3986(url_parsed.params), query=escape_rfc3986(url_parsed.query), fragment=escape_rfc3986(url_parsed.fragment) ).geturl() def parse_qs(url, **kwargs): return urllib.parse.parse_qs(urllib.parse.urlparse(url).query, **kwargs) def read_batch_urls(batch_fd): def fixup...
@@ -1511,136 +1511,6 @@ def is_path_like(f): return isinstance(f, (str, bytes, os.PathLike)) -class YoutubeDLCookieJar(http.cookiejar.MozillaCookieJar): - """ - See [1] for cookie file format. - - 1. https://curl.haxx.se/docs/http-cookies.html - """ - _HTTPONLY_PREFIX = '#HttpOnly_' - _ENTRY_...
yt_dlp/utils/_utils.py
0
Python
1
none
16
51
51
true
[cookies] Move `YouTubeDLCookieJar` to `cookies.py`
7,091
yt-dlp/yt-dlp
132,642
Python
coletdjnz
if success: yield f else: self.to_screen('[info] Unable to download format %s. Skipping...' % f['format_id']) def _default_format_spec(self, info_dict, download=True): def can_merge(): merger = FFmpegMergerPP(self) return merg...
No issues found.
if success: yield f else: self.to_screen('[info] Unable to download format %s. Skipping...' % f['format_id']) def _default_format_spec(self, info_dict, download=True): def can_merge(): merger = FFmpegMergerPP(self) return merg...
@@ -21,9 +21,9 @@ import tokenize import traceback import unicodedata -import urllib.request from .cache import Cache +from .compat import urllib # isort: split from .compat import compat_os_name, compat_shlex_quote from .cookies import load_cookies from .downloader import FFmpegFD, get_suitable_downloader, s...
yt_dlp/YoutubeDL.py
0
Python
1
none
16
51
51
true
[core] Workaround erroneous urllib Windows proxy parsing
7,092
yt-dlp/yt-dlp
132,642
Python
coletdjnz
# See: https://github.com/yt-dlp/yt-dlp/pull/7094#discussion_r1199746041 self.http_server_thread.daemon = True self.http_server_thread.start() # HTTPS server certfn = os.path.join(TEST_DIR, 'testcert.pem') self.https_httpd = http.server.ThreadingHTTPServer( (...
No issues found.
# See: https://github.com/yt-dlp/yt-dlp/pull/7094#discussion_r1199746041 self.http_server_thread.daemon = True self.http_server_thread.start() # HTTPS server certfn = os.path.join(TEST_DIR, 'testcert.pem') self.https_httpd = http.server.ThreadingHTTPServer( (...
@@ -7,40 +7,163 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) - +import gzip +import http.cookiejar import http.server +import io +import pathlib import ssl +import tempfile import threading +import urllib.error import urllib.request from test.helper import http_server_p...
test/test_http.py
0
Python
1
none
16
51
51
true
[core] Fix HTTP redirect handling
7,094
yt-dlp/yt-dlp
132,642
Python
coletdjnz
'id': '63756df1c638b008a5659dec', 'title': 'Facundo González sufrió fuerte golpe durante competencia frente a Hugo García en EEG', 'description': 'md5:9490c034264afd756eef7b2c3adee69e', 'thumbnail': 're:^https?://[^?#]+63756df1c638b008a5659dec', 'ext': 'mp4', ...
No issues found.
'id': '63756df1c638b008a5659dec', 'title': 'Facundo González sufrió fuerte golpe durante competencia frente a Hugo García en EEG', 'description': 'md5:9490c034264afd756eef7b2c3adee69e', 'thumbnail': 're:^https?://[^?#]+63756df1c638b008a5659dec', 'ext': 'mp4', ...
@@ -106,8 +106,12 @@ def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - if 'Debido a tu ubicación no puedes ver el contenido' in webpage: - self.raise_geo_restricted() + for message in [ + 'Debido a tu ub...
yt_dlp/extractor/mediastream.py
0
Python
1
none
16
51
51
true
Add extractors for CaracolTvPlay and Canal1
7,151
yt-dlp/yt-dlp
132,642
Python
elyse0
NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, NFLPlusEpisodeIE, NFLPlusReplayIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramLis...
No issues found.
NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import NFHSNetworkIE from .nfl import ( NFLIE, NFLArticleIE, NFLPlusEpisodeIE, NFLPlusReplayIE, ) from .nhk import ( NhkVodIE, NhkVodProgramIE, NhkForSchoolBangumiIE, NhkForSchoolSubjectIE, NhkForSchoolProgramLis...
@@ -2588,6 +2588,9 @@ ZingMp3ChartMusicVideoIE, ZingMp3UserIE, ZingMp3HubIE, + ZingMp3LiveRadioIE, + ZingMp3PodcastEpisodeIE, + ZingMp3PodcastIE, ) from .zoom import ZoomIE from .zype import ZypeIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/zingmp3]: add live radio extractor
7,189
yt-dlp/yt-dlp
132,642
Python
hatienl0i2612
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
No issues found.
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
@@ -2440,6 +2440,7 @@ from .youporn import YouPornIE from .yourporn import YourPornIE from .yourupload import YourUploadIE +from .zaiko import ZaikoIE from .zapiks import ZapiksIE from .zattoo import ( BBVTVIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/zaiko] Adding new extractor for zaiko.io
7,254
yt-dlp/yt-dlp
132,642
Python
c-basalt
formats = [] for ext, ext_info in (video.get('ua') or {}).items(): if isinstance(ext_info, dict): for height, video_info in ext_info.items(): if not traverse_obj(video_info, ('meta', 'h', {int_or_none})): video_info.setdefault('met...
No issues found.
formats = [] for ext, ext_info in (video.get('ua') or {}).items(): if isinstance(ext_info, dict): for height, video_info in ext_info.items(): if not traverse_obj(video_info, ('meta', 'h', {int_or_none})): video_info.setdefault('met...
@@ -144,7 +144,7 @@ def _extract_embed_urls(cls, url, webpage): if embeds: return embeds return [f'https://rumble.com/embed/{mobj.group("id")}' for mobj in re.finditer( - r'<script>\s*Rumble\(\s*"play"\s*,\s*{\s*[\'"]video[\'"]\s*:\s*[\'"](?P<id>[0-9a-z]+)[\'"]', webpage)] + ...
yt_dlp/extractor/rumble.py
0
Python
1
none
16
51
51
true
add funker530 extractor
7,291
yt-dlp/yt-dlp
132,642
Python
Cyberes
NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import...
No issues found.
NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBIE from .nfhsnetwork import...
@@ -1612,6 +1612,7 @@ from .restudy import RestudyIE from .reuters import ReutersIE from .reverbnation import ReverbNationIE +from .rheinmaintv import RheinMainTVIE from .rice import RICEIE from .rmcdecouverte import RMCDecouverteIE from .rockstargames import RockstarGamesIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/rheinmaintv] Add extractor
7,311
yt-dlp/yt-dlp
132,642
Python
bashonly
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
No issues found.
NewgroundsPlaylistIE, NewgroundsUserIE, ) from .newspicks import NewsPicksIE from .newstube import NewstubeIE from .newsy import NewsyIE from .nextmedia import ( NextMediaIE, NextMediaActionNewsIE, AppleDailyIE, NextTVIE, ) from .nexx import ( NexxIE, NexxEmbedIE, ) from .nfb import NFBI...
@@ -1260,6 +1260,7 @@ NhkForSchoolProgramListIE, NhkRadioNewsPageIE, NhkRadiruIE, + NhkRadiruLiveIE, ) from .nhl import NHLIE from .nick import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/nhk] add NHK Radiru Live IE
7,332
yt-dlp/yt-dlp
132,642
Python
garret1317
) from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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 .n...
No issues found.
) from .newspicks import NewsPicksIE from .newstube import NewstubeIE 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 .n...
@@ -2264,6 +2264,8 @@ VKIE, VKUserVideosIE, VKWallPostIE, + VKPlayIE, + VKPlayLiveIE, ) from .vocaroo import VocarooIE from .vodlocker import VodlockerIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/vkplay] Adding new extractor for vkplay.live
7,358
yt-dlp/yt-dlp
132,642
Python
c-basalt
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, NFLArticleIE, NFLPlusEpisodeIE, NFL...
No issues found.
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, NFLArticleIE, NFLPlusEpisodeIE, NFL...
@@ -1855,6 +1855,10 @@ SRGSSRPlayIE, ) from .srmediathek import SRMediathekIE +from .stacommu import ( + StacommuLiveIE, + StacommuVODIE, +) from .stanfordoc import StanfordOpenClassroomIE from .startv import StarTVIE from .steam import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/stacommu] Add extractors
7,432
yt-dlp/yt-dlp
132,642
Python
urectanc
_AWS_USER_AGENT = 'aws-sdk-js/2.80.0 callback' def _real_extract(self, url): mobj = self._match_valid_url(url) site_id, video_id = mobj.group('site', 'id') aws_identity_id_json = json.dumps({ 'IdentityId': '%s:7655847c-0ae7-4d9b-80d6-56c062927eb3' % self._AWS_REGION ...
No issues found.
_AWS_USER_AGENT = 'aws-sdk-js/2.80.0 callback' def _real_extract(self, url): mobj = self._match_valid_url(url) site_id, video_id = mobj.group('site', 'id') aws_identity_id_json = json.dumps({ 'IdentityId': '%s:7655847c-0ae7-4d9b-80d6-56c062927eb3' % self._AWS_REGION ...
@@ -115,6 +115,7 @@ class ScrippsNetworksIE(InfoExtractor): 'uploader': 'SCNI-SCND', }, 'add_ie': ['ThePlatform'], + 'expected_warnings': ['No HLS formats found'], }, { 'url': 'https://www.diynetwork.com/videos/diy-barnwood-tablet-stand-0265790', 'only_matchi...
yt_dlp/extractor/scrippsnetworks.py
0
Python
1
none
16
51
51
true
CBCPlayer
7,484
yt-dlp/yt-dlp
132,642
Python
trainman261
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,...
@@ -223,7 +223,11 @@ BiliBiliPlayerIE, BilibiliSpaceVideoIE, BilibiliSpaceAudioIE, - BilibiliSpacePlaylistIE, + BilibiliCollectionListIE, + BilibiliSeriesListIE, + BilibiliFavoritesListIE, + BilibiliWatchlaterIE, + BilibiliPlaylistIE, BiliIntlIE, BiliIntlSeriesIE, BiliLiv...
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/bilibili] support mutiple playlists including series, favorites and watchlater
7,518
yt-dlp/yt-dlp
132,642
Python
c-basalt
on = js_to_json('{ 0: // comment\n1 }') self.assertEqual(json.loads(on), {'0': 1}) on = js_to_json(r'["<p>x<\/p>"]') self.assertEqual(json.loads(on), ['<p>x</p>']) on = js_to_json(r'["\xaa"]') self.assertEqual(json.loads(on), ['\u00aa']) on = js_to_json("['a\\\...
No issues found.
on = js_to_json('{ 0: // comment\n1 }') self.assertEqual(json.loads(on), {'0': 1}) on = js_to_json(r'["<p>x<\/p>"]') self.assertEqual(json.loads(on), ['<p>x</p>']) on = js_to_json(r'["\xaa"]') self.assertEqual(json.loads(on), ['\u00aa']) on = js_to_json("['a\\\...
@@ -1835,6 +1835,8 @@ def test_iri_to_uri(self): def test_clean_podcast_url(self): self.assertEqual(clean_podcast_url('https://www.podtrac.com/pts/redirect.mp3/chtbl.com/track/5899E/traffic.megaphone.fm/HSW7835899191.mp3'), 'https://traffic.megaphone.fm/HSW7835899191.mp3') self.assertEqual(clean_...
test/test_utils.py
0
Python
1
none
16
51
51
true
Fixes for clean_podcast_url()
7,556
yt-dlp/yt-dlp
132,642
Python
mabdelfattah
from .newstube import NewstubeIE 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, NFLArticle...
No issues found.
from .newstube import NewstubeIE 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, NFLArticle...
@@ -1698,8 +1698,8 @@ MegaTVComIE, MegaTVComEmbedIE, ) -from .ant1newsgr import ( - Ant1NewsGrWatchIE, +from .antenna import ( + AntennaGrWatchIE, Ant1NewsGrArticleIE, Ant1NewsGrEmbedIE, )
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/antenna] Improvements
7,584
yt-dlp/yt-dlp
132,642
Python
stdedos
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...
@@ -1417,7 +1417,7 @@ PatreonIE, PatreonCampaignIE ) -from .pbs import PBSIE +from .pbs import PBSIE, PBSKidsIE from .pearvideo import PearVideoIE from .peekvids import PeekVidsIE, PlayVidsIE from .peertube import (
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/pbskids] Add support for pbskids.org videos
7,602
yt-dlp/yt-dlp
132,642
Python
snixon
with handler(proxies={ 'http': f'http://127.0.0.1:{self.proxy_port}', }) as rh: url = 'http://中文.tw/' response = rh.send(Request(url)).read().decode() # b'xn--fiq228c' is '中文'.encode('idna') assert response == 'normal: http://xn--fiq228c.tw/' ...
No issues found.
with handler(proxies={ 'http': f'http://127.0.0.1:{self.proxy_port}', }) as rh: url = 'http://中文.tw/' response = rh.send(Request(url)).read().decode() # b'xn--fiq228c' is '中文'.encode('idna') assert response == 'normal: http://xn--fiq228c.tw/' ...
@@ -804,10 +804,10 @@ def test_httplib_validation_errors(self, handler): assert not isinstance(exc_info.value, TransportError) -def run_validation(handler, fail, req, **handler_kwargs): +def run_validation(handler, error, req, **handler_kwargs): with handler(**handler_kwargs) as rh: - if fa...
test/test_networking.py
0
Python
1
none
16
51
51
true
[networking/rh] Add strict extension checkinge
7,604
yt-dlp/yt-dlp
132,642
Python
coletdjnz
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, ...
@@ -1787,7 +1787,10 @@ from .slutload import SlutloadIE from .smotrim import SmotrimIE from .snotr import SnotrIE -from .sohu import SohuIE +from .sohu import ( + SohuIE, + SohuVIE, +) from .sonyliv import ( SonyLIVIE, SonyLIVSeriesIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor/sohu] Fix for unsupported base64-encoded url
7,628
yt-dlp/yt-dlp
132,642
Python
c-basalt
def test_allproxy(self, handler): url = 'http://foo.com/bar' with handler() as rh: response = validate_and_send(rh, Request(url, proxies={'all': f'http://127.0.0.1:{self.proxy_port}'})).read().decode( 'utf-8') assert response == f'normal: {url}' @pytest.m...
No issues found.
def test_allproxy(self, handler): url = 'http://foo.com/bar' with handler() as rh: response = validate_and_send(rh, Request(url, proxies={'all': f'http://127.0.0.1:{self.proxy_port}'})).read().decode( 'utf-8') assert response == f'normal: {url}' @pytest.m...
@@ -1280,6 +1280,17 @@ def test_content_type_header(self): req.data = b'test3' assert req.headers.get('Content-Type') == 'application/x-www-form-urlencoded' + def test_update_req(self): + req = Request('http://example.com') + assert req.data is None + assert req.method == 'GE...
test/test_networking.py
0
Python
1
none
16
51
51
true
[networking] Fix POST requests with 0-byte payloads
7,648
yt-dlp/yt-dlp
132,642
Python
bashonly
def test_noproxy(self, handler): with handler(proxies={'proxy': f'http://127.0.0.1:{self.proxy_port}'}) as rh: # NO_PROXY for no_proxy in (f'127.0.0.1:{self.http_port}', '127.0.0.1', 'localhost'): nop_response = validate_and_send( rh, Request(f'htt...
No issues found.
def test_noproxy(self, handler): with handler(proxies={'proxy': f'http://127.0.0.1:{self.proxy_port}'}) as rh: # NO_PROXY for no_proxy in (f'127.0.0.1:{self.http_port}', '127.0.0.1', 'localhost'): nop_response = validate_and_send( rh, Request(f'htt...
@@ -173,6 +173,12 @@ def do_GET(self): self.send_header('Location', self.path) self.send_header('Content-Length', '0') self.end_headers() + elif self.path == '/redirect_dotsegments': + self.send_response(301) + # redirect to /headers but with dot segme...
test/test_networking.py
0
Python
1
none
16
51
51
true
[networking] Remove dot segments during URL normalization
7,662
yt-dlp/yt-dlp
132,642
Python
coletdjnz
'duration': 34.0, } }, { 'url': 'https://weather.com/en-CA/international/videos/video/unidentified-object-falls-from-sky-in-india', 'only_matching': True, }] def _real_extract(self, url): asset_name, locale, display_id = self._match_valid_url(url).groups() ...
No issues found.
'duration': 34.0, } }, { 'url': 'https://weather.com/en-CA/international/videos/video/unidentified-object-falls-from-sky-in-india', 'only_matching': True, }] def _real_extract(self, url): asset_name, locale, display_id = self._match_valid_url(url).groups() ...
@@ -11,17 +11,19 @@ class TheWeatherChannelIE(ThePlatformIE): # XXX: Do not subclass from concrete IE _VALID_URL = r'https?://(?:www\.)?weather\.com(?P<asset_name>(?:/(?P<locale>[a-z]{2}-[A-Z]{2}))?/(?:[^/]+/)*video/(?P<id>[^/?#]+))' _TESTS = [{ - 'url': 'https://weather.com/series/great-outdoors/vid...
yt_dlp/extractor/theweatherchannel.py
0
Python
1
none
16
51
51
true
Fixtests
7,718
yt-dlp/yt-dlp
132,642
Python
trainman261
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,...
@@ -996,7 +996,7 @@ ) from .maariv import MaarivIE from .magellantv import MagellanTVIE -from .magentamusik360 import MagentaMusik360IE +from .magentamusik import MagentaMusikIE from .mailru import ( MailRuIE, MailRuMusicIE,
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[extractor] Add magentamusik.de
7,790
yt-dlp/yt-dlp
132,642
Python
pwaldhauer
# Sometimes wat serves the whole file with the --test option 'skip_download': True, }, }, { 'url': 'https://www.tf1.fr/tmc/burger-quiz/videos/burger-quiz-du-19-aout-2023-s03-episode-21-85585666.html', 'info_dict': { 'id': '14010600', 'ext': 'mp...
No issues found.
# Sometimes wat serves the whole file with the --test option 'skip_download': True, }, }, { 'url': 'https://www.tf1.fr/tmc/burger-quiz/videos/burger-quiz-du-19-aout-2023-s03-episode-21-85585666.html', 'info_dict': { 'id': '14010600', 'ext': 'mp...
@@ -27,6 +27,25 @@ class TF1IE(InfoExtractor): # Sometimes wat serves the whole file with the --test option 'skip_download': True, }, + }, { + 'url': 'https://www.tf1.fr/tmc/burger-quiz/videos/burger-quiz-du-19-aout-2023-s03-episode-21-85585666.html', + 'info_dict': {...
yt_dlp/extractor/tf1.py
0
Python
1
none
16
51
51
true
fix(wat.tv): remove `MYTF1` context to remove "Permission insuffisante" error
7,898
yt-dlp/yt-dlp
132,642
Python
davinkevin
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,...
@@ -1957,7 +1957,10 @@ WeTvSeriesIE, ) from .tennistv import TennisTVIE -from .tenplay import TenPlayIE +from .tenplay import ( + TenPlayIE, + TenPlaySeasonIE, +) from .testurl import TestURLIE from .tf1 import TF1IE from .tfo import TFOIE
yt_dlp/extractor/_extractors.py
0
Python
1
none
16
51
51
true
[tenplay] Add support for downloading whole seasons
7,939
yt-dlp/yt-dlp
132,642
Python
midnightveil
class SocksHTTPTestRequestHandler(http.server.BaseHTTPRequestHandler, SocksTestRequestHandler): def do_GET(self): if self.path == '/socks_info': payload = json.dumps(self.socks_info.copy()) self.send_response(200) self.send_header('Content-Type', 'application/json; charse...
No issues found.
class SocksHTTPTestRequestHandler(http.server.BaseHTTPRequestHandler, SocksTestRequestHandler): def do_GET(self): if self.path == '/socks_info': payload = json.dumps(self.socks_info.copy()) self.send_response(200) self.send_header('Content-Type', 'application/json; charse...
@@ -281,17 +281,13 @@ def test_socks4_auth(self, handler, ctx): rh, proxies={'all': f'socks4://user:@{server_address}'}) assert response['version'] == 4 - @pytest.mark.parametrize('handler,ctx', [ - pytest.param('Urllib', 'http', marks=pytest.mark.xfail( - re...
test/test_socks.py
0
Python
1
none
16
51
51
true
[networking] Fix various bugs in socks proxy implementation
8,065
yt-dlp/yt-dlp
132,642
Python
coletdjnz
if not strict: return f'"{v}"' raise ValueError(f'Unknown value: {v}') def create_map(mobj): return json.dumps(dict(json.loads(js_to_json(mobj.group(1) or '[]', vars=vars)))) code = re.sub(r'new Map\((\[.*?\])?\)', create_map, code) if not strict: code = re.su...
No issues found.
if not strict: return f'"{v}"' raise ValueError(f'Unknown value: {v}') def create_map(mobj): return json.dumps(dict(json.loads(js_to_json(mobj.group(1) or '[]', vars=vars)))) code = re.sub(r'new Map\((\[.*?\])?\)', create_map, code) if not strict: code = re.su...
@@ -2847,6 +2847,7 @@ def mimetype2ext(mt, default=NO_DEFAULT): 'quicktime': 'mov', 'webm': 'webm', 'vp9': 'vp9', + 'video/ogg': 'ogv', 'x-flv': 'flv', 'x-m4v': 'm4v', 'x-matroska': 'mkv',
yt_dlp/utils/_utils.py
0
Python
1
none
16
51
51
true
[ie/bpb] Support more urls and extract more metadata
8,119
yt-dlp/yt-dlp
132,642
Python
Grub4K
('POST', 301, 'GET'), ('HEAD', 301, 'HEAD'), ('POST', 302, 'GET'), ('HEAD', 302, 'HEAD'), ('PUT', 302, 'PUT'), ('POST', 308, 'POST'), ('POST', 307, 'POST'), ('HEAD', 308, 'HEAD'), ('HEAD', 307, 'HEAD'), ]) def test_get_redirect_method(self,...
No issues found.
('POST', 301, 'GET'), ('HEAD', 301, 'HEAD'), ('POST', 302, 'GET'), ('HEAD', 302, 'HEAD'), ('PUT', 302, 'PUT'), ('POST', 308, 'POST'), ('POST', 307, 'POST'), ('HEAD', 308, 'HEAD'), ('HEAD', 307, 'HEAD'), ]) def test_get_redirect_method(self,...
@@ -269,14 +269,14 @@ def test_compat_http_error_autoclose(self): assert not response.closed def test_incomplete_read_error(self): - error = IncompleteRead(b'test', 3, cause='test') + error = IncompleteRead(4, 3, cause='test') assert isinstance(error, IncompleteRead) asse...
test/test_networking_utils.py
0
Python
1
none
16
51
51
true
[cleanup] Misc
8,182
yt-dlp/yt-dlp
132,642
Python
bashonly