From e596b7370d8722e49d4db989b304febb29df9263 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Thu, 8 May 2014 17:09:12 +0200 Subject: [PATCH] Add "Manage Torrents" button to home screen --- sickbeard/webserve.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index d5bea869..0bca1197 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -1924,6 +1924,8 @@ def haveXBMC(): def havePLEX(): return sickbeard.USE_PLEX and sickbeard.PLEX_UPDATE_LIBRARY +def haveTORRENT(): + return sickbeard.USE_TORRENTS def HomeMenu(): return [ @@ -1931,6 +1933,7 @@ def HomeMenu(): {'title': 'Manual Post-Processing', 'path': 'home/postprocess/'}, {'title': 'Update XBMC', 'path': 'home/updateXBMC/', 'requires': haveXBMC}, {'title': 'Update Plex', 'path': 'home/updatePLEX/', 'requires': havePLEX}, + {'title': 'Manage Torrents', 'path': '/manage/manageTorrents', 'requires': haveTORRENT}, {'title': 'Restart', 'path': 'home/restart/?pid=' + str(sickbeard.PID), 'confirm': True}, {'title': 'Shutdown', 'path': 'home/shutdown/?pid=' + str(sickbeard.PID), 'confirm': True}, ]