Fixed: (Shazbat) Simplify conditions for CheckIfLoginNeeded

This commit is contained in:
Bogdan
2023-02-09 12:21:31 +02:00
parent 41a9d2d732
commit 5d09c2b5fa

View File

@@ -93,9 +93,7 @@ public class Shazbat : TorrentIndexerBase<ShazbatSettings>
protected override bool CheckIfLoginNeeded(HttpResponse response)
{
return !response.Content.Contains("onclick=\"document.location='logout'\"") &&
!response.Content.Contains("show_id") && !response.Content.Contains("Filename") &&
!response.Content.Contains("Peers") && !response.Content.Contains("Download");
return response.Content.ContainsIgnoreCase("sign in now");
}
private IndexerCapabilities SetCapabilities()