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:
12948
package-lock.json
generated
12948
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
39
package.json
39
package.json
@@ -39,28 +39,27 @@
|
||||
"dependencies": {
|
||||
"@alex_neo/jest-expect-message": "^1.0.5",
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@eslint/js": "^9.30.0",
|
||||
"@freearhey/core": "^0.8.2",
|
||||
"@eslint/js": "^9.31.0",
|
||||
"@freearhey/core": "^0.10.2",
|
||||
"@freearhey/search-js": "^0.1.2",
|
||||
"@ntlab/sfetch": "^1.2.0",
|
||||
"@octokit/core": "^7.0.2",
|
||||
"@octokit/core": "^7.0.3",
|
||||
"@octokit/plugin-paginate-rest": "^13.1.1",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^16.0.0",
|
||||
"@swc/core": "^1.12.7",
|
||||
"@swc/jest": "^0.2.38",
|
||||
"@swc/core": "^1.13.0",
|
||||
"@swc/jest": "^0.2.39",
|
||||
"@types/cli-progress": "^3.11.6",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/inquirer": "^9.0.8",
|
||||
"@types/jest": "^30.0.0",
|
||||
"@types/langs": "^2.0.5",
|
||||
"@types/lodash": "^4.17.19",
|
||||
"@types/node": "^24.0.7",
|
||||
"@types/node": "^24.0.15",
|
||||
"@types/node-cleanup": "^2.1.5",
|
||||
"@types/numeral": "^2.0.5",
|
||||
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
||||
"@typescript-eslint/parser": "^8.35.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
||||
"@typescript-eslint/parser": "^8.37.0",
|
||||
"axios": "^1.10.0",
|
||||
"axios-cookiejar-support": "^6.0.2",
|
||||
"axios-cookiejar-support": "^6.0.4",
|
||||
"chalk": "^5.4.1",
|
||||
"cheerio": "^1.1.0",
|
||||
"cli-progress": "^3.12.0",
|
||||
@@ -70,23 +69,22 @@
|
||||
"csv-parser": "^3.2.0",
|
||||
"cwait": "^1.1.2",
|
||||
"dayjs": "^1.11.13",
|
||||
"epg-grabber": "^0.38.0",
|
||||
"epg-grabber": "^0.41.0",
|
||||
"epg-parser": "^0.3.1",
|
||||
"eslint": "^9.30.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"form-data": "^4.0.3",
|
||||
"eslint": "^9.31.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"form-data": "^4.0.4",
|
||||
"fs-extra": "^11.3.0",
|
||||
"glob": "^11.0.3",
|
||||
"globals": "^16.2.0",
|
||||
"globals": "^16.3.0",
|
||||
"husky": "^9.1.7",
|
||||
"iconv-lite": "^0.6.3",
|
||||
"inquirer": "^12.6.3",
|
||||
"jest": "^30.0.3",
|
||||
"inquirer": "^12.7.0",
|
||||
"jest": "^30.0.4",
|
||||
"jest-offline": "^1.0.1",
|
||||
"langs": "^2.0.0",
|
||||
"libxml2-wasm": "^0.5.0",
|
||||
"lodash": "^4.17.21",
|
||||
"luxon": "^3.6.1",
|
||||
"luxon": "^3.7.1",
|
||||
"mockdate": "^3.0.5",
|
||||
"nedb-promises": "^6.2.3",
|
||||
"node-cleanup": "^2.1.2",
|
||||
@@ -112,6 +110,5 @@
|
||||
"unzipit": "^1.4.3",
|
||||
"uuid": "^11.1.0",
|
||||
"wildcard-match": "^5.1.4"
|
||||
},
|
||||
"packageManager": "yarn@4.9.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
const _ = require('lodash')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
@@ -62,5 +61,5 @@ function parseItems(content) {
|
||||
if (!content) return []
|
||||
const data = JSON.parse(content)
|
||||
|
||||
return _.flatten(Object.values(data.result))
|
||||
return Object.values(data.result).flat()
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const doFetch = require('@ntlab/sfetch')
|
||||
const debug = require('debug')('site:sky.com')
|
||||
const _ = require('lodash')
|
||||
const { sortBy } = require('../../scripts/functions')
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
||||
@@ -26,7 +26,7 @@ module.exports = {
|
||||
.filter(schedule => schedule.sid === channel.site_id)
|
||||
.forEach(schedule => {
|
||||
if (Array.isArray(schedule.events)) {
|
||||
_.sortBy(schedule.events, 'st').forEach(event => {
|
||||
sortBy(schedule.events, p => p.st).forEach(event => {
|
||||
const start = dayjs.utc(event.st * 1000)
|
||||
if (start.isSame(date, 'd')) {
|
||||
const image = `https://images.metadata.sky.com/pd-image/${event.programmeuuid}/16-9/640`
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
const cheerio = require('cheerio')
|
||||
const axios = require('axios')
|
||||
const { DateTime } = require('luxon')
|
||||
const { uniqBy } = require('../../scripts/functions')
|
||||
|
||||
module.exports = {
|
||||
site: 'tvhebdo.com',
|
||||
@@ -34,7 +35,6 @@ module.exports = {
|
||||
return programs
|
||||
},
|
||||
async channels() {
|
||||
const _ = require('lodash')
|
||||
|
||||
let items = []
|
||||
const offsets = [
|
||||
@@ -72,7 +72,7 @@ module.exports = {
|
||||
})
|
||||
})
|
||||
|
||||
return _.uniqBy(channels, 'site_id')
|
||||
return uniqBy(channels, x => x.site_id)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = ['-9000019', '-8000019', '-1000019', '-2000019', '-7000019']
|
||||
|
||||
@@ -77,7 +77,7 @@ module.exports = {
|
||||
})
|
||||
}
|
||||
|
||||
return _.uniqBy(channels, 'site_id')
|
||||
return uniqBy(channels, x => x.site_id)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const axios = require('axios')
|
||||
const dayjs = require('dayjs')
|
||||
const _ = require('lodash')
|
||||
const { uniqBy } = require('../../scripts/functions')
|
||||
|
||||
module.exports = {
|
||||
site: 'tvmusor.hu',
|
||||
@@ -77,5 +77,5 @@ function parseItems(content, channel, date) {
|
||||
const blockId = `${channel.site_id}_${date.format('YYYY-MM-DD')}`
|
||||
if (!Array.isArray(blocks[blockId])) return []
|
||||
|
||||
return _.uniqBy(_.uniqBy(blocks[blockId], 'e'), 'b')
|
||||
return uniqBy(uniqBy(blocks[blockId], a => a.e), b => b.b)
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ const axios = require('axios')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const { upperCase } = require('lodash')
|
||||
|
||||
let X_CSRFTOKEN
|
||||
let Cookie
|
||||
@@ -56,7 +55,7 @@ module.exports = {
|
||||
directors: parseDirectors(item),
|
||||
producers: parseProducers(item),
|
||||
adapters: parseAdapters(item),
|
||||
country: upperCase(item.country),
|
||||
country: item.country?.toUpperCase(),
|
||||
date: item.producedate,
|
||||
urls: parseUrls(item)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user