projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a42011
)
[leeco] Recognize Le Sports URLs (fixes #9750)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 11 Jun 2016 05:13:16 +0000
(13:13 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 11 Jun 2016 05:14:41 +0000
(13:14 +0800)
youtube_dl/extractor/leeco.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/leeco.py
b/youtube_dl/extractor/leeco.py
index 375fdaed129421371f8575c3aeceb71ed4712de7..63f581cd9fe44013ce8ec85ce540d04d0df73713 100644
(file)
--- a/
youtube_dl/extractor/leeco.py
+++ b/
youtube_dl/extractor/leeco.py
@@
-28,7
+28,7
@@
from ..utils import (
class LeIE(InfoExtractor):
IE_DESC = '乐视网'
class LeIE(InfoExtractor):
IE_DESC = '乐视网'
- _VALID_URL = r'https?://
www\.le\.com/ptv/vplay
/(?P<id>\d+)\.html'
+ _VALID_URL = r'https?://
(?:www\.le\.com/ptv/vplay|sports\.le\.com/video)
/(?P<id>\d+)\.html'
_URL_TEMPLATE = 'http://www.le.com/ptv/vplay/%s.html'
_URL_TEMPLATE = 'http://www.le.com/ptv/vplay/%s.html'
@@
-69,6
+69,9
@@
class LeIE(InfoExtractor):
'hls_prefer_native': True,
},
'skip': 'Only available in China',
'hls_prefer_native': True,
},
'skip': 'Only available in China',
+ }, {
+ 'url': 'http://sports.le.com/video/25737697.html',
+ 'only_matching': True,
}]
@staticmethod
}]
@staticmethod
@@
-196,7
+199,7
@@
class LeIE(InfoExtractor):
class LePlaylistIE(InfoExtractor):
class LePlaylistIE(InfoExtractor):
- _VALID_URL = r'https?://[a-z]+\.le\.com/[a-z]+/(?P<id>[a-z0-9_]+)'
+ _VALID_URL = r'https?://[a-z]+\.le\.com/
(?!video)
[a-z]+/(?P<id>[a-z0-9_]+)'
_TESTS = [{
'url': 'http://www.le.com/tv/46177.html',
_TESTS = [{
'url': 'http://www.le.com/tv/46177.html',