projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ard] Change subtitles extension to ttml (Closes #9169)
[youtube-dl]
/
youtube_dl
/
extractor
/
douyutv.py
diff --git
a/youtube_dl/extractor/douyutv.py
b/youtube_dl/extractor/douyutv.py
index bdc768c783b9b3213badc5cf4b354f6159142f9f..3915cb182961711873b7a75b48958ac50602aa45 100644
(file)
--- a/
youtube_dl/extractor/douyutv.py
+++ b/
youtube_dl/extractor/douyutv.py
@@
-10,7
+10,7
@@
from ..compat import (compat_str, compat_basestring)
class DouyuTVIE(InfoExtractor):
IE_DESC = '斗鱼'
class DouyuTVIE(InfoExtractor):
IE_DESC = '斗鱼'
- _VALID_URL = r'http
://(?:www\.)?douyutv
\.com/(?P<id>[A-Za-z0-9]+)'
+ _VALID_URL = r'http
s?://(?:www\.)?douyu(?:tv)?
\.com/(?P<id>[A-Za-z0-9]+)'
_TESTS = [{
'url': 'http://www.douyutv.com/iseven',
'info_dict': {
_TESTS = [{
'url': 'http://www.douyutv.com/iseven',
'info_dict': {
@@
-60,6
+60,9
@@
class DouyuTVIE(InfoExtractor):
'params': {
'skip_download': True,
},
'params': {
'skip_download': True,
},
+ }, {
+ 'url': 'http://www.douyu.com/xiaocang',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):