mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-12 07:51:29 +03:00
Fixed bug where if multi-user mode was enabled, old subscriptions would keep downloading and vice versa
This commit is contained in:
@@ -649,6 +649,11 @@ async function watchSubscriptions() {
|
|||||||
|
|
||||||
logger.verbose('Watching ' + sub.name + ' with delay interval of ' + delay_interval);
|
logger.verbose('Watching ' + sub.name + ' with delay interval of ' + delay_interval);
|
||||||
setTimeout(async () => {
|
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);
|
await subscriptions_api.getVideosForSub(sub, sub.user_uid);
|
||||||
subscription_timeouts[sub.id] = false;
|
subscription_timeouts[sub.id] = false;
|
||||||
}, current_delay);
|
}, current_delay);
|
||||||
|
|||||||
Reference in New Issue
Block a user