Permalink
Browse files

Add UTF-8 encoding in order to solve #3

  • Loading branch information...
1 parent 864479a commit b847f4f8fc7395590b700ab5a2f853177f03d016 @metabaron committed Jun 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 resources/lib/gomiso.py
View
@@ -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):

0 comments on commit b847f4f

Please sign in to comment.