mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
twitch.tv: Use id as title if no title is present (Closes #638)
This commit is contained in:
parent
4da769ccca
commit
97f194c1fb
@ -3541,10 +3541,12 @@ def _parse_page(self, url):
|
|||||||
video_extension = os.path.splitext(video_url)[1][1:]
|
video_extension = os.path.splitext(video_url)[1][1:]
|
||||||
video_date = re.sub('-', '', clip['start_time'][:10])
|
video_date = re.sub('-', '', clip['start_time'][:10])
|
||||||
video_uploader_id = clip.get('user_id', clip.get('channel_id'))
|
video_uploader_id = clip.get('user_id', clip.get('channel_id'))
|
||||||
|
video_id = clip['id']
|
||||||
|
video_title = clip.get('title', video_id)
|
||||||
info.append({
|
info.append({
|
||||||
'id': clip['id'],
|
'id': video_id,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'title': clip['title'],
|
'title': video_title,
|
||||||
'uploader': clip.get('channel_name', video_uploader_id),
|
'uploader': clip.get('channel_name', video_uploader_id),
|
||||||
'uploader_id': video_uploader_id,
|
'uploader_id': video_uploader_id,
|
||||||
'upload_date': video_date,
|
'upload_date': video_date,
|
||||||
|
Loading…
Reference in New Issue
Block a user