Browse Source

[leeco] Recognize more Le Sports URLs (#10794)

totalwebcasting
Yen Chi Hsuan 8 years ago
parent
commit
0d72ff9c51
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
2 changed files with 14 additions and 2 deletions
  1. +7
    -1
      ChangeLog
  2. +7
    -1
      youtube_dl/extractor/leeco.py

+ 7
- 1
ChangeLog View File

@ -1,4 +1,10 @@
vesion 2016.09.27
version <unreleased>
Extractors
+ [leeco] Recognize more Le Sports URLs (#10794)
version 2016.09.27
Core Core
+ Add hdcore query parameter to akamai f4m formats + Add hdcore query parameter to akamai f4m formats


+ 7
- 1
youtube_dl/extractor/leeco.py View File

@ -29,7 +29,7 @@ from ..utils import (
class LeIE(InfoExtractor): class LeIE(InfoExtractor):
IE_DESC = '乐视网' IE_DESC = '乐视网'
_VALID_URL = r'https?://(?:www\.le\.com/ptv/vplay|sports\.le\.com/video)/(?P<id>\d+)\.html'
_VALID_URL = r'https?://(?:www\.le\.com/ptv/vplay|(?:sports\.le|(?:www\.)?lesports)\.com/(?:match|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'
@ -73,6 +73,12 @@ class LeIE(InfoExtractor):
}, { }, {
'url': 'http://sports.le.com/video/25737697.html', 'url': 'http://sports.le.com/video/25737697.html',
'only_matching': True, 'only_matching': True,
}, {
'url': 'http://www.lesports.com/match/1023203003.html',
'only_matching': True,
}, {
'url': 'http://sports.le.com/match/1023203003.html',
'only_matching': True,
}] }]
# ror() and calc_time_key() are reversed from a embedded swf file in KLetvPlayer.swf # ror() and calc_time_key() are reversed from a embedded swf file in KLetvPlayer.swf


Loading…
Cancel
Save