1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-02 06:15:16 +00:00

[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
parent 167d7a9f0f
commit 32ed5f107c
6 changed files with 138 additions and 42 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