1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-26 09:48:37 +00:00

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

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)