projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe07e78
)
[xtube] Fix extraction (closes #26996)
author
Sergey M․
<dstftw@gmail.com>
Mon, 16 Nov 2020 18:32:48 +0000
(
01:32
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 16 Nov 2020 18:32:48 +0000
(
01:32
+0700)
youtube_dl/extractor/xtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xtube.py
b/youtube_dl/extractor/xtube.py
index 01b253dcb1e8c92232a06c0b2b4153a545dabcc1..18969058f316aea2f4b628fe91ccb60ca416b91e 100644
(file)
--- 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')