mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-25 04:40:09 +09:00
Break out video_url and title
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
4d02ba27d7
commit
918113db3b
@ -36,10 +36,13 @@ class LivestreamfailsIE(InfoExtractor):
|
|||||||
# Use the same endpoint here to avoid loading and parsing the provided page (which requires JS)
|
# Use the same endpoint here to avoid loading and parsing the provided page (which requires JS)
|
||||||
api_response = self._download_json('https://api.livestreamfails.com/clip/' + id, id)
|
api_response = self._download_json('https://api.livestreamfails.com/clip/' + id, id)
|
||||||
|
|
||||||
|
video_url = 'https://livestreamfails-video-prod.b-cdn.net/video/' + api_response['videoId']
|
||||||
|
title = api_response['label']
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': id,
|
'id': id,
|
||||||
'url': 'https://livestreamfails-video-prod.b-cdn.net/video/' + api_response['videoId'],
|
'url': video_url,
|
||||||
'title': api_response['label'],
|
'title': title,
|
||||||
'display_id': api_response.get('sourceId'), # Twitch ID of clip
|
'display_id': api_response.get('sourceId'), # Twitch ID of clip
|
||||||
'timestamp': parse_iso8601(api_response.get('createdAt')),
|
'timestamp': parse_iso8601(api_response.get('createdAt')),
|
||||||
'creator': try_get(api_response, lambda x: x['streamer']['label'], compat_str),
|
'creator': try_get(api_response, lambda x: x['streamer']['label'], compat_str),
|
||||||
|
Loading…
Reference in New Issue
Block a user