From 7c6fdad7705fe3dcad557a8ddb220e8c85f0af21 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 30 Mar 2019 18:05:34 +0100 Subject: [PATCH] Fixup --- resources/lib/playstrm.py | 3 +-- resources/lib/webservice.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/lib/playstrm.py b/resources/lib/playstrm.py index 385cae6a..cfc76844 100644 --- a/resources/lib/playstrm.py +++ b/resources/lib/playstrm.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals from logging import getLogger -import urllib import xbmc import xbmcgui @@ -146,7 +145,7 @@ class PlayStrm(object): args['server_id'] = self.server_id if self.transcode: args['transcode'] = True - url = '%s?%s' % (url, urllib.urlencode(args)) + url = utils.extend_url(url, args).encode('utf-8') listitem.setPath(url) self.kodi_playlist.add(url=url, listitem=listitem, diff --git a/resources/lib/webservice.py b/resources/lib/webservice.py index 7f35427c..7120a2cd 100644 --- a/resources/lib/webservice.py +++ b/resources/lib/webservice.py @@ -7,7 +7,6 @@ from __future__ import absolute_import, division, unicode_literals from logging import getLogger import BaseHTTPServer import httplib -import urlparse import socket import Queue @@ -121,7 +120,7 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): params = {} if '?' in path: path = path.split('?', 1)[1] - params = dict(urlparse.parse_qsl(path)) + params = dict(utils.parse_qsl(path)) if params.get('transcode'): params['transcode'] = params['transcode'].lower() == 'true'