mirror of https://github.com/iptv-org/iptv
Fixes linter issues
This commit is contained in:
parent
eca33f129b
commit
c4df7f38fd
|
@ -136,7 +136,7 @@ async function selectChannel(
|
|||
}
|
||||
|
||||
async function selectFeed(channelId: string, feedsGroupedByChannelId: Dictionary): Promise<string> {
|
||||
const channelFeeds = new Collection(feedsGroupedByChannelId.get(channelId)) || new Collection()
|
||||
const channelFeeds = new Collection(feedsGroupedByChannelId.get(channelId))
|
||||
const choices = getFeedChoises(channelFeeds)
|
||||
|
||||
const selected: ChoiceValue = await select({
|
||||
|
|
|
@ -63,7 +63,7 @@ async function main() {
|
|||
|
||||
logger.info('saving...')
|
||||
const groupedStreams = streams.groupBy((stream: Stream) => stream.getFilepath())
|
||||
for (let filepath of groupedStreams.keys()) {
|
||||
for (const filepath of groupedStreams.keys()) {
|
||||
const streams = groupedStreams.get(filepath) || []
|
||||
|
||||
if (!streams.length) return
|
||||
|
|
|
@ -18,7 +18,7 @@ const LIVE_UPDATE_MAX_STREAMS = 100
|
|||
|
||||
let errors = 0
|
||||
let warnings = 0
|
||||
let results = {}
|
||||
const results = {}
|
||||
let interval
|
||||
let streams = new Collection()
|
||||
let isLiveUpdateEnabled = true
|
||||
|
|
|
@ -6,7 +6,7 @@ import type { DataLoaderData } from '../../types/dataLoader'
|
|||
import { DATA_DIR, STREAMS_DIR } from '../../constants'
|
||||
import { isURI } from '../../utils'
|
||||
|
||||
let processedIssues = new Collection()
|
||||
const processedIssues = new Collection()
|
||||
|
||||
async function main() {
|
||||
const logger = new Logger({ level: -999 })
|
||||
|
@ -55,7 +55,7 @@ async function main() {
|
|||
|
||||
logger.info('saving...')
|
||||
const groupedStreams = streams.groupBy((stream: Stream) => stream.getFilepath())
|
||||
for (let filepath of groupedStreams.keys()) {
|
||||
for (const filepath of groupedStreams.keys()) {
|
||||
let streams = groupedStreams.get(filepath) || []
|
||||
streams = streams.filter((stream: Stream) => stream.removed === false)
|
||||
|
||||
|
@ -114,7 +114,7 @@ async function editStreams({
|
|||
|
||||
if (data.missing('streamUrl')) return
|
||||
|
||||
let stream: Stream = streams.first(
|
||||
const stream: Stream = streams.first(
|
||||
(_stream: Stream) => _stream.url === data.getString('streamUrl')
|
||||
)
|
||||
if (!stream) return
|
||||
|
|
|
@ -44,7 +44,7 @@ async function main() {
|
|||
|
||||
let errors = new Collection()
|
||||
let warnings = new Collection()
|
||||
let streamsGroupedByFilepath = streams.groupBy((stream: Stream) => stream.getFilepath())
|
||||
const streamsGroupedByFilepath = streams.groupBy((stream: Stream) => stream.getFilepath())
|
||||
for (const filepath of streamsGroupedByFilepath.keys()) {
|
||||
const streams = streamsGroupedByFilepath.get(filepath)
|
||||
if (!streams) continue
|
||||
|
|
Loading…
Reference in New Issue