From ed348c75782ad76e138b13ef3ab9a1eac8d88d9f Mon Sep 17 00:00:00 2001 From: devbreath Date: Thu, 8 Oct 2020 13:06:50 +0300 Subject: [PATCH] [yandex video][yandex efir] fixed extractor Fixed extractor for Yandex Video and Yandex Efir(single program and program on channel). Latest version of Yandex Video and Yandex Efir not support request for external json. Now json data with video information used as a parameter in methods of Yandex stream player at webpage. Current extractor find call of Yandex stream player, parse parameters and find information about program. --- youtube_dl/extractor/yandexvideo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/yandexvideo.py b/youtube_dl/extractor/yandexvideo.py index 44d844adc..035bb1560 100644 --- a/youtube_dl/extractor/yandexvideo.py +++ b/youtube_dl/extractor/yandexvideo.py @@ -65,7 +65,7 @@ class YandexVideoIE(InfoExtractor): 'only_matching': True, }] - def split_params(self, txt: str) -> []: + def split_params(self, txt): braket = 0 line = '' items = []