From bdd60588b05a1cabd853858125522b920065cad8 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 28 Mar 2022 05:23:44 +0200 Subject: [PATCH] [viki] Don't attempt to modify URLs with signature (#3222) Closes #1379 Authored by: nyuszika7h --- yt_dlp/extractor/viki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/viki.py b/yt_dlp/extractor/viki.py index 8234ba7dfe..8a930798d0 100644 --- a/yt_dlp/extractor/viki.py +++ b/yt_dlp/extractor/viki.py @@ -261,7 +261,7 @@ def _real_extract(self, url): mpd_content = self._download_webpage(mpd_url, video_id, note='Downloading initial MPD manifest') mpd_url = self._search_regex( r'(?mi)(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 mpd_url = mpd_url.replace('mpdhd', 'mpdhd_high') formats = self._extract_mpd_formats(mpd_url, video_id)