mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update artonline.tv.config.js
This commit is contained in:
parent
48bdfc2a58
commit
cf661ddf4a
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
headers: {
|
||||
'content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: function({ date }) {
|
||||
data: function ({ date }) {
|
||||
const diff = date.diff(dayjs.utc().startOf('d'), 'd')
|
||||
const params = new URLSearchParams()
|
||||
params.append('objId', diff)
|
||||
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
},
|
||||
parser: function ({ content }) {
|
||||
const programs = []
|
||||
if(!content) return programs
|
||||
if (!content) return programs
|
||||
const items = JSON.parse(content)
|
||||
items.forEach(item => {
|
||||
const icon = parseIcon(item)
|
||||
|
@ -51,7 +51,7 @@ function parseStart(item) {
|
|||
const [_, M, D, YYYY] = item.adddate.match(/(\d+)\/(\d+)\/(\d+) /)
|
||||
const [HH, mm] = item.start_Time.split(':')
|
||||
|
||||
return dayjs(`${YYYY}-${M}-${D}T${HH}:${mm}:00`, 'YYYY-M-DTHH:mm:ss', 'Asia/Riyadh')
|
||||
return dayjs.tz(`${YYYY}-${M}-${D}T${HH}:${mm}:00`, 'YYYY-M-DTHH:mm:ss', 'Asia/Riyadh')
|
||||
}
|
||||
|
||||
function parseDuration(item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue