projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[downloader/http] Simplify
[youtube-dl]
/
youtube_dl
/
extractor
/
letv.py
diff --git
a/youtube_dl/extractor/letv.py
b/youtube_dl/extractor/letv.py
index da896caf160f6f0a0ae49167ae546cd9da4d45fa..a28abb0f0081d05c5c2d0c07080ba33db0badaed 100644
(file)
--- a/
youtube_dl/extractor/letv.py
+++ b/
youtube_dl/extractor/letv.py
@@
-15,10
+15,12
@@
from ..utils import (
determine_ext,
ExtractorError,
parse_iso8601,
determine_ext,
ExtractorError,
parse_iso8601,
+ int_or_none,
)
class LetvIE(InfoExtractor):
)
class LetvIE(InfoExtractor):
+ IE_DESC = '乐视网'
_VALID_URL = r'http://www\.letv\.com/ptv/vplay/(?P<id>\d+).html'
_TESTS = [{
_VALID_URL = r'http://www\.letv\.com/ptv/vplay/(?P<id>\d+).html'
_TESTS = [{
@@
-133,7
+135,7
@@
class LetvIE(InfoExtractor):
}
if format_id[-1:] == 'p':
}
if format_id[-1:] == 'p':
- url_info_dict['height'] =
format_id[:-1]
+ url_info_dict['height'] =
int_or_none(format_id[:-1])
urls.append(url_info_dict)
urls.append(url_info_dict)