Use proper bitsoup variable

This commit is contained in:
Ruud
2014-08-27 21:45:53 +02:00
parent a6063b0665
commit 77e602f359
@@ -21,10 +21,10 @@ class Base(TorrentProvider):
http_time_between_calls = 1 # Seconds http_time_between_calls = 1 # Seconds
only_tables_tags = SoupStrainer('table') only_tables_tags = SoupStrainer('table')
torrent_name_cell = 1; torrent_name_cell = 1
torrent_download_cell = 2; torrent_download_cell = 2
def _searchOnTitle(self, title, movie, quality, results): def _searchOnTitle(self, title, movie, quality, results):
url = self.urls['search'] % self.buildUrl(title, movie, quality) url = self.urls['search'] % self.buildUrl(title, movie, quality)
@@ -43,8 +43,8 @@ class Base(TorrentProvider):
all_cells = result.find_all('td') all_cells = result.find_all('td')
torrent = all_cells[torrent_name_cell].find('a') torrent = all_cells[self.torrent_name_cell].find('a')
download = all_cells[torrent_download_cell].find('a') download = all_cells[self.torrent_download_cell].find('a')
torrent_id = torrent['href'] torrent_id = torrent['href']
torrent_id = torrent_id.replace('details.php?id=', '') torrent_id = torrent_id.replace('details.php?id=', '')