diff --git a/couchpotato/core/media/_base/providers/torrent/bitsoup.py b/couchpotato/core/media/_base/providers/torrent/bitsoup.py index ad603575..f4e256e6 100644 --- a/couchpotato/core/media/_base/providers/torrent/bitsoup.py +++ b/couchpotato/core/media/_base/providers/torrent/bitsoup.py @@ -21,10 +21,10 @@ class Base(TorrentProvider): http_time_between_calls = 1 # Seconds only_tables_tags = SoupStrainer('table') - - torrent_name_cell = 1; - torrent_download_cell = 2; - + + torrent_name_cell = 1 + torrent_download_cell = 2 + def _searchOnTitle(self, title, movie, quality, results): url = self.urls['search'] % self.buildUrl(title, movie, quality) @@ -43,8 +43,8 @@ class Base(TorrentProvider): all_cells = result.find_all('td') - torrent = all_cells[torrent_name_cell].find('a') - download = all_cells[torrent_download_cell].find('a') + torrent = all_cells[self.torrent_name_cell].find('a') + download = all_cells[self.torrent_download_cell].find('a') torrent_id = torrent['href'] torrent_id = torrent_id.replace('details.php?id=', '')