fixed awilime config & channels grab, new channels list

This commit is contained in:
theofficialomega
2025-08-17 17:52:11 +02:00
parent 9aec218f12
commit a23e6302a6
3 changed files with 13 additions and 8 deletions
+6 -1
View File
@@ -8,6 +8,11 @@ module.exports = {
url({ channel, date }) {
return `https://www.awilime.com/tv/napi_musor/${channel.site_id}/${date.format('YYYY_MM_DD')}`
},
request: {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36'
}
},
parser({ content, date }) {
const programs = []
const items = parseItems(content)
@@ -34,7 +39,7 @@ module.exports = {
},
async channels() {
const html = await axios
.get('https://www.awilime.com/tv/napi_musor')
.get('https://www.awilime.com/tv/napi_musor', { headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36' } })
.then(r => r.data)
.catch(console.log)
const $ = cheerio.load(html)