From efdc471ccf51ce5c52e7ac792b047dd7dba5f171 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Mon, 29 Jun 2020 23:23:31 -0400 Subject: [PATCH] Fixed bug where if multi-user mode was enabled, old subscriptions would keep downloading and vice versa --- backend/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/app.js b/backend/app.js index a54febe..787a6c2 100644 --- a/backend/app.js +++ b/backend/app.js @@ -649,6 +649,11 @@ async function watchSubscriptions() { logger.verbose('Watching ' + sub.name + ' with delay interval of ' + delay_interval); setTimeout(async () => { + const multiUserModeChanged = config_api.getConfigItem('ytdl_multi_user_mode') !== multiUserMode; + if (multiUserModeChanged) { + logger.verbose(`Skipping subscription ${sub.name} due to multi-user mode change.`); + return; + } await subscriptions_api.getVideosForSub(sub, sub.user_uid); subscription_timeouts[sub.id] = false; }, current_delay);