[update] change back the URLs

This commit is contained in:
Animenosekai 2024-08-25 16:37:26 +02:00
parent 74e40a8e6d
commit f641443a9d
3 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
# skyperfectv.co.jp
<https://skyperfectv.co.jp>
<https://www.skyperfectv.co.jp>
## Index

View file

@ -18,11 +18,11 @@ module.exports = {
url: function ({ date, channel }) {
let [type, ...code] = channel.site_id.split('_')
code = code.join('_')
console.log(`https://skyperfectv.co.jp/program/schedule/${type}/channel:${code}/date:${date.format('YYMMDD')}`)
return `https://skyperfectv.co.jp/program/schedule/${type}/channel:${code}/date:${date.format('YYMMDD')}`
console.log(`https://www.skyperfectv.co.jp/program/schedule/${type}/channel:${code}/date:${date.format('YYMMDD')}`)
return `https://www.skyperfectv.co.jp/program/schedule/${type}/channel:${code}/date:${date.format('YYMMDD')}`
},
logo: function ({channel}) {
return `https://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`
},
parser: function ({ content, date }) {
const $ = cheerio.load(content)
@ -89,7 +89,7 @@ module.exports = {
}
const getChannels = async (type) => {
const response = await axios.get(`https://skyperfectv.co.jp/program/schedule/${type}/`)
const response = await axios.get(`https://www.skyperfectv.co.jp/program/schedule/${type}/`)
return pageParser(response.data, type)
}

File diff suppressed because one or more lines are too long