mirror of
https://github.com/iptv-org/iptv
synced 2026-10-23 19:46:40 -04:00
Update utils.js
This commit is contained in:
1 parent
c5dea2ccaa
commit
7e67a6de4b
1 file changed
+3
@@ -20,6 +20,8 @@ utils.code2flag = function (code) {
|
||||
switch (code) {
|
||||
case 'UK':
|
||||
return '🇬🇧'
|
||||
case 'INT':
|
||||
return '🌍'
|
||||
case 'UNSORTED':
|
||||
return ''
|
||||
default:
|
||||
@@ -38,6 +40,7 @@ utils.code2name = function (code) {
|
||||
code = code.toUpperCase()
|
||||
if (regions[code]) return regions[code].name
|
||||
if (code === 'US') return 'United States'
|
||||
if (code === 'INT') return 'International'
|
||||
return intlDisplayNames.of(code)
|
||||
} catch (e) {
|
||||
return null
|
||||
|
||||
Reference in new issue
Block a user