mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
parent
94ed638a43
commit
ad8902f616
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ def _real_extract(self, url):
|
||||||
r'src\s*:\s*(["\'])(?P<url>(?:https?://)?(?:(?!\1).)+)\1',
|
r'src\s*:\s*(["\'])(?P<url>(?:https?://)?(?:(?!\1).)+)\1',
|
||||||
webpage) or []]
|
webpage) or []]
|
||||||
for source in sources:
|
for source in sources:
|
||||||
|
source = urljoin(url, source)
|
||||||
height = int(self._search_regex(r'(\d+).mp4', source, 'height', default=360))
|
height = int(self._search_regex(r'(\d+).mp4', source, 'height', default=360))
|
||||||
if self._request_webpage(HEADRequest(source), video_id, f'Checking {height}p url', errnote=False):
|
if self._request_webpage(HEADRequest(source), video_id, f'Checking {height}p url', errnote=False):
|
||||||
formats.append({
|
formats.append({
|
||||||
|
|
Loading…
Reference in a new issue