Browse Source

Disable https verification when uploading NZB to running instance of SABnzbd.

pull/453/merge
shypike 9 years ago
parent
commit
c7bc25b847
  1. 2
      SABnzbd.py

2
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 # Upload any specified nzb files to the running instance
if upload_nzbs: if upload_nzbs:
from sabnzbd.utils.upload import upload_file from sabnzbd.utils.upload import upload_file
prev = sabnzbd.set_https_verification(0)
for f in upload_nzbs: for f in upload_nzbs:
upload_file(url, f) upload_file(url, f)
sabnzbd.set_https_verification(prev)
else: else:
# Launch the web browser and quit since sabnzbd is already running # Launch the web browser and quit since sabnzbd is already running
# Trim away everything after the final slash in the URL # Trim away everything after the final slash in the URL

Loading…
Cancel
Save