mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update osn.com.config.js
This commit is contained in:
parent
01e2197435
commit
813aeaf390
1 changed files with 21 additions and 5 deletions
|
@ -5,10 +5,6 @@ const timezone = require('dayjs/plugin/timezone')
|
||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
dayjs.extend(timezone)
|
dayjs.extend(timezone)
|
||||||
|
|
||||||
const tz = {
|
|
||||||
AE: 'Asia/Dubai'
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'osn.com',
|
site: 'osn.com',
|
||||||
request: {
|
request: {
|
||||||
|
@ -22,7 +18,8 @@ module.exports = {
|
||||||
isMobile: false,
|
isMobile: false,
|
||||||
hoursForMobile: 0
|
hoursForMobile: 0
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
jar: null
|
||||||
},
|
},
|
||||||
url: function () {
|
url: function () {
|
||||||
return `https://www.osn.com/CMSPages/TVScheduleWebService.asmx/GetTVChannelsProgramTimeTable`
|
return `https://www.osn.com/CMSPages/TVScheduleWebService.asmx/GetTVChannelsProgramTimeTable`
|
||||||
|
@ -58,6 +55,25 @@ function parseDuration(item) {
|
||||||
function parseStart(item, channel) {
|
function parseStart(item, channel) {
|
||||||
const time = item.StartDateTime
|
const time = item.StartDateTime
|
||||||
const [selectedCountry] = channel.site_id.split('#')
|
const [selectedCountry] = channel.site_id.split('#')
|
||||||
|
const tz = {
|
||||||
|
AE: 'Asia/Dubai',
|
||||||
|
SA: 'Asia/Riyadh',
|
||||||
|
EG: 'Africa/Cairo',
|
||||||
|
KW: 'Asia/Kuwait',
|
||||||
|
QA: 'Asia/Qatar',
|
||||||
|
BH: 'Asia/Bahrain',
|
||||||
|
OM: 'Asia/Muscat',
|
||||||
|
JO: 'Asia/Amman',
|
||||||
|
LB: 'Asia/Beirut',
|
||||||
|
IQ: 'Asia/Baghdad',
|
||||||
|
AG: 'Africa/Algiers',
|
||||||
|
LY: 'Africa/Tripoli',
|
||||||
|
MA: 'Africa/Casablanca',
|
||||||
|
PS: 'Asia/Gaza',
|
||||||
|
CH: 'Africa/Ndjamena',
|
||||||
|
YE: 'Asia/Aden',
|
||||||
|
MR: 'Africa/Nouakchott'
|
||||||
|
}
|
||||||
|
|
||||||
return dayjs.tz(time, 'DD MMM YYYY, HH:mm', tz[selectedCountry])
|
return dayjs.tz(time, 'DD MMM YYYY, HH:mm', tz[selectedCountry])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue