diff --git a/SABnzbd.py b/SABnzbd.py index 14d9c67..27cce62 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -1362,6 +1362,7 @@ def main(): else: browser_url = "http://%s:%s/sabnzbd" % (browserhost, cherryport) + sabnzbd.BROWSER_URL = browser_url if not autorestarted: launch_a_browser(browser_url) notify("SAB_Launched", None) diff --git a/sabnzbd/__init__.py b/sabnzbd/__init__.py index aee1840..78952a1 100644 --- a/sabnzbd/__init__.py +++ b/sabnzbd/__init__.py @@ -114,6 +114,7 @@ GUIHANDLER = None LOG_ALL = False AMBI_LOCALHOST = False WIN_SERVICE = None # Instance of our Win32 Service Class +BROWSER_URL = None WEB_DIR = None WEB_DIR2 = None diff --git a/sabnzbd/osxmenu.py b/sabnzbd/osxmenu.py index 39fd769..dbf1e41 100644 --- a/sabnzbd/osxmenu.py +++ b/sabnzbd/osxmenu.py @@ -652,8 +652,7 @@ class SABnzbdDelegate(NSObject): link = sender.representedObject() else: link = "" - #logging.info("[osx] opening http://%s:%s/sabnzbd/%s" % (sabnzbd.cfg.CHERRYHOST(), sabnzbd.cfg.CHERRYPORT(),link)) - launch_a_browser("http://%s:%s/sabnzbd/%s" % (sabnzbd.cfg.cherryhost(), sabnzbd.cfg.cherryport(),link),True) + launch_a_browser(sabnzbd.BROWSER_URL, True) def speedlimitAction_(self, sender): #logging.info("[osx] speed limit to %s" % (sender.representedObject()))