From 4efa5535ccc947597b7a8e343d6665229ab9cfce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Nov 2022 11:11:39 +0100 Subject: Fix infinite playlist import Using an hard videos limit in config --- server/lib/job-queue/handlers/video-channel-import.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/lib/job-queue/handlers') diff --git a/server/lib/job-queue/handlers/video-channel-import.ts b/server/lib/job-queue/handlers/video-channel-import.ts index c3dd8a688..035f88e96 100644 --- a/server/lib/job-queue/handlers/video-channel-import.ts +++ b/server/lib/job-queue/handlers/video-channel-import.ts @@ -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 }) } -- cgit v1.2.3