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

View File

@@ -1,7 +1,7 @@
const dayjs = require('dayjs')
const axios = require('axios')
const apiUrl = `https://programme-tv.vini.pf/programmesJSON`
const apiUrl = 'https://programme-tv.vini.pf/programmesJSON'
module.exports = {
site: 'programme-tv.vini.pf',
@@ -9,7 +9,6 @@ module.exports = {
url: apiUrl,
request: {
method: 'POST',
timeout: 30000,
data({ date }) {
return {
dateDebut: `${date.subtract(10, 'h').format('YYYY-MM-DDTHH:mm:ss')}-10:00`
@@ -44,9 +43,9 @@ module.exports = {
return programs
},
async channels({ country, lang }) {
async channels() {
const data = await axios
.post(`https://programme-tv.vini.pf/programmesJSON`)
.post('https://programme-tv.vini.pf/programmesJSON')
.then(r => r.data)
.catch(console.log)