mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
Merge pull request #2921 from Animenosekai/master
Adding User-Agent for `skyperfectv.co.jp`
This commit is contained in:
@@ -25,15 +25,11 @@ const exported = {
|
|||||||
logo: function ({ channel }) {
|
logo: function ({ channel }) {
|
||||||
return `https://www.skyperfectv.co.jp/library/common/img/channel/icon/basic/m_${channel.site_id.toLowerCase()}.gif`
|
return `https://www.skyperfectv.co.jp/library/common/img/channel/icon/basic/m_${channel.site_id.toLowerCase()}.gif`
|
||||||
},
|
},
|
||||||
// Specific function that permits to gather NSFW channels (needs confirmation)
|
request: {
|
||||||
async fetchSchedule({ date, channel }) {
|
headers: {
|
||||||
const url = exported.url({ date, channel })
|
Cookie: 'adult_auth=true',
|
||||||
const response = await axios.get(url, {
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36'
|
||||||
headers: {
|
}
|
||||||
Cookie: 'adult_auth=true'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return response.data
|
|
||||||
},
|
},
|
||||||
parser({ content, date }) {
|
parser({ content, date }) {
|
||||||
const $ = cheerio.load(content)
|
const $ = cheerio.load(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user