mirror of
https://github.com/iptv-org/epg
synced 2026-05-01 23:17:00 -04:00
continue cleaning + simplify mtel.ba (right now broken EPG on backend)
This commit is contained in:
@@ -5,7 +5,7 @@ const cheerio = require('cheerio')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const _ = require('lodash')
|
||||
const { startCase } = require('../../scripts/functions')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
@@ -164,7 +164,7 @@ function parseDuration($item) {
|
||||
function parseItems(content, date) {
|
||||
if (!content) return []
|
||||
const $ = cheerio.load(content)
|
||||
const d = _.startCase(date.locale('es').format('DD MMMM YYYY'))
|
||||
const d = startCase(date.locale('es').format('DD MMMM YYYY'))
|
||||
|
||||
return $(`.trProg[title*="${d}"]`).toArray()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user