mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
continuing, WIP
This commit is contained in:
@@ -2,7 +2,7 @@ const cheerio = require('cheerio')
|
||||
const dayjs = require('dayjs')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const _ = require('lodash')
|
||||
const { sortBy, uniqBy } = require('../../scripts/functions')
|
||||
|
||||
dayjs.extend(customParseFormat)
|
||||
dayjs.extend(timezone)
|
||||
@@ -29,7 +29,7 @@ module.exports = {
|
||||
})
|
||||
})
|
||||
|
||||
programs = _.orderBy(_.uniqBy(programs, 'start'), 'start')
|
||||
programs = sortBy(uniqBy(programs, p => p.start), 'start')
|
||||
|
||||
return programs
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user