From f8a4d2d62bfdd7f9416049c593a37f78c54dceb8 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 27 Mar 2019 18:05:01 +0100 Subject: [PATCH] item no longer needed in the support.menu function --- plugin.video.alfa/channels/support.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugin.video.alfa/channels/support.py b/plugin.video.alfa/channels/support.py index 9600ec65..93c33fbc 100644 --- a/plugin.video.alfa/channels/support.py +++ b/plugin.video.alfa/channels/support.py @@ -1,5 +1,5 @@ # support functions that are needed by many channels, to no repeat the same code -import base64, urlparse, re +import base64, urlparse, re, os, inspect from core import httptools, scrapertoolsV2, servertools, tmdb from core.item import Item import urllib @@ -246,10 +246,14 @@ def swzz_get_url(item): return data -def menu(itemlist, item, title='', action='', url='', contentType='movie'): +def menu(itemlist, title='', action='', url='', contentType='movie'): + frame = inspect.stack()[1] + filename = frame[0].f_code.co_filename + filename = os.path.basename(filename).replace('.py','') + logger.info('FILENAME= ' + filename) itemlist.append(Item( - channel = item.channel, + channel = filename, title = title, action = action, url = url,