mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-05-07 02:29:38 +00:00
Add undetermined audio to list of selections
Figured this would be a better option and doesn't rely on assumptions of what language the undetermined audio really is. It also does not create a fallback to download audio that wasn't requested.
This commit is contained in:
parent
c7ea313962
commit
2b30c8e458
1 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ const languages: LanguageItem[] = [
|
|||
{ cr_locale: 'id-ID', locale: 'id-ID', code: 'ind', name: 'Indonesian', language: 'Bahasa Indonesia' },
|
||||
{ cr_locale: 'te-IN', locale: 'te-IN', code: 'tel', name: 'Telugu (India)', language: 'తెలుగు' },
|
||||
{ cr_locale: 'ja-JP', adn_locale: 'ja', ao_locale: 'ja', hd_locale: 'Japanese', locale: 'ja', code: 'jpn', name: 'Japanese' },
|
||||
{ locale: 'un', code: 'und', name: 'Undetermined', language: 'Undetermined', new_hd_locale: 'und', cr_locale: 'und', adn_locale: 'und', ao_locale: 'und' },
|
||||
];
|
||||
|
||||
// add en language names
|
||||
|
|
@ -97,7 +98,7 @@ const fixLanguageTag = (tag: string) => {
|
|||
// find lang by cr_locale
|
||||
const findLang = (cr_locale: string) => {
|
||||
const lang = languages.find(l => { return l.cr_locale == cr_locale; });
|
||||
return lang ? lang : { cr_locale: 'und', locale: 'un', code: 'und', name: '', language: '' };
|
||||
return lang ? lang : languages.find(l => l.code === 'und') || { cr_locale: 'und', locale: 'un', code: 'und', name: 'Undetermined', language: 'Undetermined' };
|
||||
};
|
||||
|
||||
const fixAndFindCrLC = (cr_locale: string) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue