From 06913ea5173285b396cd9d15358e91e450744cab Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 27 Mar 2014 18:52:11 -0700 Subject: [PATCH] Duplicate code found in rTorrent client module removed --- sickbeard/clients/rtorrent.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/sickbeard/clients/rtorrent.py b/sickbeard/clients/rtorrent.py index 30b19a0f..c6917b45 100644 --- a/sickbeard/clients/rtorrent.py +++ b/sickbeard/clients/rtorrent.py @@ -75,34 +75,6 @@ class rTorrentAPI(GenericClient): except: return False - if not self.auth: - return False - - if not result: - return False - - try: - # Send magnet to rTorrent - torrent = self.auth.load_magnet(result.url, result.hash) - - if not torrent: - return False - - # Set label - if sickbeard.TORRENT_LABEL: - torrent.set_custom(1, sickbeard.TORRENT_LABEL.lower()) - - if sickbeard.TORRENT_PATH: - torrent.set_directory(sickbeard.TORRENT_PATH) - - # Start torrent - torrent.start() - - return True - - except: - return False - def _add_torrent_file(self, result): filedata = None