aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/xtube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-11-17 01:32:48 +0700
committerSergey M․ <dstftw@gmail.com>2020-11-17 01:32:48 +0700
commit2e7fa18bb96dac31bda754f9f7f0ab21a6513166 (patch)
tree3ddfad1db5c748160d30c2984602d96858874138 /youtube_dl/extractor/xtube.py
parentfe07e788bf7718d429d6fc7e4bcb0c761ffd2cfc (diff)
[xtube] Fix extraction (closes #26996)
Diffstat (limited to 'youtube_dl/extractor/xtube.py')
-rw-r--r--youtube_dl/extractor/xtube.py2
1 files changed, 1 insertions, 1 deletions
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')