From 6b79fad62628237d13fb6e1f9eae36fdaef8d8b4 Mon Sep 17 00:00:00 2001 From: ShyPike Date: Mon, 5 Nov 2012 19:19:32 +0100 Subject: [PATCH] Remove version check when looking for a running instance of SABnzbd. This will lower the chance of inadvertently launching multiple instances. User will need to use --new to force a new instance. --- SABnzbd.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SABnzbd.py b/SABnzbd.py index f997217..400f5f5 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -691,10 +691,7 @@ def is_sabnzbd_running(url): try: url = '%s&mode=version' % (url) ver = sabnzbd.newsunpack.get_from_url(url) - if ver and ver.strip(' \n\r\t') == sabnzbd.__version__: - return True - else: - return False + return True except: return False @@ -714,7 +711,7 @@ def find_free_port(host, currentport): def check_for_sabnzbd(url, upload_nzbs, allow_browser=True): - """ Check for a running instance of sabnzbd(same version) on this port + """ Check for a running instance of sabnzbd on this port allow_browser==True|None will launch the browser, False will not. """ if allow_browser is None: