- Aggiunto Discovery +

- Fix Hd4me
This commit is contained in:
Alhaziel01
2021-02-03 19:40:50 +01:00
parent 15f96768c4
commit 8a13267d75
5 changed files with 176 additions and 3 deletions

View File

@@ -41,7 +41,12 @@ def run(item=None):
logger.debug()
if not item:
# Extract item from sys.argv
if sys.argv[2]:
if sys.argv[2] and 'play' in sys.argv[2]:
sp = sys.argv[2].split('/')
if len(sp) == 3:
item = Item(channel=sp[1], filter=sp[2], action='play')
# If no item, this is mainlist
elif sys.argv[2]:
sp = sys.argv[2].split('&')
url = sp[0]
item = Item().fromurl(url)
@@ -49,7 +54,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'):