]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/genericembeds.py
[extractor] Support multiple archive ids for one video (#4307)
[yt-dlp.git] / yt_dlp / extractor / genericembeds.py
index ec2673059dcd9b6e85c6339d713bae82dc0b3680..f3add479435c21531f8d868b15130d1d88882877 100644 (file)
@@ -22,6 +22,9 @@ def _extract_from_webpage(self, url, webpage):
             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