Update AnimeBytes required passkey length (#3079)

Allow length of 48 for passkey for future changes in AnimeBytes codebase.
This commit is contained in:
proton-ab 2018-05-08 07:25:04 +02:00 committed by garfield69
parent 6ea2c18384
commit cc13d7edf6
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ namespace Jackett.Common.Indexers
{
LoadValuesFromJson(configJson);
if (configData.Passkey.Value.Length != 32)
throw new Exception("invalid passkey configured: expected length: 32, got " + configData.Passkey.Value.Length.ToString());
if (configData.Passkey.Value.Length != 32 && configData.Passkey.Value.Length != 48)
throw new Exception("invalid passkey configured: expected length: 32 or 48, got " + configData.Passkey.Value.Length.ToString());
var results = await PerformQuery(new TorznabQuery());
if (results.Count() == 0)