Update parser.js

Skip playlist when it fills tvg-name
This commit is contained in:
freearhey 2021-03-07 14:17:54 +03:00
parent c35c48d5b1
commit 546ab6a69c
1 changed files with 7 additions and 1 deletions

View File

@ -172,7 +172,13 @@ class Channel {
}
get tvgName() {
return this.tvg.name || this.name
if (this.tvg.name) {
return this.tvg.name
} else if (this.filename !== 'unsorted') {
return this.name.replace(/\"/gi, '')
}
return ''
}
toString(short = false) {