Added support tvg-country attribute

This commit is contained in:
freearhey 2019-11-02 17:21:19 +03:00
parent 6ac07562ec
commit 0ee915fbbd
2 changed files with 9 additions and 2 deletions

View file

@ -256,6 +256,13 @@ class Channel {
}
toString() {
const country = this.countryCode.toUpperCase()
const info = `-1 tvg-id="${this.id}" tvg-name="${this.name}" tvg-language="${this.language}" tvg-logo="${this.logo}" tvg-country="${country}" group-title="${this.group}",${this.title}`
return '#EXTINF:' + info + '\n' + this.url + '\n'
}
toShortString() {
const info = `-1 tvg-id="${this.id}" tvg-name="${this.name}" tvg-language="${this.language}" tvg-logo="${this.logo}" group-title="${this.group}",${this.title}`
return '#EXTINF:' + info + '\n' + this.url + '\n'