Update i24news.tv.config.js

This commit is contained in:
Ismaël Moret 2024-12-19 15:52:56 +01:00 committed by GitHub
parent 7a9ece8e59
commit ed3ede914c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,9 +11,7 @@ module.exports = {
site: 'i24news.tv',
days: 2,
url: function ({ channel }) {
const [lang, region] = channel.site_id.split('#')
return `https://api.i24news.tv/v2/${lang}/schedules/${region}`
return `https://api.i24news.tv/v2/${channel.site_id}/schedules`
},
parser: function ({ content, date }) {
let programs = []