mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix infinite playlist import
Using an hard videos limit in config
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user