[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

@@ -22,6 +22,9 @@ class HTML5MediaEmbedIE(InfoExtractor):
entry.update({
'id': f'{video_id}-{num}',
'title': f'{title} ({num})',
'_old_archive_ids': [
f'Generic {f"{video_id}-{num}" if len(entries) > 1 else video_id}',
],
})
self._sort_formats(entry['formats'])
yield entry