From e3fa695ad4a5092e177551f09d60efda9cf69fad Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 16 Mar 2014 21:31:42 +0100 Subject: [PATCH] ThePirateBay don't overwrite search_url --- .../core/media/_base/providers/torrent/thepiratebay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/media/_base/providers/torrent/thepiratebay.py b/couchpotato/core/media/_base/providers/torrent/thepiratebay.py index b0a778ce..42006d12 100644 --- a/couchpotato/core/media/_base/providers/torrent/thepiratebay.py +++ b/couchpotato/core/media/_base/providers/torrent/thepiratebay.py @@ -41,11 +41,11 @@ class Base(TorrentMagnetProvider): total_pages = 1 cats = self.getCatId(quality['identifier']) - search_url = self.urls['search'] % self.getDomain() + base_search_url = self.urls['search'] % self.getDomain() while page < total_pages: - search_url = search_url % self.buildUrl(media, page, cats) + search_url = base_search_url % self.buildUrl(media, page, cats) page += 1