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
@@ -4,8 +4,7 @@ const dayjs = require('dayjs')
module.exports = {
site: 'tvarenasport.hr',
days: 2,
skip: true, // there is no current program on the website
url: function ({ channel, date }) {
url: function ({ date }) {
return `https://www.tvarenasport.hr/api/schedule?date=${date.format('DD-MM-YYYY')}`
},
parser: function ({ content, channel }) {
@@ -23,9 +22,9 @@ module.exports = {
return programs
},
async channels({ country, lang }) {
async channels() {
const data = await axios
.get(`https://www.tvarenasport.hr/api/schedule`)
.get('https://www.tvarenasport.hr/api/schedule')
.then(r => r.data)
.catch(console.log)