mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update musor.tv.config.js
This commit is contained in:
@@ -10,9 +10,7 @@ dayjs.extend(customParseFormat)
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'musor.tv',
|
site: 'musor.tv',
|
||||||
url({ channel, date }) {
|
url({ channel, date }) {
|
||||||
const diff = date.diff(dayjs.utc().startOf('d'), 'd')
|
return dayjs.utc().isSame(date, 'd')
|
||||||
|
|
||||||
return diff === 0
|
|
||||||
? `https://musor.tv/mai/tvmusor/${channel.site_id}`
|
? `https://musor.tv/mai/tvmusor/${channel.site_id}`
|
||||||
: `https://musor.tv/napi/tvmusor/${channel.site_id}/${date.format('YYYY.MM.DD')}`
|
: `https://musor.tv/napi/tvmusor/${channel.site_id}/${date.format('YYYY.MM.DD')}`
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user