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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import absolute_import, division, unicode_literals
|
from __future__ import absolute_import, division, unicode_literals
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
import urllib
|
|
||||||
|
|
||||||
import xbmc
|
import xbmc
|
||||||
import xbmcgui
|
import xbmcgui
|
||||||
|
@ -146,7 +145,7 @@ class PlayStrm(object):
|
||||||
args['server_id'] = self.server_id
|
args['server_id'] = self.server_id
|
||||||
if self.transcode:
|
if self.transcode:
|
||||||
args['transcode'] = True
|
args['transcode'] = True
|
||||||
url = '%s?%s' % (url, urllib.urlencode(args))
|
url = utils.extend_url(url, args).encode('utf-8')
|
||||||
listitem.setPath(url)
|
listitem.setPath(url)
|
||||||
self.kodi_playlist.add(url=url,
|
self.kodi_playlist.add(url=url,
|
||||||
listitem=listitem,
|
listitem=listitem,
|
||||||
|
|
|
@ -7,7 +7,6 @@ from __future__ import absolute_import, division, unicode_literals
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
import httplib
|
import httplib
|
||||||
import urlparse
|
|
||||||
import socket
|
import socket
|
||||||
import Queue
|
import Queue
|
||||||
|
|
||||||
|
@ -121,7 +120,7 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||||
params = {}
|
params = {}
|
||||||
if '?' in path:
|
if '?' in path:
|
||||||
path = path.split('?', 1)[1]
|
path = path.split('?', 1)[1]
|
||||||
params = dict(urlparse.parse_qsl(path))
|
params = dict(utils.parse_qsl(path))
|
||||||
|
|
||||||
if params.get('transcode'):
|
if params.get('transcode'):
|
||||||
params['transcode'] = params['transcode'].lower() == 'true'
|
params['transcode'] = params['transcode'].lower() == 'true'
|
||||||
|
|
Loading…
Reference in a new issue