Update bitsoup tables

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