Optimize import
This commit is contained in:
parent
497d71cacc
commit
8070e921ed
1 changed files with 3 additions and 3 deletions
|
@ -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/')
|
||||||
|
|
Loading…
Reference in a new issue