[vh1] Add new extractor (#2072)

This commit is contained in:
Ralf Haring 2014-05-16 18:15:02 -04:00
parent 76e92371ac
commit 3ee4b60d56
3 changed files with 129 additions and 0 deletions

View file

@ -80,6 +80,8 @@ class MTVServicesInfoExtractor(InfoExtractor):
})
except (KeyError, TypeError):
raise ExtractorError('Invalid rendition field.')
# worst format is expected to be first and best one last
formats.sort(key=lambda x: int(x['format_id']))
return formats
def _get_video_info(self, itemdoc):