logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 2e7fa18bb96dac31bda754f9f7f0ab21a6513166
parent fe07e788bf7718d429d6fc7e4bcb0c761ffd2cfc
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 17 Nov 2020 01:32:48 +0700

[xtube] Fix extraction (closes #26996)

Diffstat:

Myoutube_dl/extractor/xtube.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/xtube.py b/youtube_dl/extractor/xtube.py @@ -90,7 +90,7 @@ class XTubeIE(InfoExtractor): title, thumbnail, duration = [None] * 3 config = self._parse_json(self._search_regex( - r'playerConf\s*=\s*({.+?})\s*,\s*\n', webpage, 'config', + r'playerConf\s*=\s*({.+?})\s*,\s*(?:\n|loaderConf)', webpage, 'config', default='{}'), video_id, transform_source=js_to_json, fatal=False) if config: config = config.get('mainRoll')