mirror of
https://github.com/iptv-org/epg
synced 2026-05-06 17:37:06 -04:00
Merge pull request #3123 from iptv-org/update-clickthecity.com
Update clickthecity.com
This commit is contained in:
@@ -19,10 +19,7 @@ module.exports = {
|
||||
},
|
||||
data({ date }) {
|
||||
const params = new URLSearchParams()
|
||||
params.append(
|
||||
'optDate',
|
||||
dayjs(date.valueOf()).tz('Asia/Manila').format('YYYY-MM-DD')
|
||||
)
|
||||
params.append('optDate', dayjs(date.valueOf()).tz('Asia/Manila').format('YYYY-MM-DD'))
|
||||
params.append('optTime', '00:00:00')
|
||||
|
||||
return params
|
||||
@@ -79,7 +76,7 @@ function parseStart($item, date) {
|
||||
const url = $item('td.cPrg > a').attr('href') || ''
|
||||
let [, time] = url.match(/starttime=(\d{1,2}%3A\d{2}\+(AM|PM))/) || [null, null]
|
||||
if (!time) return null
|
||||
time = `${date.format('YYYY-MM-DD')} ${time.replace('%3A', ':').replace('+', ' ')}`
|
||||
time = `${date.format('YYYY-MM-DD')} ${decodeURIComponent(time).replace(/\+/g, ' ')}`
|
||||
|
||||
return dayjs.tz(time, 'YYYY-MM-DD h:mm A', 'Asia/Manila').utc()
|
||||
}
|
||||
@@ -88,7 +85,7 @@ function parseStop($item, date) {
|
||||
const url = $item('td.cPrg > a').attr('href') || ''
|
||||
let [, time] = url.match(/endtime=(\d{1,2}%3A\d{2}\+(AM|PM))/) || [null, null]
|
||||
if (!time) return null
|
||||
time = `${date.format('YYYY-MM-DD')} ${time.replace('%3A', ':').replace('+', ' ')}`
|
||||
time = `${date.format('YYYY-MM-DD')} ${decodeURIComponent(time).replace(/\+/g, ' ')}`
|
||||
|
||||
return dayjs.tz(time, 'YYYY-MM-DD h:mm A', 'Asia/Manila').utc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user