From 2700cc6f6fd53704600af32360f71fd4c5c0aea4 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 15 Jan 2017 18:16:39 +0100 Subject: [PATCH] Fixes to default.py --- default.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/default.py b/default.py index c2ccfddd..6a49a355 100644 --- a/default.py +++ b/default.py @@ -108,7 +108,7 @@ class Main(): if "/extrafanart" in ARGV[0]: plexpath = ARGV[2][1:] - plexid = params.get('id', [""]) + plexid = params.get('id') entrypoint.getExtraFanArt(plexid, plexpath) entrypoint.getVideoFiles(plexid, plexpath) return @@ -138,20 +138,20 @@ class Main(): modes[mode](itemid) elif mode == "browsecontent": - modes[mode](itemid, params.get('type',[""]), params.get('folderid',[""])) + modes[mode](itemid, params.get('type'), params.get('folderid')) elif mode == 'browseplex': modes[mode]( itemid, - params.get('type', [""]), - params.get('folderid', [""])) + params.get('type'), + params.get('folderid')) elif mode in ('ondeck', 'recentepisodes'): modes[mode]( itemid, - params.get('type', [""]), - params.get('tagname', [""]), - int(params.get('limit', [""]))) + params.get('type'), + params.get('tagname'), + int(params.get('limit'))) elif mode == "channelsfolder": folderid = params['folderid']