summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYen Chi Hsuan <[email protected]>2016-06-11 13:13:16 +0800
committerYen Chi Hsuan <[email protected]>2016-06-11 13:14:41 +0800
commit47787efa2b6bd5dc1b6f6cb7027586bac2de4c6c (patch)
tree9253298a9307279cb1982db866c3e3a2804bc393
parent4a420119a6e0b7363f9d31e37d3e7af818bedfd9 (diff)
downloadyoutube-dl-47787efa2b6bd5dc1b6f6cb7027586bac2de4c6c.tar.gz
youtube-dl-47787efa2b6bd5dc1b6f6cb7027586bac2de4c6c.zip
[leeco] Recognize Le Sports URLs (fixes #9750)
-rw-r--r--youtube_dl/extractor/leeco.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/leeco.py b/youtube_dl/extractor/leeco.py
index 375fdaed1..63f581cd9 100644
--- a/youtube_dl/extractor/leeco.py
+++ b/youtube_dl/extractor/leeco.py
@@ -28,7 +28,7 @@ from ..utils import (
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'
@@ -69,6 +69,9 @@ class LeIE(InfoExtractor):
'hls_prefer_native': True,
},
'skip': 'Only available in China',
+ }, {
+ 'url': 'http://sports.le.com/video/25737697.html',
+ 'only_matching': True,
}]
@staticmethod
@@ -196,7 +199,7 @@ class LeIE(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',