[Issue]: Language code "zh-CN" not being recognized correctly #4615

Closed
opened 2025-12-22 00:23:18 +01:00 by backuprepo · 3 comments
Owner

Originally created by @felix920506 on GitHub (Feb 9, 2023).

Please describe your bug

Issue:
<filename>.zh-CN.<extension> isn't being recognized properly

Steps to reproduce:

  1. Upload media to Jellyfin Server with external subtitles renamed to <filename>.zh-CN.<extension>
  2. Refresh Metadata
  3. Open Subtitle dropdown to see results

Expected Behavior:
Subtitles be recognized as Chinese or Simplified Chinese

Actual Behavior:
Subtitles language isn't being recognized

Jellyfin Version

Other

if other:

10.8.9

Environment

- OS: Unraid
- Virtualization: Docker
- Clients: Web, Swiftfin
- Browser: Firefox
- FFmpeg Version: 5.1.2
- Playback Method: N/A
- Hardware Acceleration: N/A
- Plugins: AniDB
- Reverse Proxy: None
- Base URL: None
- Networking: NAT
- Storage: Local

Jellyfin logs

No response

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

What is being shown:
image

Files uploaded:
image

the .mkv container does NOT contain subtitles

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @felix920506 on GitHub (Feb 9, 2023). ### Please describe your bug Issue: \<filename\>.zh-CN.\<extension\> isn't being recognized properly Steps to reproduce: 1. Upload media to Jellyfin Server with external subtitles renamed to \<filename\>.zh-CN.\<extension\> 2. Refresh Metadata 3. Open Subtitle dropdown to see results Expected Behavior: Subtitles be recognized as Chinese or Simplified Chinese Actual Behavior: Subtitles language isn't being recognized ### Jellyfin Version Other ### if other: 10.8.9 ### Environment ```markdown - OS: Unraid - Virtualization: Docker - Clients: Web, Swiftfin - Browser: Firefox - FFmpeg Version: 5.1.2 - Playback Method: N/A - Hardware Acceleration: N/A - Plugins: AniDB - Reverse Proxy: None - Base URL: None - Networking: NAT - Storage: Local ``` ### Jellyfin logs _No response_ ### FFmpeg logs _No response_ ### Please attach any browser or client logs here _No response_ ### Please attach any screenshots here What is being shown: ![image](https://user-images.githubusercontent.com/25688628/217731745-9e06f6b1-eecf-4d54-a760-97b82b0df737.png) Files uploaded: ![image](https://user-images.githubusercontent.com/25688628/217732627-3d691f6c-6bbc-41e1-a764-fbb9bcf2d12a.png) the .mkv container does NOT contain subtitles ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
backuprepo 2025-12-22 00:23:18 +01:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@felix920506 commented on GitHub (Feb 9, 2023):

Translation of menu items in the first screenshot:

  • Off
  • zh-CN - Not Defined - ASS - External
  • Chi - ASS - External
@felix920506 commented on GitHub (Feb 9, 2023): Translation of menu items in the first screenshot: - Off - zh-CN - Not Defined - ASS - External - Chi - ASS - External
Author
Owner

@srcrist commented on GitHub (Feb 9, 2023):

Just a few relevant links for context on this issue:

@srcrist commented on GitHub (Feb 9, 2023): Just a few relevant links for context on this issue: - The BCP 47 language code standard, of which zh-CN is a part, is a part of the recommendations of the current Matroska specification. (https://www.matroska.org/technical/notes.html) - A list of the most commonly used codes included in the specification can be found here: https://www.techonthenet.com/js/language_tags.php
Author
Owner

@Bond-009 commented on GitHub (Feb 9, 2023):

Duplicate of #6302

@Bond-009 commented on GitHub (Feb 9, 2023): Duplicate of #6302
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#4615
No description provided.