1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[extractor] Support multiple archive ids for one video (#4307)

Closes #4352
This commit is contained in:
pukkandan
2022-07-13 15:03:05 +05:30
parent f14a2d8382
commit 1e8fe57e5c
6 changed files with 13 additions and 7 deletions

View File

@ -1162,8 +1162,11 @@ class TwitchClipsIE(TwitchBaseIE):
})
thumbnails.append(thumb)
old_id = self._search_regex(r'%7C(\d+)(?:-\d+)?.mp4', formats[-1]['url'], 'old id', default=None)
return {
'id': clip.get('id') or video_id,
'_old_archive_ids': [f'{self.ie_key()} {old_id}'] if old_id else None,
'display_id': video_id,
'title': clip.get('title') or video_id,
'formats': formats,