mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix search URL encoding
This commit is contained in:
parent
91446d01a7
commit
1f2efedf7f
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ from plexpy import logger, helpers, users, http_handler
|
|||
from urlparse import urlparse
|
||||
|
||||
import plexpy
|
||||
import urllib
|
||||
import urllib2
|
||||
|
||||
|
||||
class PmsConnect(object):
|
||||
|
@ -228,7 +228,7 @@ class PmsConnect(object):
|
|||
Output: array
|
||||
"""
|
||||
def get_search(self, query='', track='', output_format=''):
|
||||
uri = '/search?query=' + urllib.quote_plus(query) + track
|
||||
uri = '/search?query=' + urllib2.quote(query.encode('utf8')) + track
|
||||
request = self.request_handler.make_request(uri=uri,
|
||||
proto=self.protocol,
|
||||
request_type='GET',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue