Fixes to default.py

This commit is contained in:
tomkat83 2017-01-15 18:16:39 +01:00
parent 8680410ab2
commit 2700cc6f6f

View file

@ -108,7 +108,7 @@ class Main():
if "/extrafanart" in ARGV[0]: if "/extrafanart" in ARGV[0]:
plexpath = ARGV[2][1:] plexpath = ARGV[2][1:]
plexid = params.get('id', [""]) plexid = params.get('id')
entrypoint.getExtraFanArt(plexid, plexpath) entrypoint.getExtraFanArt(plexid, plexpath)
entrypoint.getVideoFiles(plexid, plexpath) entrypoint.getVideoFiles(plexid, plexpath)
return return
@ -138,20 +138,20 @@ class Main():
modes[mode](itemid) modes[mode](itemid)
elif mode == "browsecontent": elif mode == "browsecontent":
modes[mode](itemid, params.get('type',[""]), params.get('folderid',[""])) modes[mode](itemid, params.get('type'), params.get('folderid'))
elif mode == 'browseplex': elif mode == 'browseplex':
modes[mode]( modes[mode](
itemid, itemid,
params.get('type', [""]), params.get('type'),
params.get('folderid', [""])) params.get('folderid'))
elif mode in ('ondeck', 'recentepisodes'): elif mode in ('ondeck', 'recentepisodes'):
modes[mode]( modes[mode](
itemid, itemid,
params.get('type', [""]), params.get('type'),
params.get('tagname', [""]), params.get('tagname'),
int(params.get('limit', [""]))) int(params.get('limit')))
elif mode == "channelsfolder": elif mode == "channelsfolder":
folderid = params['folderid'] folderid = params['folderid']