فهرست منبع

[radiojavan] Fix height

Sergey M․ 10 سال پیش
والد
کامیت
4e8cc1e973
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      youtube_dl/extractor/radiojavan.py

+ 1 - 1
youtube_dl/extractor/radiojavan.py

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