Update parser.js
This commit is contained in:
parent
42b28c0d3f
commit
6a33900a10
|
@ -21,7 +21,7 @@ parser.parsePlaylist = function (filename) {
|
||||||
parser.parseCountries = function (string) {
|
parser.parseCountries = function (string) {
|
||||||
return string
|
return string
|
||||||
.split(';')
|
.split(';')
|
||||||
.filter(i => i)
|
.filter(code => code && utils.codeIsValid(code))
|
||||||
.map(code => ({ code: code.toLowerCase(), name: utils.code2name(code) }))
|
.map(code => ({ code: code.toLowerCase(), name: utils.code2name(code) }))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue