From 57cc63da98601c5e8bcdfc35e7171b1ca6c7bd30 Mon Sep 17 00:00:00 2001 From: whitter Date: Wed, 14 Dec 2016 15:52:50 +0000 Subject: [PATCH] Updated TorrentLeech provider for new site version The new version of the TorrentLeech website now has absolute paths for the download links --- couchpotato/core/media/_base/providers/torrent/torrentleech.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/media/_base/providers/torrent/torrentleech.py b/couchpotato/core/media/_base/providers/torrent/torrentleech.py index da13822..ffe41f6 100644 --- a/couchpotato/core/media/_base/providers/torrent/torrentleech.py +++ b/couchpotato/core/media/_base/providers/torrent/torrentleech.py @@ -50,7 +50,7 @@ class Base(TorrentProvider): results.append({ 'id': link['href'].replace('/torrent/', ''), 'name': six.text_type(link.string), - 'url': self.urls['download'] % url['href'], + 'url': url['href'], 'detail_url': self.urls['download'] % details['href'], 'size': self.parseSize(result.find_all('td')[4].string), 'seeders': tryInt(result.find('td', attrs = {'class': 'seeders'}).string),