mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 01:20:08 -04:00
Update elcinema.com.config.js
This commit is contained in:
parent
dc77d23a1e
commit
fe6b3ec2d8
1 changed files with 4 additions and 2 deletions
|
@ -12,7 +12,9 @@ dayjs.extend(utc)
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'elcinema.com',
|
site: 'elcinema.com',
|
||||||
url({ channel }) {
|
url({ channel }) {
|
||||||
return `https://elcinema.com/tvguide/${channel.site_id}/`
|
const lang = channel.lang === 'en' ? 'en/' : '/'
|
||||||
|
|
||||||
|
return `https://elcinema.com/${lang}tvguide/${channel.site_id}/`
|
||||||
},
|
},
|
||||||
logo({ content }) {
|
logo({ content }) {
|
||||||
const dom = new JSDOM(content)
|
const dom = new JSDOM(content)
|
||||||
|
@ -116,7 +118,7 @@ function parseDescription(item) {
|
||||||
}
|
}
|
||||||
).textContent
|
).textContent
|
||||||
|
|
||||||
return excerpt.replace('...اقرأ المزيد', '') + desc
|
return excerpt.replace('...اقرأ المزيد', '').replace('...Read more', '') + desc
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseItems(content, date) {
|
function parseItems(content, date) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue