Account for embeded Videos

This commit is contained in:
DrWursterich 2019-11-14 17:27:03 +01:00
parent f3629fe07c
commit 88ddb25d9e
1 changed files with 10 additions and 0 deletions

View File

@ -77,6 +77,16 @@ class NineGagIE(InfoExtractor):
'start_time': data['video'].get('startTs')
}
if data['type'] == 'EmbedVideo':
vid = data['video']['id']
ie_key = data['video']['source'].capitalize()
return {
'_type': 'url_transparent',
'url': data['video']['embedUrl'],
#'ie_key': vid,
'start_time': data['video'].get('startTs')
}
if data['type'] != 'Animated':
raise ExtractorError(
'The given url does not contain a video',