diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:29:58 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:32:36 +0530 |
commit | 46d09f87072e112c363f4a573966d8e48a788562 (patch) | |
tree | c945b8e19bf82a19137008e02d8a1aee6f41ca8b /yt_dlp/extractor/yandexvideo.py | |
parent | db4678e448d6e7da9743f4028c94b540fcafc528 (diff) | |
download | hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.tar.lz hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.tar.xz hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.zip |
[cleanup] Lint and misc cleanup
Diffstat (limited to 'yt_dlp/extractor/yandexvideo.py')
-rw-r--r-- | yt_dlp/extractor/yandexvideo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/yandexvideo.py b/yt_dlp/extractor/yandexvideo.py index 7932edf33..5e6cf6edd 100644 --- a/yt_dlp/extractor/yandexvideo.py +++ b/yt_dlp/extractor/yandexvideo.py @@ -255,7 +255,7 @@ class ZenYandexIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - redirect = self._search_json(r'var it\s*=\s*', webpage, 'redirect', id, default={}).get('retpath') + redirect = self._search_json(r'var it\s*=', webpage, 'redirect', id, default={}).get('retpath') if redirect: video_id = self._match_id(redirect) webpage = self._download_webpage(redirect, video_id, note='Redirecting') @@ -373,7 +373,7 @@ class ZenYandexChannelIE(InfoExtractor): item_id = self._match_id(url) webpage = self._download_webpage(url, item_id) redirect = self._search_json( - r'var it\s*=\s*', webpage, 'redirect', item_id, default={}).get('retpath') + r'var it\s*=', webpage, 'redirect', item_id, default={}).get('retpath') if redirect: item_id = self._match_id(redirect) webpage = self._download_webpage(redirect, item_id, note='Redirecting') |