mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-17 18:08:13 -04:00
Compare commits
No commits in common. "8e9fe43cd393e69fa49b3d842aa3180c1d105b8f" and "cc09083636ce21e58ff74f45eac2dbda507462b0" have entirely different histories.
8e9fe43cd3
...
cc09083636
@ -2063,7 +2063,6 @@ class InfoExtractor:
|
|||||||
'protocol': entry_protocol,
|
'protocol': entry_protocol,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
'has_drm': has_drm,
|
|
||||||
'vcodec': 'none' if media_type == 'AUDIO' else None,
|
'vcodec': 'none' if media_type == 'AUDIO' else None,
|
||||||
} for idx in _extract_m3u8_playlist_indices(manifest_url))
|
} for idx in _extract_m3u8_playlist_indices(manifest_url))
|
||||||
|
|
||||||
@ -2123,7 +2122,6 @@ class InfoExtractor:
|
|||||||
'protocol': entry_protocol,
|
'protocol': entry_protocol,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
'has_drm': has_drm,
|
|
||||||
}
|
}
|
||||||
resolution = last_stream_inf.get('RESOLUTION')
|
resolution = last_stream_inf.get('RESOLUTION')
|
||||||
if resolution:
|
if resolution:
|
||||||
|
@ -15,7 +15,6 @@ from ..utils import (
|
|||||||
UnsupportedError,
|
UnsupportedError,
|
||||||
determine_ext,
|
determine_ext,
|
||||||
dict_get,
|
dict_get,
|
||||||
extract_basic_auth,
|
|
||||||
format_field,
|
format_field,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
is_html,
|
is_html,
|
||||||
@ -2373,8 +2372,9 @@ class GenericIE(InfoExtractor):
|
|||||||
**smuggled_data.get('http_headers', {})
|
**smuggled_data.get('http_headers', {})
|
||||||
})
|
})
|
||||||
new_url = full_response.geturl()
|
new_url = full_response.geturl()
|
||||||
url = urllib.parse.urlparse(url)._replace(scheme=urllib.parse.urlparse(new_url).scheme).geturl()
|
if new_url == urllib.parse.urlparse(url)._replace(scheme='https').geturl():
|
||||||
if new_url != extract_basic_auth(url)[0]:
|
url = new_url
|
||||||
|
elif url != new_url:
|
||||||
self.report_following_redirect(new_url)
|
self.report_following_redirect(new_url)
|
||||||
if force_videoid:
|
if force_videoid:
|
||||||
new_url = smuggle_url(new_url, {'force_videoid': force_videoid})
|
new_url = smuggle_url(new_url, {'force_videoid': force_videoid})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user