mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 18:37:17 -05:00
Fixes linter issues
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Country, Subdivision, Stream, Playlist } from '../models'
|
||||
import { Country, Stream, Playlist } from '../models'
|
||||
import { Collection, Storage, File } from '@freearhey/core'
|
||||
import { PUBLIC_DIR } from '../constants'
|
||||
import { Generator } from './generator'
|
||||
|
||||
@@ -23,7 +23,7 @@ export class RawGenerator implements Generator {
|
||||
async generate() {
|
||||
const files = this.streams.groupBy((stream: Stream) => stream.getFilename())
|
||||
|
||||
for (let filename of files.keys()) {
|
||||
for (const filename of files.keys()) {
|
||||
const streams = new Collection(files.get(filename)).map((stream: Stream) => {
|
||||
const groupTitle = stream.getCategoryNames().join(';')
|
||||
if (groupTitle) stream.groupTitle = groupTitle
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SourcesGenerator implements Generator {
|
||||
async generate() {
|
||||
const files: Dictionary = this.streams.groupBy((stream: Stream) => stream.getFilename())
|
||||
|
||||
for (let filename of files.keys()) {
|
||||
for (const filename of files.keys()) {
|
||||
if (!filename) continue
|
||||
|
||||
let streams = new Collection(files.get(filename))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Country, Subdivision, Stream, Playlist } from '../models'
|
||||
import { Subdivision, Stream, Playlist } from '../models'
|
||||
import { Collection, Storage, File } from '@freearhey/core'
|
||||
import { PUBLIC_DIR } from '../constants'
|
||||
import { Generator } from './generator'
|
||||
|
||||
Reference in New Issue
Block a user