[extractor] Support multiple archive ids for one video (#4307)
Closes #4352
This commit is contained in:
parent
f14a2d8382
commit
1e8fe57e5c
6 changed files with 13 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue