Update tva.tv

This commit is contained in:
Aleksandr Statciuk
2022-02-01 05:45:00 +03:00
parent f1999265fb
commit 7a5a1505f3
3 changed files with 32 additions and 49 deletions

View File

@@ -8,9 +8,6 @@ module.exports = {
channel.site_id
}&pivot_date=${date.format('YYYY-MM-DD')}`
},
logo: function ({ channel }) {
return channel.logo
},
parser: function ({ content, date, channel }) {
const programs = []
const items = parseItems(content)
@@ -40,18 +37,11 @@ module.exports = {
const channels = []
for (let item of data.data) {
const logo = item.images
? item.images[0].url_template
.replace('{width}', '512')
.replace('{height}', '512')
.replace('{crop}', 'c')
: null
channels.push({
lang: 'fa',
site_id: item.id,
name: item.name,
xmltv_id: item.slug,
logo
xmltv_id: item.slug
})
}