diff --git a/CHANGES.md b/CHANGES.md index 6ee3b63b..7be4d68f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,7 +13,7 @@ * Add priority, device, and sound support to Pushover notifier (port from midgetspy/sickbeard) [develop changelog] - +* Fix traceback error when using the menu item Manage/Update Kodi ### 0.7.0 (2015-02-23 11:02:00 UTC) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 6b7b05c7..8953625b 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -1050,7 +1050,7 @@ class Home(MainHandler): showObj.name.encode('utf-8')), 'requires': self.haveXBMC}) t.submenu.append({'title': 'Update show in Kodi', 'path': 'home/updateKODI?showName=%s' % urllib.quote_plus( - showObj.name.encode('utf-8')), 'requires': haveKODI}) + showObj.name.encode('utf-8')), 'requires': self.haveKODI}) t.submenu.append({'title': 'Preview Rename', 'path': 'home/testRename?show=%d' % showObj.indexerid}) if sickbeard.USE_SUBTITLES and not sickbeard.showQueueScheduler.action.isBeingSubtitled( showObj) and showObj.subtitles: @@ -1443,7 +1443,7 @@ class Home(MainHandler): ui.notifications.message('Library update command sent to Kodi host(s): ' + host) else: ui.notifications.error('Unable to contact one or more Kodi host(s): ' + host) - redirect('/home/') + self.redirect('/home/') def updatePLEX(self, *args, **kwargs): result = notifiers.plex_notifier.update_library()