mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
finish lo-ditching and update deps
This commit is contained in:
@@ -3,6 +3,7 @@ const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const uniqBy = require('../../scripts/functions')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
@@ -42,7 +43,6 @@ module.exports = {
|
||||
},
|
||||
async channels() {
|
||||
const axios = require('axios')
|
||||
const _ = require('lodash')
|
||||
|
||||
const providers = ['-1', '-2', '-3', '-4', '-5']
|
||||
|
||||
@@ -77,7 +77,7 @@ module.exports = {
|
||||
})
|
||||
}
|
||||
|
||||
return _.uniqBy(channels, 'site_id')
|
||||
return uniqBy(channels, x => x.site_id)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user