Fixed: (Gazelle) Don't use usetoken=0 when UseFreeleechToken is not enabled

Fixes #1668
This commit is contained in:
Bogdan
2023-05-18 02:23:52 +03:00
parent b5706a0d55
commit 4c4ebdf17c
8 changed files with 27 additions and 15 deletions
@@ -370,8 +370,6 @@ namespace NzbDrone.Core.Indexers.Definitions
private string GetDownloadUrl(int torrentId, bool canUseToken)
{
// AuthKey is required but not checked, just pass in a dummy variable
// to avoid having to track authkey, which is randomly cycled
var url = new HttpUri(_settings.BaseUrl)
.CombinePath("/ajax.php")
.AddQueryParam("action", "download")