Fixup
This commit is contained in:
parent
9b4584e7df
commit
7c6fdad770
2 changed files with 2 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue