Update scripts

This commit is contained in:
freearhey
2025-07-17 17:43:00 +03:00
parent 35a4b24bce
commit 2787186700
8 changed files with 44 additions and 15 deletions

View File

@@ -35,8 +35,10 @@ export class QueueCreator {
const channelsContent = await this.dataStorage.json('channels.json')
const channels = new Collection(channelsContent).map(data => new Channel(data))
let index = 0
const queue = new Queue()
for (const channel of this.parsedChannels.all()) {
channel.index = index++
if (!channel.site || !channel.site_id || !channel.name) continue
const configPath = path.resolve(SITES_DIR, `${channel.site}/${channel.site}.config.js`)