This commit is contained in:
GreenSnakeLinux
2025-06-26 19:08:55 +02:00
parent 3c47aaf9cd
commit 35a99088d7
3 changed files with 118 additions and 122 deletions
@@ -9,7 +9,7 @@ module.exports = {
.add(1, 'd')
.valueOf()}&after=${channel.site_id}&limit=1`
},
parser: function ({ content, channel }) {
async parser({ content, channel }) {
let programs = []
const items = parseItems(content, channel)
@@ -20,7 +20,7 @@ module.exports = {
let itemDetails = null
if (url) {
try {
const response = axios.get(url, {}, {
const response = await axios.get(url, {}, {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
@@ -48,7 +48,6 @@ module.exports = {
country: itemDetails?.productionCountries
})
}
return programs
},
async channels() {