]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[letv] fix height
authorremitamine <remitamine@gmail.com>
Fri, 24 Jul 2015 13:46:45 +0000 (14:46 +0100)
committerremitamine <remitamine@gmail.com>
Fri, 24 Jul 2015 13:46:45 +0000 (14:46 +0100)
youtube_dl/extractor/letv.py

index ba2ae80853d36ce1b9a98d109c2580bcdde65d5a..a28abb0f0081d05c5c2d0c07080ba33db0badaed 100644 (file)
@@ -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)