mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Merge pull request #379 from yarafie/patch-1
Update elcinema.com.config.js
This commit is contained in:
commit
4e6a03ae55
2 changed files with 9 additions and 4 deletions
|
@ -105,10 +105,15 @@ function parseDescription(item) {
|
|||
|
||||
function parseItems(content, channel, date) {
|
||||
const $ = cheerio.load(content)
|
||||
|
||||
const dateString = date.locale(channel.lang).format('dddd D MMMM')
|
||||
|
||||
const list = $('.dates')
|
||||
.filter((i, el) => {
|
||||
return $(el).text().trim() === dateString
|
||||
let parsedDateString = $(el).text().trim()
|
||||
parsedDateString = parsedDateString.replace(/\s\s+/g, ' ')
|
||||
|
||||
return parsedDateString === dateString
|
||||
})
|
||||
.first()
|
||||
.parent()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue