mirror of
https://github.com/iptv-org/epg
synced 2026-09-10 13:56:51 -04:00
fix 2
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user