Update /sites

This commit is contained in:
freearhey
2023-10-02 06:35:33 +03:00
parent ca254a6df0
commit c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions
@@ -37,7 +37,7 @@ module.exports = {
},
async channels() {
const data = await axios
.get(`https://entertainment.ie/tv/all-channels/`)
.get('https://entertainment.ie/tv/all-channels/')
.then(r => r.data)
.catch(console.log)
const $ = cheerio.load(data)
@@ -73,7 +73,7 @@ function parseCategories($item) {
function parseStart($item, date) {
let d = $item('.text-holder > .btn-hold > .btn-wrap > a.btn-share').data('time')
let [_, time] = d ? d.split(', ') : [null, null]
let [, time] = d ? d.split(', ') : [null, null]
return time
? DateTime.fromFormat(`${date.format('YYYY-MM-DD')} ${time}`, 'yyyy-MM-dd HH:mm', {
@@ -91,5 +91,5 @@ function parseDuration($item) {
function parseItems(content) {
const $ = cheerio.load(content)
return $(`.info-list > li`).toArray()
return $('.info-list > li').toArray()
}