Move directpaths out of loop
This commit is contained in:
parent
d8e9ca9ffe
commit
560835fd82
1 changed files with 2 additions and 1 deletions
|
@ -1516,6 +1516,7 @@ def getOnDeck(viewid, mediatype, tagname, limit):
|
||||||
xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
|
xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
|
||||||
appendShowTitle = utils.settings('OnDeckTvAppendShow') == 'true'
|
appendShowTitle = utils.settings('OnDeckTvAppendShow') == 'true'
|
||||||
appendSxxExx = utils.settings('OnDeckTvAppendSeason') == 'true'
|
appendSxxExx = utils.settings('OnDeckTvAppendSeason') == 'true'
|
||||||
|
directpaths = utils.settings('useDirectPaths') == 'true'
|
||||||
if utils.settings('OnDeckTVextended') == 'false':
|
if utils.settings('OnDeckTVextended') == 'false':
|
||||||
# Chances are that this view is used on Kodi startup
|
# Chances are that this view is used on Kodi startup
|
||||||
# Wait till we've connected to a PMS. At most 30s
|
# Wait till we've connected to a PMS. At most 30s
|
||||||
|
@ -1539,7 +1540,7 @@ def getOnDeck(viewid, mediatype, tagname, limit):
|
||||||
appendSxxExx=appendSxxExx)
|
appendSxxExx=appendSxxExx)
|
||||||
API.AddStreamInfo(listitem)
|
API.AddStreamInfo(listitem)
|
||||||
pbutils.PlaybackUtils(item).setArtwork(listitem)
|
pbutils.PlaybackUtils(item).setArtwork(listitem)
|
||||||
if utils.settings('useDirectPaths') == 'true':
|
if directpaths:
|
||||||
url = API.getFilePath()
|
url = API.getFilePath()
|
||||||
else:
|
else:
|
||||||
params = {
|
params = {
|
||||||
|
|
Loading…
Reference in a new issue