mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
[viki] Don't attempt to modify URLs with signature (#3222)
Closes #1379 Authored by: nyuszika7h
This commit is contained in:
parent
f5f15c9993
commit
bdd60588b0
@ -261,7 +261,7 @@ def _real_extract(self, url):
|
|||||||
mpd_content = self._download_webpage(mpd_url, video_id, note='Downloading initial MPD manifest')
|
mpd_content = self._download_webpage(mpd_url, video_id, note='Downloading initial MPD manifest')
|
||||||
mpd_url = self._search_regex(
|
mpd_url = self._search_regex(
|
||||||
r'(?mi)<BaseURL>(http.+.mpd)', mpd_content, 'new manifest', default=mpd_url)
|
r'(?mi)<BaseURL>(http.+.mpd)', mpd_content, 'new manifest', default=mpd_url)
|
||||||
if 'mpdhd_high' not in mpd_url:
|
if 'mpdhd_high' not in mpd_url and 'sig=' not in mpd_url:
|
||||||
# Modify the URL to get 1080p
|
# Modify the URL to get 1080p
|
||||||
mpd_url = mpd_url.replace('mpdhd', 'mpdhd_high')
|
mpd_url = mpd_url.replace('mpdhd', 'mpdhd_high')
|
||||||
formats = self._extract_mpd_formats(mpd_url, video_id)
|
formats = self._extract_mpd_formats(mpd_url, video_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user