]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[leeco] format_id should be strings
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 4 Mar 2016 05:38:45 +0000 (13:38 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 4 Mar 2016 05:38:45 +0000 (13:38 +0800)
youtube_dl/extractor/leeco.py

index d0cd3f5919350117a1babe44df1e1ea6ff4bb3c5..9c2bce03668b30576cba7593db491d189bf5171f 100644 (file)
@@ -338,7 +338,7 @@ class LetvCloudIE(InfoExtractor):
             formats.append({
                 'url': url,
                 'ext': determine_ext(decoded_url),
-                'format_id': int_or_none(play_url.get('vtype')),
+                'format_id': str_or_none(play_url.get('vtype')),
                 'format_note': str_or_none(play_url.get('definition')),
                 'width': int_or_none(play_url.get('vwidth')),
                 'height': int_or_none(play_url.get('vheight')),