mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
add organize now/sync prepare buttons
This commit is contained in:
@@ -411,6 +411,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
catch
|
||||
{
|
||||
user.Policy.EnabledFolders = new string[] { };
|
||||
user.Policy.EnableAllFolders = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -419,6 +420,12 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
user.Policy.EnabledFolders = new string[] { };
|
||||
}
|
||||
|
||||
// Just to be safe
|
||||
if (user.Policy.EnabledFolders.Length == 0)
|
||||
{
|
||||
user.Policy.EnableAllFolders = true;
|
||||
}
|
||||
|
||||
user.Policy.BlockedMediaFolders = null;
|
||||
|
||||
await UpdateUserPolicy(user, user.Policy, false);
|
||||
|
||||
Reference in New Issue
Block a user