myAmity: fix login detection

This commit is contained in:
kaso17 2017-08-22 19:15:29 +02:00 committed by kaso17
parent 66b2c20b42
commit 89a28e2e95
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ namespace Jackett.Indexers
searchUrl += "?" + queryCollection.GetQueryString(); searchUrl += "?" + queryCollection.GetQueryString();
var response = await RequestStringWithCookies(searchUrl); var response = await RequestStringWithCookies(searchUrl);
if (response.IsRedirect || response.Cookies.Contains("pass=deleted;")) if (response.IsRedirect || response.Cookies != null && response.Cookies.Contains("pass=deleted;"))
{ {
// re-login // re-login
await ApplyConfiguration(null); await ApplyConfiguration(null);