1
0
Fork 0

[ie/youtube] Add PO token support for subtitles (#13234)

Closes #13075
Authored by: bashonly, coletdjnz

Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
This commit is contained in:
bashonly 2025-05-22 04:13:42 -05:00 committed by GitHub
commit 32ed5f107c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 140 additions and 44 deletions

View file

@ -51,7 +51,7 @@ def get_webpo_content_binding(
return visitor_id, ContentBindingType.VISITOR_ID
return request.visitor_data, ContentBindingType.VISITOR_DATA
elif request.context == PoTokenContext.PLAYER or client_name != 'WEB_REMIX':
elif request.context in (PoTokenContext.PLAYER, PoTokenContext.SUBS):
return request.video_id, ContentBindingType.VIDEO_ID
return None, None