From 3914c421872d118d663a13a59494ea7c4f4b780b Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Mon, 22 Feb 2021 18:26:04 +0100 Subject: [PATCH] fix launcher --- platformcode/launcher.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/platformcode/launcher.py b/platformcode/launcher.py index f3ae783f..b8c03ca1 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -41,12 +41,7 @@ def run(item=None): logger.debug() if not item: # Extract item from sys.argv - if sys.argv[2] and 'play' in sys.argv[2]: - sp = sys.argv[2].split('/') - if len(sp) == 3: - item = Item(channel=sp[1], livefilter=sp[2], action='play') - # If no item, this is mainlist - elif sys.argv[2]: + if sys.argv[2]: sp = sys.argv[2].split('&') url = sp[0] item = Item().fromurl(url) @@ -54,7 +49,7 @@ def run(item=None): for e in sp[1:]: key, val = e.split('=') item.__setattr__(key, val) - + # If no item, this is mainlist else: item = Item(channel="channelselector", action="getmainlist", viewmode="movie") if not config.get_setting('show_once'):