mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
[update] change back the URLs
This commit is contained in:
parent
74e40a8e6d
commit
f641443a9d
3 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
# skyperfectv.co.jp
|
# skyperfectv.co.jp
|
||||||
|
|
||||||
<https://skyperfectv.co.jp>
|
<https://www.skyperfectv.co.jp>
|
||||||
|
|
||||||
## Index
|
## Index
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,11 @@ module.exports = {
|
||||||
url: function ({ date, channel }) {
|
url: function ({ date, channel }) {
|
||||||
let [type, ...code] = channel.site_id.split('_')
|
let [type, ...code] = channel.site_id.split('_')
|
||||||
code = code.join('_')
|
code = code.join('_')
|
||||||
console.log(`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://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}) {
|
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 }) {
|
parser: function ({ content, date }) {
|
||||||
const $ = cheerio.load(content)
|
const $ = cheerio.load(content)
|
||||||
|
@ -89,7 +89,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getChannels = async (type) => {
|
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)
|
return pageParser(response.data, type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue