From 3310bdf5517e7af276c2b95adb2e89e26c563468 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 28 Sep 2013 14:30:20 +0200 Subject: [PATCH] Don't use quotes for torrentshack --- couchpotato/core/providers/torrent/torrentshack/main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/couchpotato/core/providers/torrent/torrentshack/main.py b/couchpotato/core/providers/torrent/torrentshack/main.py index bc7077bb..6b3b5548 100644 --- a/couchpotato/core/providers/torrent/torrentshack/main.py +++ b/couchpotato/core/providers/torrent/torrentshack/main.py @@ -31,14 +31,9 @@ class TorrentShack(TorrentProvider): def _searchOnTitle(self, title, movie, quality, results): - # scene only unset by default - scene_only = "" - if self.conf('scene_only'): - scene_only = "1" + scene_only = '1' if self.conf('scene_only') else '' - url = self.urls['search'] % (tryUrlencode('"%s" %s' % (title.replace(':', ''), movie['library']['year'])), - scene_only, - self.getCatId(quality['identifier'])[0]) + url = self.urls['search'] % (tryUrlencode('%s %s' % (title.replace(':', ''), movie['library']['year'])), scene_only, self.getCatId(quality['identifier'])[0]) data = self.getHTMLData(url, opener = self.login_opener) if data: