projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f15fec
)
[douyutv] Extend _VALID_URL
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 25 Mar 2016 07:43:29 +0000
(15:43 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 25 Mar 2016 07:43:29 +0000
(15:43 +0800)
youtube_dl/extractor/douyutv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/douyutv.py
b/youtube_dl/extractor/douyutv.py
index bcb670945d27b31802bf27390feb4f6cbd53cd6f..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 = '斗鱼'
- _VALID_URL = r'https?://(?:www\.)?douyu
tv
\.com/(?P<id>[A-Za-z0-9]+)'
+ _VALID_URL = r'https?://(?:www\.)?douyu
(?:tv)?
\.com/(?P<id>[A-Za-z0-9]+)'
_TESTS = [{
'url': 'http://www.douyutv.com/iseven',
'info_dict': {
@@
-60,6
+60,9
@@
class DouyuTVIE(InfoExtractor):
'params': {
'skip_download': True,
},
+ }, {
+ 'url': 'http://www.douyu.com/xiaocang',
+ 'only_matching': True,
}]
def _real_extract(self, url):