[vh1] Add new extractor (#2072)
This commit is contained in:
parent
76e92371ac
commit
3ee4b60d56
3 changed files with 129 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue