From: Sergey M․ Date: Mon, 16 Nov 2020 18:32:48 +0000 (+0700) Subject: [xtube] Fix extraction (closes #26996) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2e7fa18bb96dac31bda754f9f7f0ab21a6513166;p=youtube-dl [xtube] Fix extraction (closes #26996) --- diff --git a/youtube_dl/extractor/xtube.py b/youtube_dl/extractor/xtube.py index 01b253dcb..18969058f 100644 --- 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')