Skip to content

Support for extra out-of-region languages #29

@gmertes

Description

@gmertes

Netflix has added support for extra out-of-region subtitle languages. These subs are present in the manifest, but they are missing their download url. For in-region subtitles we get the download url from manifest.timedtexttracks[].ttDownloadables, but this field is empty for the extra subs. I have done only limited investigation at the time of writing, but I don't see the download url anywhere in other fields.

What's interesting is that once you select one of the extra languages as primary sub, the ttDownloadables for that track is populated with a download url - making that language available as secondary sub (and it will show up on refresh). This may be a deliberate obfuscation. It also indicates that ttDownloadables is still used by the player when activating the extra subs, we just need to figure out where it gets populated from. If we cannot easily get a complete list of download urls, we could potentially mimic user behaviour and just cycle through the primary subs one by one to intercept all urls (not ideal but 🤷‍♀️).

I'm opening this issue to document the implementation of support for out of region languages, and request help from the community. Feedback, suggestions and PR are very much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions