Update yt_dlp/extractor/youtube.py

Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
This commit is contained in:
coletdjnz 2025-01-12 12:24:00 +13:00 committed by GitHub
parent 5c50a25ae7
commit 6c6e1e9548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -741,7 +741,9 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
if not data_sync_id:
return None, None
first, _, second = data_sync_id.partition('||')
return first if second else None, second if second else first
if second:
return first, second
return None, first
def _extract_delegated_session_id(self, *args):
"""