Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Fixes #2 Missing url encoding problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogh committed Jun 19, 2013
1 parent 5d680b3 commit 0c9e6fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/sickbeardAlfred.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import urllib2
import webbrowser
import urllib
from alp.settings import Settings
from feedback import Feedback

Expand Down Expand Up @@ -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!"
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit 0c9e6fe

Please sign in to comment.