mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Fix linter issues in sites/
This commit is contained in:
parent
d6d20b6413
commit
5df982bb7c
129 changed files with 3316 additions and 3226 deletions
|
@ -48,8 +48,10 @@ function parseItems(context) {
|
|||
schDayPrograms.forEach((program, i) => {
|
||||
const itemDay = {
|
||||
progStart: parseStart($(schDayMonth), $(program)),
|
||||
progStop: parseStop($(schDayMonth), schDayPrograms[i + 1] ?
|
||||
$(schDayPrograms[i + 1]) : null),
|
||||
progStop: parseStop(
|
||||
$(schDayMonth),
|
||||
schDayPrograms[i + 1] ? $(schDayPrograms[i + 1]) : null
|
||||
),
|
||||
progTitle: parseTitle($(program)),
|
||||
progDesc: parseDescription($(program))
|
||||
}
|
||||
|
@ -91,7 +93,9 @@ function parseStop(schDayMonth, itemNext) {
|
|||
)
|
||||
} else {
|
||||
return dayjs.tz(
|
||||
`${currentYear}-${monthDate[0]}-${(parseInt(monthDate[1]) + 1).toString().padStart(2, '0')} 00:00`,
|
||||
`${currentYear}-${monthDate[0]}-${(parseInt(monthDate[1]) + 1)
|
||||
.toString()
|
||||
.padStart(2, '0')} 00:00`,
|
||||
'YYYY-MMM-DD HH:mm',
|
||||
tz
|
||||
)
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue