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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
),
(
'Reset morsel after invalid to not capture attributes',
'a=b; $invalid; $Version=1; c=d',
{'a': 'b', 'c': 'd'},
),
(
'Continue after non-flag attribute without value',
'a=b; path; Version... | Do we want to parse this as `{'foo': 'bar'}` ? Should I revert the regex changes?
I'm still not clear on what exactly we needed to fix back with crunchyroll or what real world examples that `LenientSimpleCookie` is solving | ),
(
'Reset morsel after invalid to not capture attributes',
'a=b; $invalid; $Version=1; c=d',
{'a': 'b', 'c': 'd'},
),
(
'Continue after non-flag attribute without value',
'a=b; path; Version... | @@ -328,4 +328,25 @@ def test_lenient_parsing(self):
'Key=Value; [Invalid]=Value; Another=Value',
{'Key': 'Value', 'Another': 'Value'},
),
+ # Ref: https://github.com/python/cpython/issues/143919
+ (
+ 'Test invalid cookie name w/ contr... | test/test_cookies.py | 26 | Python | 0.643 | question | 225 | 44 | 49 | false | [cookies] Ignore cookies with control characters | 15,862 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | bashonly |
'timestamp': 1770420187,
'upload_date': '20260206',
'uploader_id': 'tver-olympic',
},
}, {
'url': 'https://tver.jp/olympic/milanocortina2026/live/play/glts313itwvj/',
'info_dict': {
'id': 'glts313itwvj',
'ext': 'mp4',
't... | Update `--live-from-start` documentation in `yt_dlp/options.py` | 'timestamp': 1770420187,
'upload_date': '20260206',
'uploader_id': 'tver-olympic',
},
}, {
'url': 'https://tver.jp/olympic/milanocortina2026/live/play/glts313itwvj/',
'info_dict': {
'id': 'glts313itwvj',
'ext': 'mp4',
't... | @@ -257,3 +260,103 @@ def _real_extract(self, url):
'id': video_id,
'_old_archive_ids': [make_archive_id('BrightcoveNew', brightcove_id)] if brightcove_id else None,
}
+
+
+class TVerOlympicIE(StreaksBaseIE):
+ IE_NAME = 'tver:olympic'
+
+ _API_BASE = 'https://olympic-data.tver.... | yt_dlp/extractor/tver.py | 26 | Python | 0.357 | suggestion | 63 | 51 | 51 | false | [ie/tver:olympic] Add extractor | 15,885 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
'modified_date': r're:\d{8}',
'modified_timestamp': int,
'thumbnail': r're:https://.+\.(?:jpg|png)',
'timestamp': 1770420300,
'upload_date': '20260206',
'uploader_id': 'tver-olympic-live',
},
}]
def _real_extract(self, url):
... | IMO would be better to set `live_status = 'is_upcoming'` and `raise_no_formats` in this case so that `--wait-for-video` is supported | 'modified_date': r're:\d{8}',
'modified_timestamp': int,
'thumbnail': r're:https://.+\.(?:jpg|png)',
'timestamp': 1770420300,
'upload_date': '20260206',
'uploader_id': 'tver-olympic-live',
},
}]
def _real_extract(self, url):
... | @@ -257,3 +260,103 @@ def _real_extract(self, url):
'id': video_id,
'_old_archive_ids': [make_archive_id('BrightcoveNew', brightcove_id)] if brightcove_id else None,
}
+
+
+class TVerOlympicIE(StreaksBaseIE):
+ IE_NAME = 'tver:olympic'
+
+ _API_BASE = 'https://olympic-data.tver.... | yt_dlp/extractor/tver.py | 26 | Python | 0.571 | suggestion | 132 | 51 | 51 | false | [ie/tver:olympic] Add extractor | 15,885 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
def _real_extract(self, url):
video_type, video_id = self._match_valid_url(url).group('type', 'id')
live_from_start = self.get_param('live_from_start')
if video_type == 'live':
project_id = 'tver-olympic-live'
api_key = 'a35ebb1ca7d443758dc7fcc5d99b1f72'
... | The initial traversal and all comparisons that follow are all fatal. Do we want them to be? Even if so, I don't like that the initial traversal can throw "not enough values to unpack." IMO use separate traversals and `require` |
def _real_extract(self, url):
video_type, video_id = self._match_valid_url(url).group('type', 'id')
live_from_start = self.get_param('live_from_start')
if video_type == 'live':
project_id = 'tver-olympic-live'
api_key = 'a35ebb1ca7d443758dc7fcc5d99b1f72'
... | @@ -257,3 +260,103 @@ def _real_extract(self, url):
'id': video_id,
'_old_archive_ids': [make_archive_id('BrightcoveNew', brightcove_id)] if brightcove_id else None,
}
+
+
+class TVerOlympicIE(StreaksBaseIE):
+ IE_NAME = 'tver:olympic'
+
+ _API_BASE = 'https://olympic-data.tver.... | yt_dlp/extractor/tver.py | 26 | Python | 0.643 | suggestion | 226 | 51 | 51 | false | [ie/tver:olympic] Add extractor | 15,885 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
media_id += '_dvr'
elif end_timestamp <= now:
dvr_end_timestamp = traverse_obj(olympic_data, (
'dvr_end_date', {unified_timestamp(tz_offset=9)}))
if dvr_end_timestamp and now < dvr_end_timestamp:
live_status = 'was_l... | maybe?
```suggestion
live_status = 'was_live'
``` | self.raise_no_formats(
f'This program is scheduled to start at {start_timestamp_str} JST', expected=True)
return {
'id': video_id,
'live_status': 'is_upcoming',
'release_timestamp': start_timestamp,
... | @@ -257,3 +260,103 @@ def _real_extract(self, url):
'id': video_id,
'_old_archive_ids': [make_archive_id('BrightcoveNew', brightcove_id)] if brightcove_id else None,
}
+
+
+class TVerOlympicIE(StreaksBaseIE):
+ IE_NAME = 'tver:olympic'
+
+ _API_BASE = 'https://olympic-data.tver.... | yt_dlp/extractor/tver.py | 26 | Python | 0.571 | suggestion | 64 | 38 | 48 | false | [ie/tver:olympic] Add extractor | 15,885 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
'duration': 7680,
'live_status': 'was_live',
'modified_date': r're:\d{8}',
'modified_timestamp': int,
'thumbnail': r're:https://.+\.(?:jpg|png)',
'timestamp': 1770420300,
'upload_date': '20260206',
'uploader_id': 'tver-olymp... | ```suggestion
start_timestamp_str = traverse_obj(olympic_data, ('onair_start_date', {str}))
start_timestamp = unified_timestamp(start_timestamp_str, tz_offset=9)
if not start_timestamp:
raise ExtractorError('Unable to extract on-air start time')
``` | 'duration': 7680,
'live_status': 'was_live',
'modified_date': r're:\d{8}',
'modified_timestamp': int,
'thumbnail': r're:https://.+\.(?:jpg|png)',
'timestamp': 1770420300,
'upload_date': '20260206',
'uploader_id': 'tver-olymp... | @@ -257,3 +260,112 @@ def _real_extract(self, url):
'id': video_id,
'_old_archive_ids': [make_archive_id('BrightcoveNew', brightcove_id)] if brightcove_id else None,
}
+
+
+class TVerOlympicIE(StreaksBaseIE):
+ IE_NAME = 'tver:olympic'
+
+ _API_BASE = 'https://olympic-data.tver.... | yt_dlp/extractor/tver.py | 26 | Python | 1 | refactor | 306 | 51 | 51 | false | [ie/tver:olympic] Add extractor | 15,885 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
'episode': '207 - Whitney Webb Returns',
'episode_number': 207,
'description': 'md5:75ef4316031df7b41ced4e7b987f79c6',
'upload_date': '20200705',
'timestamp': 1593932400,
'duration': 5369,
'series': 'The Tim Dillon Show',
't... | That is the default `contains_pattern` value, no?
```suggestion
'server data', episode_id)['data'][0]['data']
``` | 'episode': '207 - Whitney Webb Returns',
'episode_number': 207,
'description': 'md5:75ef4316031df7b41ced4e7b987f79c6',
'upload_date': '20200705',
'timestamp': 1593932400,
'duration': 5369,
'series': 'The Tim Dillon Show',
't... | @@ -57,22 +57,22 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, episode_id)
server_data = self._search_json(
r'<script [^>]*\bid=["\']serialized-server-data["\'][^>]*>', webpage,
- 'server data', episode_id, contains_pattern=r'\[{(?s:.+)}\]')[0]['data']
... | yt_dlp/extractor/applepodcasts.py | 26 | Python | 0.714 | suggestion | 128 | 46 | 46 | false | [ie/ApplePodcasts] Fix extractor | 15,901 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | coreywright |
description
length
program {
nodeUrl
title
}
programOrder
publishedAt
season
tags
thumbnail
... | nitpick: I would import and do this
```suggestion
'ie_key': BrightcoveNewIE.ie_key(),
```
otherwise LGTM | getTVOOrgVideo(slug: $slug) {
contentCategory
description
length
program {
nodeUrl
title
}
programOrder
publishedAt
... | @@ -0,0 +1,150 @@
+import json
+import urllib.parse
+
+from .common import InfoExtractor
+from ..utils import (
+ clean_html,
+ int_or_none,
+ parse_duration,
+ parse_iso8601,
+ smuggle_url,
+ str_or_none,
+ url_or_none,
+)
+from ..utils.traversal import (
+ require,
+ traverse_obj,
+ trim... | yt_dlp/extractor/tvo.py | 26 | Python | 0.714 | suggestion | 122 | 47 | 49 | false | [ie/tvo] Add extractor | 15,903 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
},
}, {
'url': 'https://www.tvo.org/video/documentaries/valentines-day',
'info_dict': {
'id': '6387298331112',
'ext': 'mp4',
'title': 'Valentine\'s Day',
'categories': ['Documentaries'],
'description': 'md5:b142149beb2d3a855244816c5... | ```suggestion
BRIGHTCOVE_URL_TEMPLATE = 'https://players.brightcove.net/18140038001/default_default/index.html?videoId=%s'
``` | },
}, {
'url': 'https://www.tvo.org/video/documentaries/valentines-day',
'info_dict': {
'id': '6387298331112',
'ext': 'mp4',
'title': 'Valentine\'s Day',
'categories': ['Documentaries'],
'description': 'md5:b142149beb2d3a855244816c5... | @@ -0,0 +1,152 @@
+import json
+import urllib.parse
+
+from .brightcove import BrightcoveNewIE
+from .common import InfoExtractor
+from ..utils import (
+ clean_html,
+ int_or_none,
+ parse_duration,
+ parse_iso8601,
+ smuggle_url,
+ str_or_none,
+ url_or_none,
+)
+from ..utils.traversal import (
+... | yt_dlp/extractor/tvo.py | 26 | Python | 0.714 | suggestion | 132 | 51 | 51 | false | [ie/tvo] Add extractor | 15,903 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | doe1080 |
'tbr': tbr,
'filesize_approx': filesize_from_tbr(tbr, format_duration),
'width': int_or_none(fmt_stream.get('width')),
'language': language_code,
'language_preference': language_preference,
# Strictly... | ```suggestion
# Live https formats are not supported
if fmt_stream.get('targetDurationSec') and not 'incomplete' in format_types:
```
prob worth documenting this for future devs | 'preference': -10 if is_damaged else -2 if itag == '17' else None,
}
mime_mobj = re.match(
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt_stream.get('mimeType') or '')
if mime_mobj:
dct['ext'] = mimetype2... | @@ -3464,7 +3464,7 @@ def process_https_formats():
https_fmts = []
for fmt_stream in streaming_formats:
- if fmt_stream.get('targetDurationSec'):
+ if fmt_stream.get('targetDurationSec') and not 'incomplete' in format_types: | yt_dlp/extractor/youtube/_video.py | 26 | Python | 0.929 | suggestion | 218 | 51 | 51 | false | [ie/youtube] Extract live adaptive `incomplete` formats | 15,937 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | CanOfSocks |
'tbr': tbr,
'filesize_approx': filesize_from_tbr(tbr, format_duration),
'width': int_or_none(fmt_stream.get('width')),
'language': language_code,
'language_preference': language_preference,
# Strictly... | ```suggestion
if fmt_stream.get('targetDurationSec') and 'incomplete' not in format_types:
```
to resolve linter | 'preference': -10 if is_damaged else -2 if itag == '17' else None,
}
mime_mobj = re.match(
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt_stream.get('mimeType') or '')
if mime_mobj:
dct['ext'] = mimetype2... | @@ -3464,7 +3464,7 @@ def process_https_formats():
https_fmts = []
for fmt_stream in streaming_formats:
- if fmt_stream.get('targetDurationSec'):
+ if fmt_stream.get('targetDurationSec') and not 'incomplete' in format_types: | yt_dlp/extractor/youtube/_video.py | 26 | Python | 0.857 | suggestion | 133 | 51 | 51 | false | [ie/youtube] Extract live adaptive `incomplete` formats | 15,937 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | CanOfSocks |
'filesize_approx': filesize_from_tbr(tbr, format_duration),
'width': int_or_none(fmt_stream.get('width')),
'language': language_code,
'language_preference': language_preference,
# Strictly de-prioritize damaged and 3gp f... | can we move this line from L3580 up to L3222:
```py
skip_bad_formats = 'incomplete' not in format_types
```
and then change this to:
```suggestion
if fmt_stream.get('targetDurationSec') and skip_bad_formats:
``` | }
mime_mobj = re.match(
r'((?:[^/]+)/(?:[^;]+))(?:;\s*codecs="([^"]+)")?', fmt_stream.get('mimeType') or '')
if mime_mobj:
dct['ext'] = mimetype2ext(mime_mobj.group(1))
dct.update(parse_codecs(mime_mobj.group(2))... | @@ -3464,7 +3464,8 @@ def process_https_formats():
https_fmts = []
for fmt_stream in streaming_formats:
- if fmt_stream.get('targetDurationSec'):
+ # Live https formats are not supported
+ if fmt_stream.get('targetDurationSec')... | yt_dlp/extractor/youtube/_video.py | 26 | Python | 1 | refactor | 252 | 51 | 51 | false | [ie/youtube] Extract live adaptive `incomplete` formats | 15,937 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | CanOfSocks |
(
Request('http://127.0.0. 1', method='GET'),
'URL can\'t contain control characters',
lambda v: v < (3, 7, 8) or (3, 8, 0) <= v < (3, 8, 3),
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1288C31-L1288... | ```suggestion
# ruff: disable[PLW0108] `requests` and/or `urllib3` may not be available
(lambda: requests.exceptions.ConnectTimeout(), TransportError),
(lambda: requests.exceptions.ReadTimeout(), TransportError),
(lambda: requests.exceptions.Timeout(), TransportError),
(lamb... | (
Request('http://127.0.0. 1', method='GET'),
'URL can\'t contain control characters',
lambda v: v < (3, 7, 8) or (3, 8, 0) <= v < (3, 8, 3),
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1288C31-L1288... | @@ -1005,19 +1005,20 @@ def test_httplib_validation_errors(self, handler, req, match, version_check):
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('raised,expected', [
- (lambda: requests.exceptions.Conn... | test/test_networking.py | 26 | Python | 0.929 | suggestion | 449 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1288C31-L1288C50
(Request('http://127.0.0.1', headers={'foo\n': 'bar'}), 'Invalid header name', None),
])
def test_httplib_validation_errors(self, handler, req, match, version_check):... | ```suggestion
(lambda: requests.exceptions.SSLError(), SSLError),
(lambda: requests.exceptions.InvalidURL(), RequestError),
(lambda: requests.exceptions.InvalidHeader(), RequestError),
``` | ),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1288C31-L1288C50
(Request('http://127.0.0.1', headers={'foo\n': 'bar'}), 'Invalid header name', None),
])
def test_httplib_validation_errors(self, handler, req, match, version_check):... | @@ -1005,19 +1005,20 @@ def test_httplib_validation_errors(self, handler, req, match, version_check):
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('raised,expected', [
- (lambda: requests.exceptions.Conn... | test/test_networking.py | 26 | Python | 0.929 | suggestion | 216 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
if version_check and version_check(sys.version_info):
pytest.skip(f'Python {sys.version} version does not have the required validation for this test.')
with handler() as rh:
with pytest.raises(RequestError, match=match) as exc_info:
validate_and_send(rh, req)
... | ```suggestion
(lambda: urllib3.exceptions.HTTPError(), TransportError),
(lambda: requests.exceptions.RequestException(), RequestError),
# Needs a response object
# (lambda: requests.exceptions.TooManyRedirects(), HTTPError),
# ruff: enable[PLW0108]
``` | if version_check and version_check(sys.version_info):
pytest.skip(f'Python {sys.version} version does not have the required validation for this test.')
with handler() as rh:
with pytest.raises(RequestError, match=match) as exc_info:
validate_and_send(rh, req)
... | @@ -1005,19 +1005,20 @@ def test_httplib_validation_errors(self, handler, req, match, version_check):
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('raised,expected', [
- (lambda: requests.exceptions.Conn... | test/test_networking.py | 26 | Python | 0.929 | suggestion | 298 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
(requests.exceptions.InvalidURL, RequestError),
(requests.exceptions.InvalidHeader, RequestError),
# catch-all: https://github.com/psf/requests/blob/main/src/requests/adapters.py#L535
(urllib3.exceptions.HTTPError, TransportError),
(requests.exceptions.RequestException, RequestEr... | ```suggestion
# ruff: disable[PLW0108] `urllib3` may not be available
(lambda: urllib3.exceptions.SSLError(), SSLError, None),
(lambda: urllib3.exceptions.TimeoutError(), TransportError, None),
``` | (lambda: requests.exceptions.SSLError(), SSLError),
(lambda: requests.exceptions.InvalidURL(), RequestError),
(lambda: requests.exceptions.InvalidHeader(), RequestError),
# catch-all: https://github.com/psf/requests/blob/main/src/requests/adapters.py#L535
(lambda: urllib3.excepti... | @@ -1035,12 +1036,12 @@ def request(self, *args, **kwargs):
assert exc_info.type is expected
@pytest.mark.parametrize('raised,expected,match', [
- (lambda: urllib3.exceptions.SSLError(), SSLError, None),
- (lambda: urllib3.exceptions.TimeoutError(), TransportError, None),
+ (url... | test/test_networking.py | 26 | Python | 0.929 | suggestion | 225 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
(requests.exceptions.RequestException, RequestError),
# Needs a response object
# (requests.exceptions.TooManyRedirects, HTTPError),
])
def test_request_error_mapping(self, handler, monkeypatch, raised, expected):
with handler() as rh:
def mock_get_instance(*args, **k... | ```suggestion
(lambda: urllib3.exceptions.ProtocolError(), TransportError, None),
(lambda: urllib3.exceptions.DecodeError(), TransportError, None),
(lambda: urllib3.exceptions.HTTPError(), TransportError, None), # catch-all
# ruff: enable[PLW0108]
``` | (lambda: urllib3.exceptions.HTTPError(), TransportError),
(lambda: requests.exceptions.RequestException(), RequestError),
# Needs a response object
# (lambda: requests.exceptions.TooManyRedirects(), HTTPError),
])
# ruff: enable[PLW0108]
def test_request_error_mapping(self, h... | @@ -1035,12 +1036,12 @@ def request(self, *args, **kwargs):
assert exc_info.type is expected
@pytest.mark.parametrize('raised,expected,match', [
- (lambda: urllib3.exceptions.SSLError(), SSLError, None),
- (lambda: urllib3.exceptions.TimeoutError(), TransportError, None),
+ (url... | test/test_networking.py | 26 | Python | 0.929 | suggestion | 289 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
def __init__(self, *args, **kwargs):
class FakeResponse:
body = b''
headers = {}
status_code = 101
reason_phrase = 'test'
self.response = FakeResponse()
def send(self, *args, **kwargs):
raise raised()
... | ```suggestion
# https://websockets.readthedocs.io/en/stable/reference/exceptions.html
# ruff: disable[PLW0108] `websockets` may not be available
``` | def __init__(self, *args, **kwargs):
class FakeResponse:
body = b''
headers = {}
status_code = 101
reason_phrase = 'test'
self.response = FakeResponse()
def send(self, *args, **kwargs):
raise raised()
... | @@ -452,19 +452,19 @@ class TestWebsocketsRequestHandler:
# https://websockets.readthedocs.io/en/stable/reference/exceptions.html | test/test_websockets.py | 26 | Python | 0.857 | suggestion | 167 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
headers = {}
status_code = 101
reason_phrase = 'test'
self.response = FakeResponse()
def send(self, *args, **kwargs):
raise raised()
def recv(self, *args, **kwargs):
raise raised()
def close(self, *args, **kw... | ```suggestion
# (lambda: websockets.exceptions.InvalidStatus(), TransportError),
(lambda: websockets.exceptions.InvalidHandshake(), TransportError),
``` | headers = {}
status_code = 101
reason_phrase = 'test'
self.response = FakeResponse()
def send(self, *args, **kwargs):
raise raised()
def recv(self, *args, **kwargs):
raise raised()
def close(self, *args, **kw... | @@ -452,19 +452,19 @@ class TestWebsocketsRequestHandler:
# https://websockets.readthedocs.io/en/stable/reference/exceptions.html
(lambda: websockets.exceptions.InvalidURI(msg='test', uri='test://'), RequestError),
# Requires a response object. Should be covered by HTTP error tests.
- ... | test/test_websockets.py | 26 | Python | 0.857 | suggestion | 171 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
self.response = FakeResponse()
def send(self, *args, **kwargs):
raise raised()
def recv(self, *args, **kwargs):
raise raised()
def close(self, *args, **kwargs):
return
return FakeWsConnection()
@pytest.mark.parametrize('handler', ['Webso... | ```suggestion
(lambda: websockets.exceptions.NegotiationError(), TransportError),
``` |
self.response = FakeResponse()
def send(self, *args, **kwargs):
raise raised()
def recv(self, *args, **kwargs):
raise raised()
def close(self, *args, **kwargs):
return
return FakeWsConnection()
@pytest.mark.parametrize('handler', ['Webso... | @@ -452,19 +452,19 @@ class TestWebsocketsRequestHandler:
# https://websockets.readthedocs.io/en/stable/reference/exceptions.html
(lambda: websockets.exceptions.InvalidURI(msg='test', uri='test://'), RequestError),
# Requires a response object. Should be covered by HTTP error tests.
- ... | test/test_websockets.py | 26 | Python | 0.714 | suggestion | 95 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
def send(self, *args, **kwargs):
raise raised()
def recv(self, *args, **kwargs):
raise raised()
def close(self, *args, **kwargs):
return
return FakeWsConnection()
@pytest.mark.parametrize('handler', ['Websockets'], indirect=True)
class TestWebsockets... | ```suggestion
(lambda: websockets.exceptions.WebSocketException(), TransportError),
# ruff: enable[PLW0108]
``` |
def send(self, *args, **kwargs):
raise raised()
def recv(self, *args, **kwargs):
raise raised()
def close(self, *args, **kwargs):
return
return FakeWsConnection()
@pytest.mark.parametrize('handler', ['Websockets'], indirect=True)
class TestWebsockets... | @@ -452,19 +452,19 @@ class TestWebsocketsRequestHandler:
# https://websockets.readthedocs.io/en/stable/reference/exceptions.html
(lambda: websockets.exceptions.InvalidURI(msg='test', uri='test://'), RequestError),
# Requires a response object. Should be covered by HTTP error tests.
- ... | test/test_websockets.py | 26 | Python | 0.857 | suggestion | 130 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
@pytest.mark.parametrize('raised,expected,match', [
# https://websockets.readthedocs.io/en/stable/reference/sync/client.html#websockets.sync.client.ClientConnection.send
(lambda: websockets.exceptions.ConnectionClosed(None, None), TransportError, None),
(RuntimeError, TransportError, None),... | ```suggestion
# ruff: noqa: PLW0108 `websockets` may not be available
(lambda: websockets.exceptions.WebSocketException(), TransportError, None),
``` | rh.send(Request('ws://fake-url'))
assert exc_info.type is expected
@pytest.mark.parametrize('raised,expected,match', [
# https://websockets.readthedocs.io/en/stable/reference/sync/client.html#websockets.sync.client.ClientConnection.send
(lambda: websockets.exceptions.Con... | @@ -499,11 +499,11 @@ def test_ws_send_error_mapping(self, handler, monkeypatch, raised, expected, mat
@pytest.mark.parametrize('raised,expected,match', [
# https://websockets.readthedocs.io/en/stable/reference/sync/client.html#websockets.sync.client.ClientConnection.recv
(lambda: websockets.exce... | test/test_websockets.py | 26 | Python | 0.857 | suggestion | 168 | 34 | 38 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
lambda v: v < (3, 7, 9) or (3, 8, 0) <= v < (3, 8, 5),
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1265
# bpo-38576: Check implemented in 3.7.8+, 3.8.3+
(
Request('http://127.0.0. 1', method='GET'),
... | ok ruff do you like this
```suggestion
# `requests` and/or `urllib3` may not be available
# ruff: disable[PLW0108]
``` | lambda v: v < (3, 7, 9) or (3, 8, 0) <= v < (3, 8, 5),
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1265
# bpo-38576: Check implemented in 3.7.8+, 3.8.3+
(
Request('http://127.0.0. 1', method='GET'),
... | @@ -1005,6 +1005,7 @@ def test_httplib_validation_errors(self, handler, req, match, version_check):
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('raised,expected', [
+ # ruff: disable[PLW0108] `requests`... | test/test_networking.py | 26 | Python | 0.714 | suggestion | 138 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1265
# bpo-38576: Check implemented in 3.7.8+, 3.8.3+
(
Request('http://127.0.0. 1', method='GET'),
'URL can\'t contain control characters',
lambda... | ```suggestion
# ruff: disable[PLW0108] `requests` and/or `urllib3` may not be available
``` | ),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1265
# bpo-38576: Check implemented in 3.7.8+, 3.8.3+
(
Request('http://127.0.0. 1', method='GET'),
'URL can\'t contain control characters',
lambda... | @@ -1005,6 +1005,8 @@ def test_httplib_validation_errors(self, handler, req, match, version_check):
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('raised,expected', [
+ # `requests` and/or `urllib3` may n... | test/test_networking.py | 26 | Python | 0.714 | suggestion | 101 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
lambda v: v < (3, 7, 9) or (3, 8, 0) <= v < (3, 8, 5),
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1265
# bpo-38576: Check implemented in 3.7.8+, 3.8.3+
(
Request('http://127.0.0. 1', method='GET'),
... | ```suggestion
# ruff: disable[PLW0108] `requests` and/or `urllib3` may not be available
@pytest.mark.parametrize('raised,expected', [
``` | lambda v: v < (3, 7, 9) or (3, 8, 0) <= v < (3, 8, 5),
),
# https://github.com/python/cpython/blob/987b712b4aeeece336eed24fcc87a950a756c3e2/Lib/http/client.py#L1265
# bpo-38576: Check implemented in 3.7.8+, 3.8.3+
(
Request('http://127.0.0. 1', method='GET'),
... | @@ -1005,6 +1005,7 @@ def test_httplib_validation_errors(self, handler, req, match, version_check):
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestRequestHandlerBase):
@pytest.mark.parametrize('raised,expected', [
+ # ruff: disable[PLW0108] `requests`... | test/test_networking.py | 26 | Python | 0.714 | suggestion | 148 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
with handler() as rh:
with pytest.raises(RequestError, match=match) as exc_info:
validate_and_send(rh, req)
assert not isinstance(exc_info.value, TransportError)
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestReques... | ```suggestion
])
# ruff: enable[PLW0108]
``` | with handler() as rh:
with pytest.raises(RequestError, match=match) as exc_info:
validate_and_send(rh, req)
assert not isinstance(exc_info.value, TransportError)
@pytest.mark.parametrize('handler', ['Requests'], indirect=True)
class TestRequestsRequestHandler(TestReques... | @@ -1017,7 +1018,9 @@ class TestRequestsRequestHandler(TestRequestHandlerBase):
# catch-all: https://github.com/psf/requests/blob/main/src/requests/adapters.py#L535
(lambda: urllib3.exceptions.HTTPError(), TransportError),
(lambda: requests.exceptions.RequestException(), RequestError),
- ... | test/test_networking.py | 26 | Python | 0.571 | suggestion | 55 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
(ssl.SSLCertVerificationError, CertificateVerifyError),
(socks.ProxyError, ProxyError),
])
# ruff: enable[PLW0108]
def test_request_error_mapping(self, handler, monkeypatch, raised, expected):
import websockets.sync.client
import yt_dlp.networking._websockets
with ha... | ```suggestion
# ruff: noqa: PLW0108 `websockets` may not be available
(lambda: websockets.exceptions.WebSocketException(), TransportError, None),
``` | (ssl.SSLCertVerificationError, CertificateVerifyError),
(socks.ProxyError, ProxyError),
])
# ruff: enable[PLW0108]
def test_request_error_mapping(self, handler, monkeypatch, raised, expected):
import websockets.sync.client
import yt_dlp.networking._websockets
with ha... | @@ -482,12 +484,12 @@ def fake_connect(*args, **kwargs):
@pytest.mark.parametrize('raised,expected,match', [
# https://websockets.readthedocs.io/en/stable/reference/sync/client.html#websockets.sync.client.ClientConnection.send
(lambda: websockets.exceptions.ConnectionClosed(None, None), Transport... | test/test_websockets.py | 26 | Python | 0.857 | suggestion | 168 | 51 | 51 | false | [cleanup] Bump ruff to 0.15.x | 15,951 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | Grub4K |
'info_dict': {
'id': '184683621748',
'ext': 'mp4',
'title': 'Season 5 Episode 2: House of Cards',
'description': 'md5:55b389cbb4b7a01d8c2d837102905617',
'duration': 3086,
'thumbnail': 'https://cdn.thechosen.media/videos/cmkolt4el000afd5zd6x... | can inline this
```suggestion
def _real_extract(self, url):
video_id = self._match_id(url)
metadata = self._download_json(f'https://api.watch.thechosen.tv/v1/videos/{video_id}', video_id)
``` | },
'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://watch.thechosen.tv/video/184683621748',
'info_dict': {
'id': '184683621748',
'ext': 'mp4',
'title': 'Season 5 Episode 2: House of Cards',
'description': 'md5:55b389cbb4b7a01d8... | @@ -0,0 +1,117 @@
+from .common import InfoExtractor
+from .frontro import FrontroGroupBaseIE
+from ..utils import determine_ext
+from ..utils.traversal import traverse_obj
+
+
+class TheChosenIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
+ _TESTS = [{... | yt_dlp/extractor/thechosen.py | 26 | Python | 0.857 | refactor | 218 | 51 | 51 | false | [ie/thechosen] Rework extractor | 16,021 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | 0xvd |
},
'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://watch.thechosen.tv/video/184683621750',
'info_dict': {
'id': '184683621750',
'ext': 'mp4',
'title': 'Season 5 Episode 3: Woes',
'description': 'md5:90ca3cc41316a965fd1cd3d5b3... | if you're going to iterate over a `traverse_obj` result, then the the traversal path should be branching (either with `...` or `(('branch_a', 'branch_b'), 'common_key')` etc), which will ensure that `traverse_obj` returns a list.
Here, we are only using the `url` value, so we condense this:
```suggestion
f... | 'title': 'Season 5 Episode 2: House of Cards',
'description': 'md5:55b389cbb4b7a01d8c2d837102905617',
'duration': 3086,
'thumbnail': 'https://cdn.thechosen.media/videos/cmkolt4el000afd5zd6x0aeph/thumbnail.jpg',
},
'params': {'skip_download': 'm3u8'},
}... | @@ -0,0 +1,117 @@
+from .common import InfoExtractor
+from .frontro import FrontroGroupBaseIE
+from ..utils import determine_ext
+from ..utils.traversal import traverse_obj
+
+
+class TheChosenIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
+ _TESTS = [{... | yt_dlp/extractor/thechosen.py | 26 | Python | 0.857 | suggestion | 409 | 51 | 51 | false | [ie/thechosen] Rework extractor | 16,021 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | 0xvd |
'title': 'Season 5 Episode 3: Woes',
'description': 'md5:90ca3cc41316a965fd1cd3d5b3458784',
'duration': 3519,
'thumbnail': 'https://cdn.thechosen.media/videos/cmkoltsl8000dfd5z3luid3mg/thumbnail.jpg',
},
'params': {'skip_download': 'm3u8'},
}]
_AP... | some problems here:
- you're trying to extend `formats` and update `subtitles`, but you are overwriting the variable every iteration
- `subtitles.utend(formats)`
- you're discarding the m3u8 subs. is that intentional?
- if we're looping like this and have multiple opportunities to extract formats, the `_extract_*_f... | 'url': 'https://watch.thechosen.tv/video/184683621750',
'info_dict': {
'id': '184683621750',
'ext': 'mp4',
'title': 'Season 5 Episode 3: Woes',
'description': 'md5:90ca3cc41316a965fd1cd3d5b3458784',
'duration': 3519,
'thumbnail': '... | @@ -0,0 +1,117 @@
+from .common import InfoExtractor
+from .frontro import FrontroGroupBaseIE
+from ..utils import determine_ext
+from ..utils.traversal import traverse_obj
+
+
+class TheChosenIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
+ _TESTS = [{... | yt_dlp/extractor/thechosen.py | 26 | Python | 0.857 | bug | 1,103 | 51 | 51 | false | [ie/thechosen] Rework extractor | 16,021 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | 0xvd |
formats, subtitles = self._extract_m3u8_formats_and_subtitles(vurl, video_id)
formats.extend(formats)
elif ext == 'mpd':
formats, subtitles = self._extract_mpd_formats_and_subtitles(vurl, video_id)
subtitles.utend(formats)
subti... | see my above suggestion for how to properly use the `_merge_subtitles` helper
```suggestion
'subtitles': subtitles,
``` | elif ext == 'mpd':
fmts, subs = self._extract_mpd_formats_and_subtitles(fmt_url, video_id, fatal=False)
else:
self.report_warning(f'Skipping unsupported format extension "{ext}"', video_id=video_id)
continue
formats.extend(fmts)
... | @@ -0,0 +1,117 @@
+from .common import InfoExtractor
+from .frontro import FrontroGroupBaseIE
+from ..utils import determine_ext
+from ..utils.traversal import traverse_obj
+
+
+class TheChosenIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
+ _TESTS = [{... | yt_dlp/extractor/thechosen.py | 26 | Python | 0.786 | refactor | 134 | 49 | 50 | false | [ie/thechosen] Rework extractor | 16,021 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | 0xvd |
if not vurl:
continue
ext = determine_ext(vurl)
if ext == 'm3u8':
formats, subtitles = self._extract_m3u8_formats_and_subtitles(vurl, video_id)
formats.extend(formats)
elif ext == 'mpd':
formats, subtitles = ... | You are just parenthesizing the traversal paths here instead of using tuples, so there's no point to the parentheses.
Let's check types (e.g. `{str}`) and use a transformation (e.g. `{int_or_none}`), and then we *will* be using tuples and need the parentheses:
```suggestion
'title': ('title', {str}... | for fmt_url in traverse_obj(metadata, ('details', 'video', ..., 'url', {url_or_none})):
ext = determine_ext(fmt_url)
if ext == 'm3u8':
fmts, subs = self._extract_m3u8_formats_and_subtitles(fmt_url, video_id, 'mp4', fatal=False)
elif ext == 'mpd':
... | @@ -0,0 +1,117 @@
+from .common import InfoExtractor
+from .frontro import FrontroGroupBaseIE
+from ..utils import determine_ext
+from ..utils.traversal import traverse_obj
+
+
+class TheChosenIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
+ _TESTS = [{... | yt_dlp/extractor/thechosen.py | 26 | Python | 1 | suggestion | 441 | 51 | 51 | false | [ie/thechosen] Rework extractor | 16,021 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | 0xvd |
video_id = self._match_id(url)
metadata = self._download_json(self._API_TMPL.format(video_id), video_id)
formats, subtitles = [], {}
video_data = traverse_obj(metadata, ('details', 'video'))
for item in video_data:
vurl = item.get('url')
if not vurl:
... | could we do this?
```suggestion
for thumb_id, thumb_url in traverse_obj(metadata, (
('thumbs', 'thumbnails'), {dict.items}, lambda _, v: url_or_none(v[1]),
)):
thumbnails.append({
'id': thumb_id,
'url': thumb_url,
})
``` | }]
def _real_extract(self, url):
video_id = self._match_id(url)
metadata = self._download_json(f'https://api.watch.thechosen.tv/v1/videos/{video_id}', video_id)
formats, subtitles = [], {}
for fmt_url in traverse_obj(metadata, ('details', 'video', ..., 'url', {url_or_none})):
... | @@ -0,0 +1,117 @@
+from .common import InfoExtractor
+from .frontro import FrontroGroupBaseIE
+from ..utils import determine_ext
+from ..utils.traversal import traverse_obj
+
+
+class TheChosenIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
+ _TESTS = [{... | yt_dlp/extractor/thechosen.py | 26 | Python | 0.857 | suggestion | 313 | 51 | 51 | false | [ie/thechosen] Rework extractor | 16,021 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | 0xvd |
(?:[^#]+&)?id=(?P<id>{OpencastBaseIE._UUID_RE})'''
_API_BASE = 'https://%s/search/episode.json?id=%s'
_TESTS = [
{
'url': 'https://oc-video1.ruhr-uni-bochum.de/paella/ui/watch.html?id=ed063cd5-72c8-46b5-a60a-569243edcea8',
'md5': '554c8e99a90f7be7e874619fcf2a3bc9',
... | ```suggestion
response = self._call_api(host, video_id)
package = traverse_obj(response, (
('search-results', 'result'),
('result', ...), # Path needed for oc-p.uni-jena.de
'mediapackage', {dict}, any)) or {}
``` | (?:[^#]+&)?id=(?P<id>{OpencastBaseIE._UUID_RE})'''
_API_BASE = 'https://%s/search/episode.json?id=%s'
_TESTS = [
{
'url': 'https://oc-video1.ruhr-uni-bochum.de/paella/ui/watch.html?id=ed063cd5-72c8-46b5-a60a-569243edcea8',
'md5': '554c8e99a90f7be7e874619fcf2a3bc9',
... | @@ -131,8 +132,9 @@ class OpencastIE(OpencastBaseIE):
def _real_extract(self, url):
host, video_id = self._match_valid_url(url).group('host', 'id')
- return self._parse_mediapackage(
- self._call_api(host, video_id)['search-results']['result']['mediapackage'])
+ res = self._call... | yt_dlp/extractor/opencast.py | 26 | Python | 0.786 | suggestion | 271 | 51 | 51 | false | [ie/opencast] Support `oc-p.uni-jena.de` URLs | 16,026 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | LordMZTE |
_API_BASE = 'https://%s/search/episode.json?id=%s'
_TESTS = [
{
'url': 'https://oc-video1.ruhr-uni-bochum.de/paella/ui/watch.html?id=ed063cd5-72c8-46b5-a60a-569243edcea8',
'md5': '554c8e99a90f7be7e874619fcf2a3bc9',
'info_dict': {
'id': 'ed063cd5-72c8-... | ```suggestion
('result', ...), # Path needed for oc-p.uni-jena.de
``` | _API_BASE = 'https://%s/search/episode.json?id=%s'
_TESTS = [
{
'url': 'https://oc-video1.ruhr-uni-bochum.de/paella/ui/watch.html?id=ed063cd5-72c8-46b5-a60a-569243edcea8',
'md5': '554c8e99a90f7be7e874619fcf2a3bc9',
'info_dict': {
'id': 'ed063cd5-72c8-... | @@ -131,8 +132,12 @@ class OpencastIE(OpencastBaseIE):
def _real_extract(self, url):
host, video_id = self._match_valid_url(url).group('host', 'id')
- return self._parse_mediapackage(
- self._call_api(host, video_id)['search-results']['result']['mediapackage'])
+ response = self... | yt_dlp/extractor/opencast.py | 26 | Python | 0.571 | suggestion | 84 | 51 | 51 | false | [ie/opencast] Support `oc-p.uni-jena.de` URLs | 16,026 | yt-dlp/yt-dlp | 132,642 | Python | bashonly | LordMZTE |
# Some of these require _get_real_downloader
from .common import FileDownloader
from .dash import DashSegmentsFD
from .f4m import F4mFD
from .hls import HlsFD
from .http import HttpFD
from .rtmp import RtmpFD
from .rtsp import RtspFD
from .ism import IsmFD
from .youtube_live_chat import YoutubeLiveChatReplayFD
from .... | No issues found. |
# Some of these require _get_real_downloader
from .common import FileDownloader
from .dash import DashSegmentsFD
from .f4m import F4mFD
from .hls import HlsFD
from .http import HttpFD
from .rtmp import RtmpFD
from .rtsp import RtspFD
from .ism import IsmFD
from .youtube_live_chat import YoutubeLiveChatReplayFD
from .... | @@ -1,11 +1,24 @@
from __future__ import unicode_literals
+from ..utils import (
+ determine_protocol,
+)
+
+
+def _get_real_downloader(info_dict, protocol=None, *args, **kwargs):
+ info_copy = info_dict.copy()
+ if protocol:
+ info_copy['protocol'] = protocol
+ return get_suitable_downloader(info... | youtube_dlc/downloader/__init__.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Aria2c support for MPEG-DASH and HLS | 55 | yt-dlp/yt-dlp | 132,642 | Python | shirt-dev | |
return
def version_tuple(version_str):
return tuple(map(int, version_str.split('.')))
if version_tuple(__version__) >= version_tuple(version_id):
to_screen('youtube-dlc is up to date (%s)' % __version__)
return
to_screen('Updating to version ' + version_id + ' ...')
v... | No issues found. | return
def version_tuple(version_str):
return tuple(map(int, version_str.split('.')))
if version_tuple(__version__) >= version_tuple(version_id):
to_screen('youtube-dlc is up to date (%s)' % __version__)
return
to_screen('Updating to version ' + version_id + ' ...')
v... | @@ -15,6 +15,7 @@
from .version import __version__
+''' # Not signed
def rsa_verify(message, signature, key):
from hashlib import sha256
assert isinstance(message, bytes)
@@ -27,17 +28,13 @@ def rsa_verify(message, signature, key):
return False
expected = b'0001' + (byte_size - len(asn1) ... | youtube_dlc/update.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Implement self updater | 64 | yt-dlp/yt-dlp | 132,642 | Python | shirt-dev | |
if opts.extractaudio:
report_conflict('--allow-unplayable-formats', '--extract-audio')
opts.extractaudio = False
if opts.remuxvideo:
report_conflict('--allow-unplayable-formats', '--remux-video')
opts.remuxvideo = False
if opts.recodevideo:
... | No issues found. | if opts.extractaudio:
report_conflict('--allow-unplayable-formats', '--extract-audio')
opts.extractaudio = False
if opts.remuxvideo:
report_conflict('--allow-unplayable-formats', '--remux-video')
opts.remuxvideo = False
if opts.recodevideo:
... | @@ -212,9 +212,6 @@ def parse_retries(retries):
if opts.recodevideo is not None:
if opts.recodevideo not in REMUX_EXTENSIONS:
parser.error('invalid video recode format specified')
- if opts.remuxvideo and opts.recodevideo:
- opts.remuxvideo = None
- write_string('WARNING: --r... | youtube_dlc/__init__.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Allow downloading of unplayable formats | 70 | yt-dlp/yt-dlp | 132,642 | Python | shirt-dev | |
line = line.strip()
if not line:
continue
if line.startswith('#'):
if is_ad_fragment_start(line):
ad_frag_next = True
elif is_ad_fragment_end(line):
ad_frag_next = False
continue
... | No issues found. | line = line.strip()
if not line:
continue
if line.startswith('#'):
if is_ad_fragment_start(line):
ad_frag_next = True
elif is_ad_fragment_end(line):
ad_frag_next = False
continue
... | @@ -134,6 +134,7 @@ def is_ad_fragment_end(s):
i = 0
media_sequence = 0
decrypt_info = {'METHOD': 'NONE'}
+ key_list = []
byte_range = {}
frag_index = 0
ad_frag_next = False
@@ -215,6 +216,10 @@ def is_ad_fragment_end(s):
decrypt_... | youtube_dlc/downloader/hls.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Fix HLS AES-128 with multiple keys in external downloaders | 79 | yt-dlp/yt-dlp | 132,642 | Python | shirt-dev | |
if err.code < 500 or err.code >= 600:
raise
else:
# Examine the reported length
if (content_length is not None
and (ctx.resume_len - 100 < int(content_length) < ctx.res... | No issues found. | if err.code < 500 or err.code >= 600:
raise
else:
# Examine the reported length
if (content_length is not None
and (ctx.resume_len - 100 < int(content_length) < ctx.res... | @@ -27,6 +27,7 @@
class HttpFD(FileDownloader):
def real_download(self, filename, info_dict):
url = info_dict['url']
+ request_data = info_dict.get('request_data', None)
class DownloadContext(dict):
__getattr__ = dict.get
@@ -101,7 +102,7 @@ def establish_connection():
... | youtube_dlc/downloader/http.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | use new POST API for live chat | 86 | yt-dlp/yt-dlp | 132,642 | Python | siikamiika | |
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow imp... | No issues found. | )
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow imp... | @@ -1653,5 +1653,6 @@
)
from .zdf import ZDFIE, ZDFChannelIE
from .zingmp3 import ZingMp3IE
+from .zee5 import Zee5IE
from .zoom import ZoomIE
from .zype import ZypeIE | youtube_dlc/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Zee5] Add new extractor | 100 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
fro... | No issues found. | from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
fro... | @@ -788,8 +788,9 @@
NJoyEmbedIE,
)
from .ndtv import NDTVIE
-from .netzkino import NetzkinoIE
+from .nebula import NebulaIE
from .nerdcubed import NerdCubedFeedIE
+from .netzkino import NetzkinoIE
from .neteasemusic import (
NetEaseMusicIE,
NetEaseMusicAlbumIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [nebula] Add Nebula (watchnebula.com) extractor | 122 | yt-dlp/yt-dlp | 132,642 | Python | hheimbuerger | |
'uploader': 'OpenClassrooms',
'uploader_id': 'openclassrooms',
},
'add_ie': ['Vimeo'],
},
{
# generic vimeo embed that requires original URL passed as Referer
'url': 'http://racing4everyone.eu/2016/07/30/formula-1-2016-round... | No issues found. | 'uploader': 'OpenClassrooms',
'uploader_id': 'openclassrooms',
},
'add_ie': ['Vimeo'],
},
{
# generic vimeo embed that requires original URL passed as Referer
'url': 'http://racing4everyone.eu/2016/07/30/formula-1-2016-round... | @@ -127,7 +127,7 @@
from .zype import ZypeIE
from .odnoklassniki import OdnoklassnikiIE
from .kinja import KinjaEmbedIE
-from .gedi import GediEmbedsIE
+from .gedidigital import GediDigitalIE
from .rcs import RCSEmbedsIE
from .bitchute import BitChuteIE
from .rumble import RumbleEmbedIE
@@ -3339,12 +3339,12 @@ de... | yt_dlp/extractor/generic.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [gedi] Improvements based on updated extractor in yt-dl | 149 | yt-dlp/yt-dlp | 132,642 | Python | nixxo | |
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow impor... | No issues found. | from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow impor... | @@ -1668,5 +1668,6 @@
from .zhihu import ZhihuIE
from .zingmp3 import ZingMp3IE
from .zee5 import Zee5IE
+from .zee5 import Zee5SeriesIE
from .zoom import ZoomIE
from .zype import ZypeIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Zee5] Add Show Extractor | 160 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
'url': 'http://racing4everyone.eu/2016/07/30/formula-1-2016-round12-germany/',
'only_matching': True,
},
{
'url': 'https://support.arkena.com/display/PLAY/Ways+to+embed+your+video',
'md5': 'b96f2f71b359a8ecd05ce4e1daa72365',
'info_dict': {
... | No issues found. | 'url': 'http://racing4everyone.eu/2016/07/30/formula-1-2016-round12-germany/',
'only_matching': True,
},
{
'url': 'https://support.arkena.com/display/PLAY/Ways+to+embed+your+video',
'md5': 'b96f2f71b359a8ecd05ce4e1daa72365',
'info_dict': {
... | @@ -134,6 +134,7 @@
from .arcpublishing import ArcPublishingIE
from .medialaan import MedialaanIE
from .simplecast import SimplecastIE
+from .wimtv import WimTVIE
class GenericIE(InfoExtractor):
@@ -2250,6 +2251,15 @@ class GenericIE(InfoExtractor):
},
'playlist_mincount': 52,
... | yt_dlp/extractor/generic.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [wimtv] add support for wim.tv vod, live and embeds | 161 | yt-dlp/yt-dlp | 132,642 | Python | nixxo | |
format_sort.evaluate_params(self._downloader.params, field_preference)
if self._downloader.params.get('verbose', False):
format_sort.print_verbose_info(self._downloader.to_screen)
formats.sort(key=lambda f: format_sort.calculate_preference(f))
def _check_formats(self, formats, v... | No issues found. | format_sort.evaluate_params(self._downloader.params, field_preference)
if self._downloader.params.get('verbose', False):
format_sort.print_verbose_info(self._downloader.to_screen)
formats.sort(key=lambda f: format_sort.calculate_preference(f))
def _check_formats(self, formats, v... | @@ -264,13 +264,20 @@ class InfoExtractor(object):
properties (all but one of text or html optional):
* "author" - human-readable name of the comment author
* "author_id" - user ID of the comment author
+ * "author_thumbnail" ... | yt_dlp/extractor/common.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Youtube] Comments extraction rewrite | 167 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
current_selector = None
for type, string, start, _, _ in tokens:
# ENCODING is only defined in python 3.x
if type == getattr(tokenize, 'ENCODING', None):
continue
elif type in [tokenize.NAME, tokenize.NUMBER]:
... | No issues found. | current_selector = None
for type, string, start, _, _ in tokens:
# ENCODING is only defined in python 3.x
if type == getattr(tokenize, 'ENCODING', None):
continue
elif type in [tokenize.NAME, tokenize.NUMBER]:
... | @@ -1644,7 +1644,7 @@ def _merge(formats_pair):
new_dict.update({
'width': the_only_video.get('width'),
'height': the_only_video.get('height'),
- 'resolution': the_only_video.get('resolution'),
+ ... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Fixes and improvements in general and to external downloaders | 173 | yt-dlp/yt-dlp | 132,642 | Python | damianoamatruda | |
def unified_strdate(date_str, day_first=True):
"""Return a string with the date in the format YYYYMMDD"""
if date_str is None:
return None
upload_date = None
# Replace commas
date_str = date_str.replace(',', ' ')
# Remove AM/PM + timezone
date_str = re.sub(r'(?i)\s*(?:AM|PM)(?:\s+... | No issues found. |
def unified_strdate(date_str, day_first=True):
"""Return a string with the date in the format YYYYMMDD"""
if date_str is None:
return None
upload_date = None
# Replace commas
date_str = date_str.replace(',', ' ')
# Remove AM/PM + timezone
date_str = re.sub(r'(?i)\s*(?:AM|PM)(?:\s+... | @@ -4106,6 +4106,7 @@ def parse_age_limit(s):
m = re.match(r'^(?P<age>\d{1,2})\+?$', s)
if m:
return int(m.group('age'))
+ s = s.upper()
if s in US_RATINGS:
return US_RATINGS[s]
m = re.match(r'^TV[_-]?(%s)$' % '|'.join(k[3:] for k in TV_PARENTAL_GUIDELINES), s) | yt_dlp/utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | fixed multiple bugs in amcnetworks.py extractor | 179 | yt-dlp/yt-dlp | 132,642 | Python | 2ShedsJackson | |
def _check_formats(self, formats, video_id):
if formats:
formats[:] = filter(
lambda f: self._is_valid_url(
f['url'], video_id,
item='%s video format' % f.get('format_id') if f.get('format_id') else 'video'),
formats)
@... | No issues found. | def _check_formats(self, formats, video_id):
if formats:
formats[:] = filter(
lambda f: self._is_valid_url(
f['url'], video_id,
item='%s video format' % f.get('format_id') if f.get('format_id') else 'video'),
formats)
@... | @@ -301,7 +301,11 @@ class InfoExtractor(object):
playable_in_embed: Whether this video is allowed to play in embedded
players on other sites. Can be True (=always allowed),
False (=never allowed), None (=unknown), or a string
- specifying the criteria f... | yt_dlp/extractor/common.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add video availability/visibility key to info json | 188 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import N... | No issues found. | NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import N... | @@ -582,7 +582,11 @@
KuwoCategoryIE,
KuwoMvIE,
)
-from .la7 import LA7IE
+from .la7 import (
+ LA7IE,
+ LA7PodcastEpisodeIE,
+ LA7PodcastIE,
+)
from .laola1tv import (
Laola1TvEmbedIE,
Laola1TvIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [la7] Add podcast support | 198 | yt-dlp/yt-dlp | 132,642 | Python | nixxo | |
if error_code == 'access.denied.geoblocked':
self.raise_geo_restricted(countries=geo_countries)
elif error_code in ('access.denied.missingpackage', 'invalid.token'):
raise ExtractorError(
'This video is only available for registered users. You may want to use --co... | No issues found. | if error_code == 'access.denied.geoblocked':
self.raise_geo_restricted(countries=geo_countries)
elif error_code in ('access.denied.missingpackage', 'invalid.token'):
raise ExtractorError(
'This video is only available for registered users. You may want to use --co... | @@ -296,51 +296,6 @@ def _real_extract(self, url):
url, display_id, host, 'dplay' + country, country)
-class DiscoveryPlusIndiaIE(DPlayIE):
- _VALID_URL = r'https?://(?:www\.)?discoveryplus\.in/videos?' + DPlayIE._PATH_REGEX
- _TESTS = [{
- 'url': 'https://www.discoveryplus.in/videos/how-d... | yt_dlp/extractor/dplay.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [DiscoveryPlusIndia] Add DiscoveryPlusIndiaShowIE | 213 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
from .nfl import (
NFLIE,
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import N... | No issues found. | from .nfl import (
NFLIE,
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import N... | @@ -1340,7 +1340,10 @@
from .trunews import TruNewsIE
from .trutv import TruTVIE
from .tube8 import Tube8IE
-from .tubitv import TubiTvIE
+from .tubitv import (
+ TubiTvIE,
+ TubiTvShowIE,
+)
from .tumblr import TumblrIE
from .tunein import (
TuneInClipIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [TubiTv]Add TubiTvShowIE. | 243 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, Nicon... | No issues found. | from .nfhsnetwork import NFHSNetworkIE
from .nfl import (
NFLIE,
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, Nicon... | @@ -760,7 +760,10 @@
)
from .muenchentv import MuenchenTVIE
from .mwave import MwaveIE, MwaveMeetGreetIE
-from .mxplayer import MxplayerIE
+from .mxplayer import (
+ MxplayerIE,
+ MxplayerShowIE,
+)
from .mychannels import MyChannelsIE
from .myspace import MySpaceIE, MySpaceAlbumIE
from .myspass import MySp... | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Mxplayer]Add MxplayerShowIE. | 270 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
FFmpegFD,
)
PROTOCOL_MAP = {
'rtmp': RtmpFD,
'rtmp_ffmpeg': FFmpegFD,
'm3u8_native': HlsFD,
'm3u8': FFmpegFD,
'mms': RtspFD,
'rtsp': RtspFD,
'f4m': F4mFD,
'http_dash_segments': DashSegmentsFD,
'ism': IsmFD,
'niconico_dmc': NiconicoDmcFD,
'youtube_live_chat_replay': Youtu... | No issues found. | FFmpegFD,
)
PROTOCOL_MAP = {
'rtmp': RtmpFD,
'rtmp_ffmpeg': FFmpegFD,
'm3u8_native': HlsFD,
'm3u8': FFmpegFD,
'mms': RtspFD,
'rtsp': RtspFD,
'f4m': F4mFD,
'http_dash_segments': DashSegmentsFD,
'ism': IsmFD,
'niconico_dmc': NiconicoDmcFD,
'youtube_live_chat_replay': Youtu... | @@ -31,6 +31,7 @@ def _get_real_downloader(info_dict, protocol=None, *args, **kwargs):
PROTOCOL_MAP = {
'rtmp': RtmpFD,
+ 'rtmp_ffmpeg': FFmpegFD,
'm3u8_native': HlsFD,
'm3u8': FFmpegFD,
'mms': RtspFD,
@@ -46,6 +47,7 @@ def _get_real_downloader(info_dict, protocol=None, *args, **kwargs):
def ... | yt_dlp/downloader/__init__.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [whowatch] add support for whowatch.tv (closes #223) | 292 | yt-dlp/yt-dlp | 132,642 | Python | Lesmiscore | |
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag ... | No issues found. | NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag ... | @@ -1184,7 +1184,10 @@
from .slutload import SlutloadIE
from .snotr import SnotrIE
from .sohu import SohuIE
-from .sonyliv import SonyLIVIE
+from .sonyliv import (
+ SonyLIVIE,
+ SonyLIVSeriesIE,
+)
from .soundcloud import (
SoundcloudEmbedIE,
SoundcloudIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [SonyLIV] Add SonyLIVSeriesIE. | 331 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
NFLIE,
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
fro... | No issues found. | NFLIE,
NFLArticleIE,
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
fro... | @@ -1151,6 +1151,7 @@
SharedIE,
VivoIE,
)
+from .shemaroome import ShemarooMeIE
from .showroomlive import ShowRoomLiveIE
from .simplecast import (
SimplecastIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add ShemarooMeIE. | 332 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
convertor.fixup_webp(info, -1)
original_thumbnail = thumbnail_filename = info['thumbnails'][-1]['filepath']
# Convert unsupported thumbnail formats to PNG (see #25687, #25717)
# Original behavior was to convert to JPG, but since JPG is a lossy
# format, there will be some addit... | No issues found. | convertor.fixup_webp(info, -1)
original_thumbnail = thumbnail_filename = info['thumbnails'][-1]['filepath']
# Convert unsupported thumbnail formats to PNG (see #25687, #25717)
# Original behavior was to convert to JPG, but since JPG is a lossy
# format, there will be some addit... | @@ -77,11 +77,14 @@ def run(self, info):
original_thumbnail = thumbnail_filename = info['thumbnails'][-1]['filepath']
- # Convert unsupported thumbnail formats to JPEG (see #25687, #25717)
+ # Convert unsupported thumbnail formats to PNG (see #25687, #25717)
+ # Original behavior was t... | yt_dlp/postprocessor/embedthumbnail.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add support for PNG thumbnail conversion and default to it if necessary | 333 | yt-dlp/yt-dlp | 132,642 | Python | louie-github | |
)
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
f... | No issues found. | )
from .nhk import (
NhkVodIE,
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
f... | @@ -1119,6 +1119,7 @@
SafariApiIE,
SafariCourseIE,
)
+from .saitosan import SaitosanIE
from .samplefocus import SampleFocusIE
from .sapo import SapoIE
from .savefrom import SaveFromIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Saitosan] Add new extractor | 350 | yt-dlp/yt-dlp | 132,642 | Python | liamengland1 | |
if not player_url:
continue
signature = self._decrypt_signature(sc['s'][0], video_id, player_url)
sp = try_get(sc, lambda x: x['sp'][0]) or 'signature'
fmt_url += '&' + sp + '=' + signature
if itag:
itags.ap... | No issues found. | if not player_url:
continue
signature = self._decrypt_signature(sc['s'][0], video_id, player_url)
sp = try_get(sc, lambda x: x['sp'][0]) or 'signature'
fmt_url += '&' + sp + '=' + signature
if itag:
itags.ap... | @@ -2339,18 +2339,17 @@ def process_language(container, base_url, lang_code, sub_name, query):
initial_data = self._call_api(
'next', {'videoId': video_id}, video_id, fatal=False, api_key=self._extract_api_key(ytcfg))
- if not is_live:
- try:
- # This wil... | yt_dlp/extractor/youtube.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [youtube] Real time live chat | 422 | yt-dlp/yt-dlp | 132,642 | Python | siikamiika | |
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impor... | No issues found. | from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impor... | @@ -1063,6 +1063,10 @@
RCSEmbedsIE,
RCSVariousIE,
)
+from .rcti import (
+ RCTIPlusIE,
+ RCTIPlusSeriesIE,
+)
from .rds import RDSIE
from .redbulltv import (
RedBullTVIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [RCTIPlus] Add extractor | 443 | yt-dlp/yt-dlp | 132,642 | Python | MinePlayersPE | |
# everything inside brackets will be handled by _parse_filter
for type, string, start, end, line in tokens:
yield type, string, start, end, line
if type == tokenize.OP and string == ']':
break
... | No issues found. | # everything inside brackets will be handled by _parse_filter
for type, string, start, end, line in tokens:
yield type, string, start, end, line
if type == tokenize.OP and string == ']':
break
... | @@ -392,11 +392,9 @@ class YoutubeDL(object):
if True, otherwise use ffmpeg/avconv if False, otherwise
use downloader suggested by extractor if None.
compat_opts: Compatibility options. See "Differences in default behavior".
- Note that on... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Funimation] rewrite | 444 | yt-dlp/yt-dlp | 132,642 | Python | pukkandan | |
secure_path_data['media_src'] + video_url,
content_id, ap_data)
elif not re.match('https?://', video_url):
base_path_data = path_data.get(ext, path_data.get('default', {}))
media_src = base_path_data.get('media_src')
if ... | No issues found. | secure_path_data['media_src'] + video_url,
content_id, ap_data)
elif not re.match('https?://', video_url):
base_path_data = path_data.get(ext, path_data.get('default', {}))
media_src = base_path_data.get('media_src')
if ... | @@ -221,6 +221,7 @@ def _extract_cvp_info(self, data_src, video_id, path_data={}, ap_data={}, fatal=
}
def _extract_ngtv_info(self, media_id, tokenizer_query, ap_data=None):
+ is_live = ap_data.get('is_live')
streams_data = self._download_json(
'http://medium.ngtv.io/media/%... | yt_dlp/extractor/turner.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Implemented TNT live streams | 448 | yt-dlp/yt-dlp | 132,642 | Python | liamengland1 | |
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import Nint... | No issues found. | )
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import Nint... | @@ -398,7 +398,11 @@
FacebookIE,
FacebookPluginsVideoIE,
)
-from .fancode import FancodeVodIE
+from .fancode import (
+ FancodeVodIE,
+ FancodeLiveIE
+)
+
from .faz import FazIE
from .fc2 import (
FC2IE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [fancode] support fancodeLive and fixes | 471 | yt-dlp/yt-dlp | 132,642 | Python | zenerdi0de | |
self.assertEqual(merge_dicts({'a': ''}, {'a': 'abc'}), {'a': 'abc'})
self.assertEqual(merge_dicts({'a': None}, {'a': ''}, {'a': 'abc'}), {'a': 'abc'})
def test_encode_compat_str(self):
self.assertEqual(encode_compat_str(b'\xd1\x82\xd0\xb5\xd1\x81\xd1\x82', 'utf-8'), 'тест')
self.ass... | No issues found. | self.assertEqual(merge_dicts({'a': ''}, {'a': 'abc'}), {'a': 'abc'})
self.assertEqual(merge_dicts({'a': None}, {'a': ''}, {'a': 'abc'}), {'a': 'abc'})
def test_encode_compat_str(self):
self.assertEqual(encode_compat_str(b'\xd1\x82\xd0\xb5\xd1\x81\xd1\x82', 'utf-8'), 'тест')
self.ass... | @@ -1054,6 +1054,9 @@ def test_js_to_json_edgecases(self):
on = js_to_json('{ "040": "040" }')
self.assertEqual(json.loads(on), {'040': '040'})
+ on = js_to_json('[1,//{},\n2]')
+ self.assertEqual(json.loads(on), [1, 2])
+
def test_js_to_json_malformed(self):
self.assertE... | test/test_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | RTP: fix extraction | 497 | yt-dlp/yt-dlp | 132,642 | Python | fstirlitz | |
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import Ninten... | No issues found. | from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import Ninten... | @@ -964,7 +964,10 @@
from .pandoratv import PandoraTVIE
from .parliamentliveuk import ParliamentLiveUKIE
from .parlview import ParlviewIE
-from .patreon import PatreonIE
+from .patreon import (
+ PatreonIE,
+ PatreonUserIE
+)
from .pbs import PBSIE
from .pearvideo import PearVideoIE
from .peertube import Pe... | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Patreon] Add PatreonUserIE | 573 | yt-dlp/yt-dlp | 132,642 | Python | zenerdi0de | |
f['url'], video_id,
item='%s video format' % f.get('format_id') if f.get('format_id') else 'video'),
formats)
@staticmethod
def _remove_duplicate_formats(formats):
format_urls = set()
unique_formats = []
for f in formats:
... | No issues found. | f['url'], video_id,
item='%s video format' % f.get('format_id') if f.get('format_id') else 'video'),
formats)
@staticmethod
def _remove_duplicate_formats(formats):
format_urls = set()
unique_formats = []
for f in formats:
... | @@ -1052,6 +1052,8 @@ def raise_geo_restricted(
def raise_no_formats(self, msg, expected=False, video_id=None):
if expected and self.get_param('ignore_no_formats_error'):
self.report_warning(msg, video_id)
+ elif isinstance(msg, ExtractorError):
+ raise msg
else:
... | yt_dlp/extractor/common.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add fallback to CBS extractor | 579 | yt-dlp/yt-dlp | 132,642 | Python | liamengland1 | |
discontinuity_count = 0
frag_index = 0
ad_frag_next = False
for line in s.splitlines():
line = line.strip()
if line:
if not line.startswith('#'):
if format_index and discontinuity_count != format_index:
c... | No issues found. | discontinuity_count = 0
frag_index = 0
ad_frag_next = False
for line in s.splitlines():
line = line.strip()
if line:
if not line.startswith('#'):
if format_index and discontinuity_count != format_index:
c... | @@ -260,29 +260,35 @@ def pack_fragment(frag_content, frag_index):
block.end += adjust
dedup_window = extra_state.setdefault('webvtt_dedup_window', [])
- cue = block.as_json
- # skip the cue if an identical one appears
-... | yt_dlp/downloader/hls.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Merge daisy-chained duplicate cues in segmented WebVTT streams | 638 | yt-dlp/yt-dlp | 132,642 | Python | fstirlitz | |
self._sort_formats(formats)
extra_info.update({
'id': content_id,
'formats': formats,
'subtitles': subtitles,
})
info.update({k: v for k, v in extra_info.items() if v is not None})
return info
def _extract_video_info(self, *args, **kwargs... | No issues found. | self._sort_formats(formats)
extra_info.update({
'id': content_id,
'formats': formats,
'subtitles': subtitles,
})
info.update({k: v for k, v in extra_info.items() if v is not None})
return info
def _extract_video_info(self, *args, **kwargs... | @@ -1,6 +1,5 @@
from __future__ import unicode_literals
-from .common import InfoExtractor
from .theplatform import ThePlatformFeedIE
from ..utils import (
ExtractorError,
@@ -9,6 +8,7 @@
xpath_element,
xpath_text,
update_url_query,
+ url_or_none,
)
@@ -26,16 +26,62 @@ def _parse_smil_s... | yt_dlp/extractor/cbs.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [cbs] Fix extraction for some ParamountPlus titles, separate [paramountplus] extractor | 652 | yt-dlp/yt-dlp | 132,642 | Python | shirt-dev | |
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njp... | No issues found. | NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njp... | @@ -1596,6 +1596,10 @@
from .vodpl import VODPlIE
from .vodplatform import VODPlatformIE
from .voicerepublic import VoiceRepublicIE
+from .voicy import (
+ VoicyIE,
+ VoicyChannelIE,
+)
from .voot import (
VootIE,
VootSeriesIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [voicy] add support for voicy.jp | 667 | yt-dlp/yt-dlp | 132,642 | Python | Lesmiscore | |
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
fro... | No issues found. | NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
fro... | @@ -866,7 +866,15 @@
NickNightIE,
NickRuIE,
)
-from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
+
+from .niconico import (
+ NiconicoIE,
+ NiconicoPlaylistIE,
+ NiconicoUserIE,
+ NicovideoSearchDateIE,
+ NicovideoSearchIE,
+ NicovideoSearchURLIE,
+)
from .ninecninemedia... | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Niconico] Added Nico Search Extractor | 672 | yt-dlp/yt-dlp | 132,642 | Python | animelover1984 | |
NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from ... | No issues found. | NhkVodProgramIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import NiconicoIE, NiconicoPlaylistIE, NiconicoUserIE
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from ... | @@ -115,6 +115,7 @@
BandcampWeeklyIE,
BandcampMusicIE,
)
+from .bannedvideo import BannedVideoIE
from .bbc import (
BBCCoUkIE,
BBCCoUkArticleIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [BannedVideo] Add Extractor | 717 | yt-dlp/yt-dlp | 132,642 | Python | CHJ85 | |
return default_ext
def subtitles_filename(filename, sub_lang, sub_format, expected_real_ext=None):
return replace_extension(filename, sub_lang + '.' + sub_format, expected_real_ext)
def datetime_from_str(date_str, precision='auto', format='%Y%m%d'):
"""
Return a datetime object from a string in ... | No issues found. | return default_ext
def subtitles_filename(filename, sub_lang, sub_format, expected_real_ext=None):
return replace_extension(filename, sub_lang + '.' + sub_format, expected_real_ext)
def datetime_from_str(date_str, precision='auto', format='%Y%m%d'):
"""
Return a datetime object from a string in ... | @@ -1743,6 +1743,8 @@ def random_user_agent():
'%Y/%m/%d',
'%Y/%m/%d %H:%M',
'%Y/%m/%d %H:%M:%S',
+ '%Y%m%d%H%M',
+ '%Y%m%d%H%M%S',
'%Y-%m-%d %H:%M',
'%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f', | yt_dlp/utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [radiko] add support for radiko.jp | 731 | yt-dlp/yt-dlp | 132,642 | Python | Lesmiscore | |
match = re.match(
r'(?P<start>.+)(?P<sign>[+-])(?P<time>\d+)(?P<unit>microsecond|second|minute|hour|day|week|month|year)(s)?',
date_str)
if match is not None:
start_time = datetime_from_str(match.group('start'), precision, format)
time = int(match.group('time')) * (-1 if match.gr... | No issues found. | match = re.match(
r'(?P<start>.+)(?P<sign>[+-])(?P<time>\d+)(?P<unit>microsecond|second|minute|hour|day|week|month|year)(s)?',
date_str)
if match is not None:
start_time = datetime_from_str(match.group('start'), precision, format)
time = int(match.group('time')) * (-1 if match.gr... | @@ -2006,6 +2006,23 @@ def handle_starttag(self, tag, attrs):
self.attrs = dict(attrs)
+class HTMLListAttrsParser(compat_HTMLParser):
+ """HTML parser to gather the attributes for the elements of a list"""
+
+ def __init__(self):
+ compat_HTMLParser.__init__(self)
+ self.items = []
+ ... | yt_dlp/utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Raiplayradio | 780 | yt-dlp/yt-dlp | 132,642 | Python | frafra | |
# coding: utf-8
from __future__ import unicode_literals
from .mtv import MTVServicesInfoExtractor
# TODO Remove - Reason: Outdated Site
class VH1IE(MTVServicesInfoExtractor):
IE_NAME = 'vh1.com'
_FEED_URL = 'http://www.vh1.com/feeds/mrss/'
_TESTS = [{
'url': 'https://www.vh1.com/episodes/0aqivv/... | No issues found. | # coding: utf-8
from __future__ import unicode_literals
from .mtv import MTVServicesInfoExtractor
# TODO Remove - Reason: Outdated Site
class VH1IE(MTVServicesInfoExtractor):
IE_NAME = 'vh1.com'
_FEED_URL = 'http://www.vh1.com/feeds/mrss/'
_TESTS = [{
'url': 'https://www.vh1.com/episodes/0aqivv/... | @@ -10,22 +10,22 @@ class VH1IE(MTVServicesInfoExtractor):
IE_NAME = 'vh1.com'
_FEED_URL = 'http://www.vh1.com/feeds/mrss/'
_TESTS = [{
- 'url': 'http://www.vh1.com/episodes/0umwpq/hip-hop-squares-kent-jones-vs-nick-young-season-1-ep-120',
+ 'url': 'https://www.vh1.com/episodes/0aqivv/nick-... | yt_dlp/extractor/vh1.py | 0 | Python | 1 | none | 16 | 37 | 37 | true | VH1/TVLand Fix | 784 | yt-dlp/yt-dlp | 132,642 | Python | Sipherdrakon | |
}
processed_fragment.extend(
json.dumps(pseudo_action, ensure_ascii=False).encode('utf-8') + b'\n')
continuation_data_getters = [
lambda x: x['continuations'][0]['invalidationContinuationData'],
lambda x: x['continuations'][... | No issues found. | }
processed_fragment.extend(
json.dumps(pseudo_action, ensure_ascii=False).encode('utf-8') + b'\n')
continuation_data_getters = [
lambda x: x['continuations'][0]['invalidationContinuationData'],
lambda x: x['continuations'][... | @@ -183,7 +183,7 @@ def download_and_parse_fragment(url, frag_index, request_data=None, headers=None
request_data['currentPlayerState'] = {'playerOffsetMs': str(max(offset - 5000, 0))}
if click_tracking_params:
request_data['context']['clickTracking'] = {'clickTrac... | yt_dlp/downloader/youtube_live_chat.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [youtube] misc auth cleanup | 786 | yt-dlp/yt-dlp | 132,642 | Python | coletdjnz | |
else None)
if _skip_msg:
self.to_screen('Not %s media file "%s"; %s' % (self._action, path, _skip_msg % source_ext))
return [], information
prefix, sep, oldext = path.rpartition('.')
outpath = prefix + sep + target_ext
self.to_screen('%s video from %s... | No issues found. | else None)
if _skip_msg:
self.to_screen('Not %s media file "%s"; %s' % (self._action, path, _skip_msg % source_ext))
return [], information
prefix, sep, oldext = path.rpartition('.')
outpath = prefix + sep + target_ext
self.to_screen('%s video from %s... | @@ -520,8 +520,7 @@ def run(self, information):
temp_filename = prepend_extension(filename, 'temp')
self.to_screen('Embedding subtitles in "%s"' % filename)
self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
- os.remove(encodeFilename(filename))
- os.rename(encodeF... | yt_dlp/postprocessor/ffmpeg.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Use `os.replace` where applicable to preserve atomicity on some filesystems | 793 | yt-dlp/yt-dlp | 132,642 | Python | paulwrubel | |
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMedi... | No issues found. | from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMedi... | @@ -1440,7 +1440,10 @@
TV2DKIE,
TV2DKBornholmPlayIE,
)
-from .tv2hu import TV2HuIE
+from .tv2hu import (
+ TV2HuIE,
+ TV2HuSeriesIE,
+)
from .tv4 import TV4IE
from .tv5mondeplus import TV5MondePlusIE
from .tv5unis import ( | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add TV2HuSeriesIE and fix TV2HuIE. | 804 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
f... | No issues found. | NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
f... | @@ -1410,6 +1410,10 @@
ToggleIE,
MeWatchIE,
)
+from .tokentube import (
+ TokentubeIE,
+ TokentubeChannelIE
+)
from .tonline import TOnlineIE
from .toongoggles import ToonGogglesIE
from .toutv import TouTvIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Tokentube] Add extractor | 842 | yt-dlp/yt-dlp | 132,642 | Python | u-spec-png | |
NhkForSchoolProgramListIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NiconicoSeriesIE,
NiconicoHistoryIE,
NicovideoSearchDateIE,
NicovideoSe... | No issues found. | NhkForSchoolProgramListIE,
)
from .nhl import NHLIE
from .nick import (
NickIE,
NickBrIE,
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NiconicoSeriesIE,
NiconicoHistoryIE,
NicovideoSearchDateIE,
NicovideoSe... | @@ -1261,6 +1261,7 @@
from .playplustv import PlayPlusTVIE
from .plays import PlaysTVIE
from .playstuff import PlayStuffIE
+from .playsuisse import PlaySuisseIE
from .playtvak import PlaytvakIE
from .playvid import PlayvidIE
from .playwire import PlaywireIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [playsuisse] Add new extractor | 845 | yt-dlp/yt-dlp | 132,642 | Python | sbor23 | |
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impo... | No issues found. |
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impo... | @@ -1112,6 +1112,11 @@
from .radiojavan import RadioJavanIE
from .radiobremen import RadioBremenIE
from .radiofrance import RadioFranceIE
+from .radlive import (
+ RadLiveIE,
+ RadLiveChannelIE,
+ RadLiveSeasonIE,
+)
from .rai import (
RaiPlayIE,
RaiPlayLiveIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [radlive] Add new extractor | 870 | yt-dlp/yt-dlp | 132,642 | Python | ghost | |
or self.params.get('allow_multiple_audio_streams', False)
or 'format-spec' in self.params.get('compat_opts', []))
return (
'best/bestvideo+bestaudio' if prefer_best
else 'bestvideo*+bestaudio/best' if not compat
else 'bestvideo+bestaudio/best')
d... | No issues found. | or self.params.get('allow_multiple_audio_streams', False)
or 'format-spec' in self.params.get('compat_opts', []))
return (
'best/bestvideo+bestaudio' if prefer_best
else 'bestvideo*+bestaudio/best' if not compat
else 'bestvideo+bestaudio/best')
d... | @@ -5,7 +5,6 @@
import collections
import contextlib
-import copy
import datetime
import errno
import fileinput
@@ -144,6 +143,7 @@
from .postprocessor import (
get_postprocessor,
EmbedThumbnailPP,
+ FFmpegFixupDuplicateMoovPP,
FFmpegFixupDurationPP,
FFmpegFixupM3u8PP,
FFmpegFixupM4a... | yt_dlp/YoutubeDL.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [youtube] download live from the start, to the end | 888 | yt-dlp/yt-dlp | 132,642 | Python | Lesmiscore | |
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter im... | No issues found. | )
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter im... | @@ -959,6 +959,7 @@
from .odatv import OdaTVIE
from .odnoklassniki import OdnoklassnikiIE
from .oktoberfesttv import OktoberfestTVIE
+from .olympics import OlympicsReplayIE
from .ondemandkorea import OnDemandKoreaIE
from .onet import (
OnetIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add OlympicsReplayIE. | 905 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo im... | No issues found. | NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo im... | @@ -147,6 +147,8 @@
BilibiliAudioAlbumIE,
BiliBiliPlayerIE,
BilibiliChannelIE,
+ BiliIntlIE,
+ BiliIntlSeriesIE,
)
from .biobiochiletv import BioBioChileTVIE
from .bitchute import ( | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add BiliIntlIE and BiliIntlSeriesIE. | 907 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
},
'add_ie': [SenateISVPIE.ie_key()],
},
{
# Limelight embeds (1 channel embed + 4 media embeds)
'url': 'http://www.sedona.com/FacilitatorTraining2017',
'info_dict': {
'id': 'FacilitatorTraining2017',
'title': 'F... | No issues found. | },
'add_ie': [SenateISVPIE.ie_key()],
},
{
# Limelight embeds (1 channel embed + 4 media embeds)
'url': 'http://www.sedona.com/FacilitatorTraining2017',
'info_dict': {
'id': 'FacilitatorTraining2017',
'title': 'F... | @@ -1215,14 +1215,13 @@ class GenericIE(InfoExtractor):
},
{
# JWPlatform iframe
- 'url': 'https://www.mediaite.com/tv/dem-senator-claims-gary-cohn-faked-a-bad-connection-during-trump-call-to-get-him-off-the-phone/',
- 'md5': 'ca00a040364b5b439230e7ebfd02c4e9',
+ ... | yt_dlp/extractor/generic.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add MediaiteIE. | 973 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impor... | No issues found. | from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impor... | @@ -238,6 +238,7 @@
CeskaTelevizeIE,
CeskaTelevizePoradyIE,
)
+from .cgtn import CGTNIE
from .channel9 import Channel9IE
from .charlierose import CharlieRoseIE
from .chaturbate import ChaturbateIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [CGTN] Add new extractor | 981 | yt-dlp/yt-dlp | 132,642 | Python | chao813 | |
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njpwwor... | No issues found. | NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njpwwor... | @@ -1346,6 +1346,7 @@
StoryFireSeriesIE,
)
from .streamable import StreamableIE
+from .streamanity import StreamanityIE
from .streamcloud import StreamcloudIE
from .streamcz import StreamCZIE
from .streetvoice import StreetVoiceIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Streamanity extractor | 984 | yt-dlp/yt-dlp | 132,642 | Python | alerikaisattera | |
precision = 'microsecond'
today = datetime_round(datetime.datetime.now(), precision)
if date_str in ('now', 'today'):
return today
if date_str == 'yesterday':
return today - datetime.timedelta(days=1)
match = re.match(
r'(?P<start>.+)(?P<sign>[+-])(?P<time>\d+)(?P<unit>mi... | No issues found. | precision = 'microsecond'
today = datetime_round(datetime.datetime.now(), precision)
if date_str in ('now', 'today'):
return today
if date_str == 'yesterday':
return today - datetime.timedelta(days=1)
match = re.match(
r'(?P<start>.+)(?P<sign>[+-])(?P<time>\d+)(?P<unit>mi... | @@ -16,6 +16,8 @@
import errno
import functools
import gzip
+import hashlib
+import hmac
import imp
import io
import itertools
@@ -3290,6 +3292,14 @@ def platform_name():
return res
+def get_windows_version():
+ ''' Get Windows version. None if it's not running on Windows '''
+ if compat_os_name ==... | yt_dlp/utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | ATV.at: fix extractor using the new jwt JSON Web Token | 1,012 | yt-dlp/yt-dlp | 132,642 | Python | NeroBurner | |
data = bytes_to_intlist(compat_b64decode(data))
password = bytes_to_intlist(password.encode('utf-8'))
key = password[:key_size_bytes] + [0] * (key_size_bytes - len(password))
key = aes_encrypt(key[:BLOCK_SIZE_BYTES], key_expansion(key)) * (key_size_bytes // BLOCK_SIZE_BYTES)
nonce = data[:NONCE_LE... | No issues found. | data = bytes_to_intlist(compat_b64decode(data))
password = bytes_to_intlist(password.encode('utf-8'))
key = password[:key_size_bytes] + [0] * (key_size_bytes - len(password))
key = aes_encrypt(key[:BLOCK_SIZE_BYTES], key_expansion(key)) * (key_size_bytes // BLOCK_SIZE_BYTES)
nonce = data[:NONCE_LE... | @@ -11,39 +11,59 @@ def aes_cbc_decrypt_bytes(data, key, iv):
""" Decrypt bytes with AES-CBC using pycryptodome """
return compat_pycrypto_AES.new(key, compat_pycrypto_AES.MODE_CBC, iv).decrypt(data)
+ def aes_gcm_decrypt_and_verify_bytes(data, key, tag, nonce):
+ """ Decrypt bytes with AE... | yt_dlp/aes.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Add aes-128-gcm decrypt and verify | 1,020 | yt-dlp/yt-dlp | 132,642 | Python | sulyi | |
format: string date format used to return datetime object from
precision: round the time portion of a datetime object.
auto|microsecond|second|minute|hour|day.
auto: round to the unit provided in date_str (if applicable).
"""
auto_precision = False
if precision == 'au... | No issues found. | format: string date format used to return datetime object from
precision: round the time portion of a datetime object.
auto|microsecond|second|minute|hour|day.
auto: round to the unit provided in date_str (if applicable).
"""
auto_precision = False
if precision == 'au... | @@ -6373,3 +6373,11 @@ def traverse_dict(dictn, keys, casesense=True):
def variadic(x, allowed_types=(str, bytes)):
return x if isinstance(x, collections.abc.Iterable) and not isinstance(x, allowed_types) else (x,)
+
+
+def get_windows_version():
+ ''' Get Windows version. None if it's not running on Windows... | yt_dlp/utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [YoutubeDL] simultaneous download for segments | 1,036 | yt-dlp/yt-dlp | 132,642 | Python | Lesmiscore | |
ad_frag_next = False
for line in s.splitlines():
line = line.strip()
if line:
if not line.startswith('#'):
if format_index and discontinuity_count != format_index:
continue
if ad_frag_next:
... | No issues found. | ad_frag_next = False
for line in s.splitlines():
line = line.strip()
if line:
if not line.startswith('#'):
if format_index and discontinuity_count != format_index:
continue
if ad_frag_next:
... | @@ -9,6 +9,7 @@
from .external import FFmpegFD
from ..compat import (
+ compat_pycrypto_AES,
compat_urlparse,
)
from ..utils import (
@@ -68,14 +69,20 @@ def real_download(self, filename, info_dict):
man_url = urlh.geturl()
s = urlh.read().decode('utf-8', 'ignore')
- if not self... | yt_dlp/downloader/hls.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Fix HLS decryption issues | 1,117 | yt-dlp/yt-dlp | 132,642 | Python | shirt-dev | |
stripped = strip_jsonp('window.cb && window.cb({"status": "success"});')
d = json.loads(stripped)
self.assertEqual(d, {'status': 'success'})
stripped = strip_jsonp('window.cb && cb({"status": "success"});')
d = json.loads(stripped)
self.assertEqual(d, {'status': 'success... | No issues found. | stripped = strip_jsonp('window.cb && window.cb({"status": "success"});')
d = json.loads(stripped)
self.assertEqual(d, {'status': 'success'})
stripped = strip_jsonp('window.cb && cb({"status": "success"});')
d = json.loads(stripped)
self.assertEqual(d, {'status': 'success... | @@ -1141,12 +1141,15 @@ def test_parse_count(self):
def test_parse_resolution(self):
self.assertEqual(parse_resolution(None), {})
self.assertEqual(parse_resolution(''), {})
- self.assertEqual(parse_resolution('1920x1080'), {'width': 1920, 'height': 1080})
- self.assertEqual(parse_re... | test/test_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [microsoftstream] Add new extractor | 1,201 | yt-dlp/yt-dlp | 132,642 | Python | damianoamatruda | |
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
f... | No issues found. | NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
f... | @@ -938,6 +938,7 @@
NovaEmbedIE,
NovaIE,
)
+from .novaplay import NovaPlayIE
from .nowness import (
NownessIE,
NownessPlaylistIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [NovaPlay] Add extractor | 1,209 | yt-dlp/yt-dlp | 132,642 | Python | Bojidarist | |
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impo... | No issues found. |
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impo... | @@ -420,6 +420,7 @@
)
from .esri import EsriVideoIE
from .europa import EuropaIE
+from .euscreen import EUScreenIE
from .expotv import ExpoTVIE
from .expressen import ExpressenIE
from .extremetube import ExtremeTubeIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [EUScreen] Add Extractor | 1,219 | yt-dlp/yt-dlp | 132,642 | Python | Ashish0804 | |
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njpwworld import NJPWWo... | No issues found. | NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njpwworld import NJPWWo... | @@ -1092,9 +1092,14 @@
PokemonIE,
PokemonWatchIE,
)
+from .polsatgo import PolsatGoIE
from .polskieradio import (
PolskieRadioIE,
PolskieRadioCategoryIE,
+ PolskieRadioPlayerIE,
+ PolskieRadioPodcastIE,
+ PolskieRadioPodcastListIE,
+ PolskieRadioRadioKierowcowIE,
)
from .popcorntimes... | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | haruhi-dl backporting, batch 1 | 1,386 | yt-dlp/yt-dlp | 132,642 | Python | selfisekai | |
bc_attr = extract_attributes(bc)
bc_url = self.BRIGHTCOVE_URL_TEMPLATE % (
bc_attr.get('data-bcaccountid', '3162030207001'),
bc_attr.get('data-noprebcplayerid', 'SyGGpuJy3g'),
bc_attr.get('data-newbcplayerid', 'default'),
... | No issues found. | bc_attr = extract_attributes(bc)
bc_url = self.BRIGHTCOVE_URL_TEMPLATE % (
bc_attr.get('data-bcaccountid', '3162030207001'),
bc_attr.get('data-noprebcplayerid', 'SyGGpuJy3g'),
bc_attr.get('data-newbcplayerid', 'default'),
... | @@ -18,7 +18,7 @@
str_to_int,
unescapeHTML,
)
-from .senateisvp import SenateISVPIE
+from .senategov import SenateISVPIE
from .ustream import UstreamIE
| yt_dlp/extractor/cspan.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | Senate.gov website downloading fixes | 1,435 | yt-dlp/yt-dlp | 132,642 | Python | Grabien | |
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impor... | No issues found. | from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter impor... | @@ -1289,6 +1289,7 @@
from .skynewsau import SkyNewsAUIE
from .sky import (
SkyNewsIE,
+ SkyNewsStoryIE,
SkySportsIE,
SkySportsNewsIE,
) | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [sky] Add extractor for Sky News articles | 1,443 | yt-dlp/yt-dlp | 132,642 | Python | ajj8 | |
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo im... | No issues found. | NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo im... | @@ -744,7 +744,10 @@
from .medaltv import MedalTVIE
from .mediaite import MediaiteIE
from .mediaklikk import MediaKlikkIE
-from .mediaset import MediasetIE
+from .mediaset import (
+ MediasetIE,
+ MediasetShowIE,
+)
from .mediasite import (
MediasiteIE,
MediasiteCatalogIE, | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [mediaset] Added playlist support | 1,463 | yt-dlp/yt-dlp | 132,642 | Python | nixxo | |
'dynamic_range': None,
})
self.assertEqual(parse_codecs('unknownvcodec, unknownacodec'), {
'vcodec': 'unknownvcodec',
'acodec': 'unknownacodec',
})
self.assertEqual(parse_codecs('unknown'), {})
def test_escape_rfc3986(self):
reserved = "!*... | No issues found. | 'dynamic_range': None,
})
self.assertEqual(parse_codecs('unknownvcodec, unknownacodec'), {
'vcodec': 'unknownvcodec',
'acodec': 'unknownacodec',
})
self.assertEqual(parse_codecs('unknown'), {})
def test_escape_rfc3986(self):
reserved = "!*... | @@ -53,6 +53,7 @@
fix_xml_ampersands,
float_or_none,
format_bytes,
+ get_compatible_ext,
get_element_by_attribute,
get_element_by_class,
get_element_html_by_attribute,
@@ -1843,6 +1844,31 @@ def test_determine_file_encoding(self):
self.assertEqual(determine_file_encoding('# cod... | test/test_utils.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [core] merging formats by codecs, determining extension before download | 1,482 | yt-dlp/yt-dlp | 132,642 | Python | selfisekai | |
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njpwworld import NJPWWorldIE
from .nobelprize i... | No issues found. | NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
from .nintendo import NintendoIE
from .nitter import NitterIE
from .njpwworld import NJPWWorldIE
from .nobelprize i... | @@ -1059,6 +1059,7 @@
PeerTubeIE,
PeerTubePlaylistIE,
)
+from .peertv import PeerTVIE
from .peloton import (
PelotonIE,
PelotonLiveIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [peer.tv] Add extractor | 1,499 | yt-dlp/yt-dlp | 132,642 | Python | u-spec-png | |
NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
fro... | No issues found. | NickDeIE,
NickNightIE,
NickRuIE,
)
from .niconico import (
NiconicoIE,
NiconicoPlaylistIE,
NiconicoUserIE,
NicovideoSearchDateIE,
NicovideoSearchIE,
NicovideoSearchURLIE,
)
from .ninecninemedia import NineCNineMediaIE
from .ninegag import NineGagIE
from .ninenow import NineNowIE
fro... | @@ -493,7 +493,10 @@
)
from .funk import FunkIE
from .fusion import FusionIE
-from .gab import GabTVIE
+from .gab import (
+ GabTVIE,
+ GabIE,
+)
from .gaia import GaiaIE
from .gameinformer import GameInformerIE
from .gamespot import GameSpotIE | yt_dlp/extractor/extractors.py | 0 | Python | 1 | none | 16 | 51 | 51 | true | [Gab] Add extractor | 1,505 | yt-dlp/yt-dlp | 132,642 | Python | u-spec-png |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.