diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-14 11:11:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-14 11:11:39 +0100 |
commit | 4efa5535ccc947597b7a8e343d6665229ab9cfce (patch) | |
tree | 7d3167499c83a9ef33782d4a120f0f757e919819 /server/initializers/config.ts | |
parent | 0e45e336f62a411b3c423be46d16252355c754d7 (diff) | |
download | PeerTube-4efa5535ccc947597b7a8e343d6665229ab9cfce.tar.gz PeerTube-4efa5535ccc947597b7a8e343d6665229ab9cfce.tar.zst PeerTube-4efa5535ccc947597b7a8e343d6665229ab9cfce.zip |
Fix infinite playlist import
Using an hard videos limit in config
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 7652da24a..3dd1f6971 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -418,6 +418,9 @@ const CONFIG = { | |||
418 | get CHECK_INTERVAL () { return parseDurationToMs(config.get<string>('import.video_channel_synchronization.check_interval')) }, | 418 | get CHECK_INTERVAL () { return parseDurationToMs(config.get<string>('import.video_channel_synchronization.check_interval')) }, |
419 | get VIDEOS_LIMIT_PER_SYNCHRONIZATION () { | 419 | get VIDEOS_LIMIT_PER_SYNCHRONIZATION () { |
420 | return config.get<number>('import.video_channel_synchronization.videos_limit_per_synchronization') | 420 | return config.get<number>('import.video_channel_synchronization.videos_limit_per_synchronization') |
421 | }, | ||
422 | get FULL_SYNC_VIDEOS_LIMIT () { | ||
423 | return config.get<number>('import.video_channel_synchronization.full_sync_videos_limit') | ||
421 | } | 424 | } |
422 | } | 425 | } |
423 | }, | 426 | }, |