Optimize import

This commit is contained in:
tomkat83 2016-09-10 11:48:29 +02:00
parent 497d71cacc
commit 8070e921ed

View file

@ -3,7 +3,7 @@
############################################################################### ###############################################################################
import logging import logging
import urllib from urllib import urlencode
from ntpath import dirname from ntpath import dirname
from datetime import datetime from datetime import datetime
@ -394,7 +394,7 @@ class Movies(Items):
'dbid': movieid, 'dbid': movieid,
'mode': "play" 'mode': "play"
} }
filename = "%s?%s" % (path, urllib.urlencode(params)) filename = "%s?%s" % (path, urlencode(params))
playurl = filename playurl = filename
# movie table: # movie table:
@ -906,7 +906,7 @@ class TVShows(Items):
'dbid': episodeid, 'dbid': episodeid,
'mode': "play" 'mode': "play"
} }
filename = "%s?%s" % (path, tryDecode(urllib.urlencode(params))) filename = "%s?%s" % (path, tryDecode(urlencode(params)))
playurl = filename playurl = filename
parentPathId = self.kodi_db.addPath( parentPathId = self.kodi_db.addPath(
'plugin://plugin.video.plexkodiconnect.tvshows/') 'plugin://plugin.video.plexkodiconnect.tvshows/')