mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
Account for embeded Videos
This commit is contained in:
parent
f3629fe07c
commit
88ddb25d9e
@ -77,6 +77,16 @@ class NineGagIE(InfoExtractor):
|
|||||||
'start_time': data['video'].get('startTs')
|
'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':
|
if data['type'] != 'Animated':
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'The given url does not contain a video',
|
'The given url does not contain a video',
|
||||||
|
Loading…
Reference in New Issue
Block a user