Update playlist/generate.js

This commit is contained in:
Aleksandr Statciuk
2022-02-13 07:03:39 +03:00
parent 96038210d6
commit d00e2e5e38
33 changed files with 608 additions and 622 deletions

View File

@@ -1,5 +1,4 @@
exports.group_title = require('./group_title')
exports.title = require('./title')
exports.tvg_id = require('./tvg_id')
exports.tvg_logo = require('./tvg_logo')
exports.tvg_country = require('./tvg_country')

View File

@@ -1,13 +0,0 @@
module.exports = function () {
let title = this.channel_name
if (this.resolution.height) {
title += ` (${this.resolution.height}p)`
}
if (this.status.label) {
title += ` [${this.status.label}]`
}
return title
}

View File

@@ -1,3 +1,3 @@
module.exports = function () {
return this.channel_id || ''
return this.channel || ''
}