Update osn.com

This commit is contained in:
Aleksandr Statciuk
2022-02-01 05:23:43 +03:00
parent a99b4ea7a5
commit 69be299373
2 changed files with 3 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ dayjs.extend(timezone)
module.exports = {
site: 'osn.com',
url: `https://www.osn.com/CMSPages/TVScheduleWebService.asmx/GetTVChannelsProgramTimeTable`,
request: {
method: 'POST',
headers: {
@@ -25,14 +26,6 @@ module.exports = {
},
jar: null
},
url: function () {
return `https://www.osn.com/CMSPages/TVScheduleWebService.asmx/GetTVChannelsProgramTimeTable`
},
logo: function ({ channel }) {
const [_, channelCode] = channel.site_id.split('#')
return `https://content.osn.com/logo/channel/cropped/${channelCode}.png`
},
parser: function ({ content, channel }) {
let programs = []
const items = parseItems(content)