Revert "Revert "Update "format" script""

This reverts commit c4fc12d497.
This commit is contained in:
Aleksandr Statciuk
2021-08-11 18:52:51 +03:00
parent 45a4f438d1
commit 92d0e7fc9b
10 changed files with 227 additions and 579 deletions

View File

@@ -22,6 +22,11 @@ module.exports = class Channel {
this.languages = this.parseLanguages(data.tvg.language)
}
updateUrl(url) {
this.url = url
this.data.url = url
}
parseName(title) {
return title
.trim()