From ab8a87b4ec3d1cd5ac95741107d7a0dc2872734e Mon Sep 17 00:00:00 2001 From: Jonathan Putney Date: Tue, 2 Aug 2016 15:40:33 -0400 Subject: [PATCH] Swapping NZBGet HTTP/HTTPS check in URL HTTPS was never being set, because the search was finding 'http' first every time. --- mylar/search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mylar/search.py b/mylar/search.py index 712b788b..70c87d7b 100755 --- a/mylar/search.py +++ b/mylar/search.py @@ -2130,12 +2130,12 @@ def searcher(nzbprov, nzbname, comicinfo, link, IssueID, ComicID, tmpprov, direc #nzb.get if mylar.USE_NZBGET: from xmlrpclib import ServerProxy - if mylar.NZBGET_HOST[:4] == 'http': - tmpapi = "http://" - nzbget_host = mylar.NZBGET_HOST[7:] - elif mylar.NZBGET_HOST[:5] == 'https': + if mylar.NZBGET_HOST[:5] == 'https': tmpapi = "https://" nzbget_host = mylar.NZBGET_HOST[8:] + elif mylar.NZBGET_HOST[:4] == 'http': + tmpapi = "http://" + nzbget_host = mylar.NZBGET_HOST[7:] else: logger.error("You have an invalid nzbget hostname specified. Exiting") return "nzbget-fail"