def is_sabnzbd_running(url):
 try:
  url = ('%s&mode=version' % url)
  prev = sabnzbd.set_https_verification(False)
  ver = sabnzbd.newsunpack.get_from_url(url)
  sabnzbd.set_https_verification(prev)
  return (ver and (re.search('\\d+\\.\\d+\\.', ver) or (ver.strip() == sabnzbd.__version__)))
 except:
  return False

def is_sabnzbd_running ( url ) : try : url = ( '%s&mode=version' % url ) prev = sabnzbd . set_https_verification ( False ) ver = sabnzbd . newsunpack . get_from_url ( url ) sabnzbd . set_https_verification ( prev ) return ( ver and ( re . search ( '\\d+\\.\\d+\\.' , ver ) or ( ver . strip ( ) == sabnzbd . __version__ ) ) ) except : return False
return true when theres already a sabnzbd instance running .