Skip to content

Commit

Permalink
Add UTF-8 encoding in order to solve #3
Browse files Browse the repository at this point in the history
  • Loading branch information
metabaron committed Jun 16, 2011
1 parent 864479a commit b847f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/gomiso.py
Expand Up @@ -209,9 +209,9 @@ def findMedia(self, title, kind = 'all', count = 25):
print 'Cannot retrieve more than 50 results or less than 1 result at once\n'
exit()
if kind == 'all':
resp, token = client.request('http://gomiso.com/api/oauth/v1/media.json?q=' + urllib.quote(title) + '&count=' + str(count), method='GET')
resp, token = client.request('http://gomiso.com/api/oauth/v1/media.json?q=' + urllib.quote(unicode(title, 'utf-8')) + '&count=' + str(count), method='GET')
else:
resp, token = client.request('http://gomiso.com/api/oauth/v1/media.json?q=' + urllib.quote(title) + '&count=' + str(count) + '&kind=' + media_type[kind], method='GET')
resp, token = client.request('http://gomiso.com/api/oauth/v1/media.json?q=' + urllib.quote(unicode(title, 'utf-8')) + '&count=' + str(count) + '&kind=' + media_type[kind], method='GET')
return token

def mediaDetails(self, media_id):
Expand Down

0 comments on commit b847f4f

Please sign in to comment.