Merge pull request #2921 from Animenosekai/master

Adding User-Agent for `skyperfectv.co.jp`
This commit is contained in:
Ismaël Moret
2025-11-09 00:45:18 +01:00
committed by GitHub

View File

@@ -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)