Private GIT

Skip to content
Snippets Groups Projects
Commit 917c540a authored by Fernando's avatar Fernando Committed by Dustyn Gibson
Browse files
parent 4825e1b5
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
import datetime
import generic
import json
from urllib import quote
from urllib import quote_plus
from sickbeard import logger
from sickbeard import tvcache
......@@ -59,7 +59,7 @@ class TORRENTPROJECTProvider(generic.TorrentProvider):
if mode != 'RSS':
logger.log(u"Search string: %s " % search_string, logger.DEBUG)
searchURL = self.urls['api'] + "?s=%s&out=json" % quote(search_string)
searchURL = self.urls['api'] + "?s=%s&out=json" % quote_plus(search_string.encode('utf-8'))
logger.log(u"Search URL: %s" % searchURL, logger.DEBUG)
torrents = self.getURL(searchURL, json=True)
if not (torrents and "total_found" in torrents and int(torrents["total_found"]) > 0):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment