diff options
| author | Sergey M․ <dstftw@gmail.com> | 2020-11-17 01:32:48 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2020-11-17 01:32:48 +0700 | 
| commit | 2e7fa18bb96dac31bda754f9f7f0ab21a6513166 (patch) | |
| tree | 3ddfad1db5c748160d30c2984602d96858874138 | |
| parent | fe07e788bf7718d429d6fc7e4bcb0c761ffd2cfc (diff) | |
[xtube] Fix extraction (closes #26996)
| -rw-r--r-- | youtube_dl/extractor/xtube.py | 2 | 
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')  | 
