]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[radiojavan] Fix height
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 13:24:37 +0000 (19:24 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 13:24:37 +0000 (19:24 +0600)
youtube_dl/extractor/radiojavan.py

index 73ab78d6d01fca181a11d86d11b85461bfb892a7..c9eda9b53985ee829b92e525d76de41b78a3f28e 100644 (file)
@@ -34,7 +34,7 @@ class RadioJavanIE(InfoExtractor):
         formats = [{
             'url': 'https://media.rdjavan.com/media/music_video/%s' % video_path,
             'format_id': '%sp' % height,
-            'height': height,
+            'height': int(height),
         } for height, video_path in re.findall(r"RJ\.video(\d+)p\s*=\s*'/?([^']+)'", webpage)]
 
         title = self._og_search_title(webpage)