Fixes linter issues

This commit is contained in:
freearhey
2025-07-29 04:01:22 +03:00
parent 685940428c
commit 37cfc2cc12
7 changed files with 9 additions and 9 deletions

View File

@@ -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'

View File

@@ -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

View File

@@ -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))

View File

@@ -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'