remove dual language

This commit is contained in:
RevGear
2022-09-22 17:14:10 +01:00
parent c42b643623
commit fa936a76e1
3 changed files with 2 additions and 243 deletions

View File

@@ -26,8 +26,8 @@ module.exports = {
const items = data.shows
items.forEach(item => {
programs.push({
title: parseTitle(item, channel),
sub_title: item.subTitle || null,
title: item.title,
sub_title: item.titleOriginal,
description: item.desc || item.obs,
category: item.categories,
season: item.season || null,
@@ -61,9 +61,6 @@ function parseContent(content) {
return data ? JSON.parse(data) : {}
}
function parseTitle(item, channel) {
return (channel.lang === 'ro' || !item.titleOriginal) ? item.title : item.titleOriginal
}
function parseDirector(item) {
return item.credits && item.credits.director ? item.credits.director : null