Added support tvg-country attribute

This commit is contained in:
freearhey committed 2019-11-02 17:21:19 +03:00
1 parent af38323a7f
commit 1320f581eb
2 files changed
+9 -2

No files matched your search

+7
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'