touhid314 / Coursera-Downloader

A GUI on top of the coursera-dl script for easy downloading of coursera courses.
http://coursera-downloader.rf.gd/
22 stars 6 forks source link

Subtitle Language of Chinese CODE is zh-CN #6

Open fiezwang opened 3 months ago

fiezwang commented 3 months ago

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'}