X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Frutube.py;h=6941d96fb52d23246656fbdd8afb892c32fcc7dd;hb=e638e83662e5baa414b8d80145e46c1912f7998d;hp=0c8790da28c4b06cfbc941bdff7ad4e64b47ac74;hpb=cc7fec5818254f4679896823c7de9d17f50201ca;p=youtube-dl.git diff --git a/youtube_dl/extractor/rutube.py b/youtube_dl/extractor/rutube.py index 0c8790da2..6941d96fb 100644 --- a/youtube_dl/extractor/rutube.py +++ b/youtube_dl/extractor/rutube.py @@ -53,6 +53,7 @@ class RutubeIE(InfoExtractor): m3u8_url = options['video_balancer'].get('m3u8') if m3u8_url is None: raise ExtractorError('Couldn\'t find m3u8 manifest url') + formats = self._extract_m3u8_formats(m3u8_url, video_id, ext='mp4') return { 'id': video['id'], @@ -60,8 +61,7 @@ class RutubeIE(InfoExtractor): 'description': video['description'], 'duration': video['duration'], 'view_count': video['hits'], - 'url': m3u8_url, - 'ext': 'mp4', + 'formats': formats, 'thumbnail': video['thumbnail_url'], 'uploader': author.get('name'), 'uploader_id': compat_str(author['id']) if author else None,