From d9c437bd7f8eb2d21aadcdcdd5c82ebafe22f00f Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 17 Dec 2012 19:55:27 +0100 Subject: [PATCH] Fix some torrentleech stuff. closes #1149 --- couchpotato/core/providers/torrent/torrentleech/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/providers/torrent/torrentleech/main.py b/couchpotato/core/providers/torrent/torrentleech/main.py index 0cfc7ce..0f83827 100644 --- a/couchpotato/core/providers/torrent/torrentleech/main.py +++ b/couchpotato/core/providers/torrent/torrentleech/main.py @@ -32,6 +32,7 @@ class TorrentLeech(TorrentProvider): ] http_time_between_calls = 1 #seconds + cat_backup_id = None def search(self, movie, quality): @@ -61,6 +62,7 @@ class TorrentLeech(TorrentProvider): link = result.find('td', attrs = {'class' : 'name'}).find('a') url = result.find('td', attrs = {'class' : 'quickdownload'}).find('a') + details = result.find('td', attrs = {'class' : 'name'}).find('a') new = { 'id': link['href'].replace('/torrent/', ''), @@ -70,6 +72,7 @@ class TorrentLeech(TorrentProvider): 'description': '', 'provider': self.getName(), 'url': self.urls['download'] % url['href'], + 'detail_url': self.urls['download'] % details['href'], 'download': self.loginDownload, 'size': self.parseSize(result.find_all('td')[4].string), 'seeders': tryInt(result.find('td', attrs = {'class' : 'seeders'}).string),