[xtube] Fix extraction (closes #26996)
authorSergey M․ <dstftw@gmail.com>
Mon, 16 Nov 2020 18:32:48 +0000 (01:32 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 16 Nov 2020 18:32:48 +0000 (01:32 +0700)
youtube_dl/extractor/xtube.py

index 01b253dcb1e8c92232a06c0b2b4153a545dabcc1..18969058f316aea2f4b628fe91ccb60ca416b91e 100644 (file)
@@ -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')