Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitle Language of Chinese CODE is zh-CN #6

Open
fiezwang opened this issue Jun 24, 2024 · 0 comments
Open

Subtitle Language of Chinese CODE is zh-CN #6

fiezwang opened this issue Jun 24, 2024 · 0 comments

Comments

@fiezwang
Copy link

When I choose the "Chinese (Simplified)" of Subtitle Language, it still downloads the English Subtitle. But there is a Chinese (Simplified) subtitle in the course. There are not subtitles of Chinese and Chinese (Traditional) . And I lookup the API from Chrome. I find that CODE of Chinese (Simplified)is zh-CN. I correct the code in general.py, and it works.
Thank you very much for your APP.

general.py

LANG_NAME_TO_CODE_MAPPING = {'Chinese (Simplified)': 'zh-Hans', 'Chinese (Traditional)': 'zh-Hant', 'Chinese': 'zh'}

LANG_NAME_TO_CODE_MAPPING = {'Chinese (Simplified)': 'zh-Hans, 'Chinese (Traditional)': 'zh-Hant', 'Chinese': 'zh-CN'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant