projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4568a11
)
[xtube] Fix typo
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Mar 2020 15:58:10 +0000
(22:58 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Mar 2020 15:58:10 +0000
(22:58 +0700)
youtube_dl/extractor/xtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xtube.py
b/youtube_dl/extractor/xtube.py
index 79dd647b37313221327336a02ca1f21fd176b97c..01b253dcb1e8c92232a06c0b2b4153a545dabcc1 100644
(file)
--- a/
youtube_dl/extractor/xtube.py
+++ b/
youtube_dl/extractor/xtube.py
@@
-100,7
+100,7
@@
class XTubeIE(InfoExtractor):
duration = int_or_none(config.get('duration'))
sources = config.get('sources') or config.get('format')
- if isinstance(sources, dict):
+ if
not
isinstance(sources, dict):
sources = self._parse_json(self._search_regex(
r'(["\'])?sources\1?\s*:\s*(?P<sources>{.+?}),',
webpage, 'sources', group='sources'), video_id,