diff --git a/src/Jackett.Common/Indexers/BaseIndexer.cs b/src/Jackett.Common/Indexers/BaseIndexer.cs index bc57c7a6c..5de942fc3 100644 --- a/src/Jackett.Common/Indexers/BaseIndexer.cs +++ b/src/Jackett.Common/Indexers/BaseIndexer.cs @@ -193,7 +193,7 @@ namespace Jackett.Common.Indexers if (!isWindows && dotNetVersion.Major < 4) { - // User isn't running Windows, but is running on .NET Core framewrok, no access to the DPAPI, so don't bother trying to migrate + // User isn't running Windows, but is running on .NET Core framework, no access to the DPAPI, so don't bother trying to migrate return false; } @@ -223,7 +223,12 @@ namespace Jackett.Common.Indexers } catch (Exception ex) { - logger.Info("Password could not be unprotected using Microsoft.AspNetCore.DataProtection, trying legacy: " + ex.ToString()); + if (ex.Message != "The provided payload cannot be decrypted because it was not protected with this protection provider.") + { + logger.Info($"Password could not be unprotected using Microsoft.AspNetCore.DataProtection - {ID} : " + ex); + } + + logger.Info($"Attempting legacy Unprotect - {ID} : "); try { @@ -234,11 +239,13 @@ namespace Jackett.Common.Indexers SaveConfig(); IsConfigured = true; + logger.Info($"Password successfully migrated for {ID}"); + return true; } catch (Exception exception) { - logger.Info("Password could not be unprotected using legacy DPAPI: " + exception.ToString()); + logger.Info($"Password could not be unprotected using legacy DPAPI - {ID} : " + exception); } } }