mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Added support tvg-country attribute
This commit is contained in:
parent
6ac07562ec
commit
0ee915fbbd
2 changed files with 9 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue