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
+1 -2
View File
@@ -5,7 +5,6 @@ const { DateTime } = require('luxon')
module.exports = {
site: 'tvhebdo.com',
days: 2,
timeout: 30000, // 30s
url: function ({ channel, date }) {
return `https://www.tvhebdo.com/horaire-tele/${channel.site_id}/date/${date.format(
'YYYY-MM-DD'
@@ -64,7 +63,7 @@ module.exports = {
'alt'
)
const url = $item('.gr_row_head > div > div.gr_row_head_poste > a').attr('href')
const [_, site_id] = url.match(/horaire-tele\/(.*)/) || [null, null]
const [, site_id] = url.match(/horaire-tele\/(.*)/) || [null, null]
return {
lang: 'fr',
site_id,