From e8a08dad41f7c2b3bb56f5527cbece4aac8c61bb Mon Sep 17 00:00:00 2001 From: hwang-cadent Date: Wed, 17 Dec 2025 10:57:31 -0600 Subject: [PATCH] [infomaniak] Warn on incomplete multi-entry shares Follow up on PR review --- youtube_dl/extractor/infomaniak.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/youtube_dl/extractor/infomaniak.py b/youtube_dl/extractor/infomaniak.py index 7158a1ae6..331416332 100644 --- a/youtube_dl/extractor/infomaniak.py +++ b/youtube_dl/extractor/infomaniak.py @@ -78,7 +78,13 @@ class InfomaniakVod2IE(InfoExtractor): 'display_id': share_id, }, entries[0], rev=True) + missing_id = sum(1 for e in entries if not e.get('id')) entries = [e for e in entries if e.get('id')] + if missing_id: + self.report_warning( + 'Share contains multiple media entries, but %d item(s) are missing an id and will be skipped. ' + 'If this looks incorrect, please report the URL.' % missing_id, + share_id, only_once=True) if not entries: # Keep the error message actionable for site support requests raise ExtractorError('Unable to find any media in share JSON', expected=True)