Browse Source

[mtvservices] Fix ext for RTMP streams

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
a72df5f36f
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/mtv.py

+ 3
- 2
youtube_dl/extractor/mtv.py View File

@ -85,9 +85,10 @@ class MTVServicesInfoExtractor(InfoExtractor):
rtmp_video_url = rendition.find('./src').text
if rtmp_video_url.endswith('siteunavail.png'):
continue
new_url = self._transform_rtmp_url(rtmp_video_url)
formats.append({
'ext': ext,
'url': self._transform_rtmp_url(rtmp_video_url),
'ext': 'flv' if new_url.startswith('rtmp') else ext,
'url': new_url,
'format_id': rendition.get('bitrate'),
'width': int(rendition.get('width')),
'height': int(rendition.get('height')),


Loading…
Cancel
Save