Closed ivanistheone closed 6 years ago
When using YouTubeSubtitleFile, some language codes still fail or are resolved to inaccurate.
iw
he
zh-Hans
zh-CN
zh-Hant
zh-TW
Add special handlers in getlang_by_alpha2 to handle these edge cases.
getlang_by_alpha2
We can't know know which other non-standard language codes are used by YouTube API so we'll have to implement such fixes on a case by case basis...
This was fixed in #37
When using YouTubeSubtitleFile, some language codes still fail or are resolved to inaccurate.
iw
(old code for Hebrew), should behe
zh-Hans
(simpflified Chinese) should bezh-CN
zh-Hant
(traditional Chinese) should bezh-TW
Possible workaround
Add special handlers in
getlang_by_alpha2
to handle these edge cases.We can't know know which other non-standard language codes are used by YouTube API so we'll have to implement such fixes on a case by case basis...