Browse Source

[douyutv] Extend _VALID_URL

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
3bb3356812
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/douyutv.py

+ 4
- 1
youtube_dl/extractor/douyutv.py View File

@ -10,7 +10,7 @@ from ..compat import (compat_str, compat_basestring)
class DouyuTVIE(InfoExtractor):
IE_DESC = '斗鱼'
_VALID_URL = r'https?://(?:www\.)?douyutv\.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):


Loading…
Cancel
Save