Skip to content

Commit

Permalink
Update telewebion.com.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fraudiay79 authored Jan 14, 2025
1 parent 79162ee commit 733eebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sites/telewebion.com/telewebion.com.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = {
url({ channel, date }) {
return `https://gateway.telewebion.com/kandoo/channel/getChannelEpisodesByDate/?ChannelDescriptor=${channel.site_id}&FromDate=${date.startOf('day').format('YYYY-MM-DDTHH:mm:ss')}&ToDate=${date.endOf('day').format('YYYY-MM-DDTHH:mm:ss')}&IsClip=false&First=24&Offset=0`
},
parser({ content }) {
parser: function ({ content }) {
let programs = []
const items = parseItems(content, channel)
items.forEach(item => {
const data = JSON.parse(content)
data.items.forEach(item => {
if (!item.details) return
const start = dayjs(item.started_at)
const stop = dayjs(item.ended_at)
Expand Down

0 comments on commit 733eebe

Please sign in to comment.