From 0c9e6fe98c137c3cfb6df340878c8d78fde8de29 Mon Sep 17 00:00:00 2001 From: Anders Eriksen Date: Wed, 19 Jun 2013 18:31:47 +0200 Subject: [PATCH] Fixes #2 Missing url encoding problem. --- source/sickbeardAlfred.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/sickbeardAlfred.py b/source/sickbeardAlfred.py index 80520a9..edd5150 100644 --- a/source/sickbeardAlfred.py +++ b/source/sickbeardAlfred.py @@ -1,6 +1,7 @@ import json import urllib2 import webbrowser +import urllib from alp.settings import Settings from feedback import Feedback @@ -63,6 +64,7 @@ def get_version(): data = get_data("sb")['data'] print "Version: " + data['sb_version'] + def ping(): if isAvailable(): print "Sickbeard is running!" @@ -126,7 +128,7 @@ def add_show(identifer): def search_shows(query): if isAvailable(): - results = get_data("sb.searchtvdb&name=" + query)['data']['results'] + results = get_data("sb.searchtvdb&name=" + urllib.quote(query))['data']['results'] fb = Feedback() for result in results: show_name = result['name']