Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Win32: Fix registration of SABnzbd url in the user registry. This mad…

…e the NZB association go wrong.
  • Loading branch information...
commit aefdcd7cd6d45b67a814d1fd7520eaa9531363f2 1 parent f95ce2b
shypike shypike authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  SABnzbd.py
  2. +4 −0 util/apireg.py
2  SABnzbd.py
View
@@ -1382,7 +1382,7 @@ def main():
mail = None
else:
# Write URL directly to registry
- set_connection_info(url)
+ set_connection_info(api_url)
# Have to keep this running, otherwise logging will terminate
timer = 0
4 util/apireg.py
View
@@ -68,6 +68,10 @@ def set_connection_info(url, user=True):
section, keypath = reg_info(user)
try:
hive = _winreg.ConnectRegistry(None, section)
+ try:
+ key = _winreg.CreateKey(hive, keypath)
+ except:
+ pass
key = _winreg.OpenKey(hive, keypath)
mykey = _winreg.CreateKey(key, 'api')
_winreg.SetValueEx(mykey, 'url', None, _winreg.REG_SZ, url)
Please sign in to comment.
Something went wrong with that request. Please try again.