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(timezone)
|
||||
|
||||
const tz = {
|
||||
AE: 'Asia/Dubai'
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
site: 'osn.com',
|
||||
request: {
|
||||
|
@ -22,7 +18,8 @@ module.exports = {
|
|||
isMobile: false,
|
||||
hoursForMobile: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
jar: null
|
||||
},
|
||||
url: function () {
|
||||
return `https://www.osn.com/CMSPages/TVScheduleWebService.asmx/GetTVChannelsProgramTimeTable`
|
||||
|
@ -58,6 +55,25 @@ function parseDuration(item) {
|
|||
function parseStart(item, channel) {
|
||||
const time = item.StartDateTime
|
||||
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])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue