aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M. <dstftw@gmail.com>2015-07-24 20:03:44 +0600
committerSergey M. <dstftw@gmail.com>2015-07-24 20:03:44 +0600
commit420658e6cb80ff9687accebe08bc1af5953fae21 (patch)
tree9f0b7a214f121ef20e3daa13a13e456a7dbfcbed /youtube_dl
parent12434026574bcaaaa705c31ef14428cc91a5efad (diff)
parent593ddd851b87eb7ac327a9216800162f07b2acca (diff)
Merge pull request #6350 from remitamine/letv
[letv] fix height
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/letv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/letv.py b/youtube_dl/extractor/letv.py
index ba2ae8085..a28abb0f0 100644
--- a/youtube_dl/extractor/letv.py
+++ b/youtube_dl/extractor/letv.py
@@ -15,6 +15,7 @@ from ..utils import (
determine_ext,
ExtractorError,
parse_iso8601,
+ int_or_none,
)
@@ -134,7 +135,7 @@ class LetvIE(InfoExtractor):
}
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)