Fix infinite playlist import

Using an hard videos limit in config
This commit is contained in:
Chocobozzz
2022-11-14 11:11:39 +01:00
parent 0e45e336f6
commit 4efa5535cc
8 changed files with 56 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ export async function processVideoChannelImport (job: Job) {
await synchronizeChannel({
channel: videoChannel,
externalChannelUrl: payload.externalChannelUrl,
channelSync
channelSync,
videosCountLimit: CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.FULL_SYNC_VIDEOS_LIMIT
})
}

View File

@@ -12,8 +12,8 @@ import { ServerConfigManager } from './server-config-manager'
export async function synchronizeChannel (options: {
channel: MChannelAccountDefault
externalChannelUrl: string
videosCountLimit: number
channelSync?: MChannelSync
videosCountLimit?: number
onlyAfter?: Date
}) {
const { channel, externalChannelUrl, videosCountLimit, onlyAfter, channelSync } = options