mirror of
https://github.com/tubearchivist/tubearchivist-plex.git
synced 2026-03-23 20:37:11 +00:00
[PR #111] Parse language code - extract base language from locale #111
Labels
No labels
bug
bug
documentation
duplicate
enhancement
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tubearchivist/archived-tubearchivist-plex#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tubearchivist/tubearchivist-plex/pull/111
Author: @bmcdonough
Created: 10/22/2025
Status: 🔄 Open
Base:
test← Head:bmcd-20251022📝 Commits (1)
1188bdbParse language code - extract base language from locale📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
Contents/Code/__init__.py(+9 -1)📄 Description
In my specific use case, I had subtitles from Youtube that had a language code of
en-US.The tubearchivist-plex code utilizes the PMS Extension Framework which requires the language code to be 2 characters.
I added logic that if the language code from the subtitles contains a hyphen to only pass the first half on to the Framework.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.