Skip to content

Commit

Permalink
Fix KAT categories, prevent bug in other providers related to search
Browse files Browse the repository at this point in the history
  • Loading branch information
steeve committed Feb 26, 2014
1 parent c740bfc commit 5a00c37
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/site-packages/xbmctorrent/scrapers/bitsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ def bitsnoop_search():
if not query:
query = plugin.keyboard("", "XBMCtorrent - Bitsnoop - Search")
if query:
plugin.redirect(plugin.url_for("bitsnoop_page", root="/search/video/%s/c/d/" % urllib.quote_plus("%s safe:no" % query), page=1, **plugin.request.args_dict))
plugin.redirect(plugin.url_for("bitsnoop_page", root="/search/video/%s/c/d/" % urllib.quote("%s safe:no" % query, safe=""), page=1, **plugin.request.args_dict))
2 changes: 1 addition & 1 deletion resources/site-packages/xbmctorrent/scrapers/kickass.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ def kat_search():
if not query:
query = plugin.keyboard("", "XBMCtorrent - Kickass Torrent - Search")
if query:
plugin.redirect(plugin.url_for("kat_page", root="usearch/%s/" % urllib.quote_plus("%s %s verified:1" % (query, suffix)), page=1, **plugin.request.args_dict))
plugin.redirect(plugin.url_for("kat_page", root="usearch/%s" % urllib.quote("%s %s verified:1" % (query, suffix), safe=""), page=1, **plugin.request.args_dict))
2 changes: 1 addition & 1 deletion resources/site-packages/xbmctorrent/scrapers/tpb.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ def piratebay_search():
else:
query = plugin.keyboard("", "XBMCtorrent - The Pirate Bay - Search")
if query:
plugin.redirect(plugin.url_for("piratebay_page", root="/search/%s" % urllib.quote_plus(query), page=0))
plugin.redirect(plugin.url_for("piratebay_page", root="/search/%s" % urllib.quote(query, safe=""), page=0))
1 change: 0 additions & 1 deletion resources/site-packages/xbmctorrent/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@memoize
def tmdb_config():
from xbmctorrent.utils import url_get_json

return url_get_json("%s/configuration" % BASE_URL, params={"api_key": API_KEY}, headers=HEADERS, with_immunicity=False)


Expand Down

0 comments on commit 5a00c37

Please sign in to comment.