diff --git a/Shoko.Server/Databases/BaseDatabase.cs b/Shoko.Server/Databases/BaseDatabase.cs index e2a43cb3a..906ccb824 100644 --- a/Shoko.Server/Databases/BaseDatabase.cs +++ b/Shoko.Server/Databases/BaseDatabase.cs @@ -242,8 +242,10 @@ public void CreateOrVerifyLockedFilters() private void CreateInitialGroupFilters() { // group filters - - if (RepoFactory.GroupFilter.GetAll().Any()) return; + // Do to DatabaseFixes, some filters may be made, namely directory filters + // All, Continue Watching, Years, Seasons, Tags... 6 seems to be enough to tell for now + // We can't just check the existence of anything specific, as the user can delete most of these + if (RepoFactory.GroupFilter.GetTopLevel().Count() > 6) return; Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(ServerSettings.Culture); diff --git a/Shoko.Server/Models/SVR_VideoLocal_Place.cs b/Shoko.Server/Models/SVR_VideoLocal_Place.cs index 59c72c044..1e753db08 100644 --- a/Shoko.Server/Models/SVR_VideoLocal_Place.cs +++ b/Shoko.Server/Models/SVR_VideoLocal_Place.cs @@ -617,13 +617,9 @@ private bool RenameIfRequired() VideoLocal_Place_ID); return (string.Empty, "ERROR: Unable to access file"); } - // check if this file is in the drop folder - // otherwise we don't need to move it - if (ImportFolder.IsDropSource == 0 && !force) - { - logger.Error("Not moving file as it is NOT in the drop folder: {0}", FullServerPath); - return (string.Empty, "ERROR: Not in drop folder"); - } + + // Normally we'd check for drop source, but we are forcing it here, so let it move + IFileSystem sourcefs = ImportFolder.FileSystem; if (sourcefs == null) {