From c7bc25b84776e30422020d11b41df89b8e0f6e83 Mon Sep 17 00:00:00 2001 From: shypike Date: Sat, 13 Feb 2016 16:11:17 +0100 Subject: [PATCH] Disable https verification when uploading NZB to running instance of SABnzbd. --- SABnzbd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SABnzbd.py b/SABnzbd.py index 68392f7..6c2a624 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -746,8 +746,10 @@ def check_for_sabnzbd(url, upload_nzbs, allow_browser=True): # Upload any specified nzb files to the running instance if upload_nzbs: from sabnzbd.utils.upload import upload_file + prev = sabnzbd.set_https_verification(0) for f in upload_nzbs: upload_file(url, f) + sabnzbd.set_https_verification(prev) else: # Launch the web browser and quit since sabnzbd is already running # Trim away everything after the final slash in the URL