Added a funtion to simplify menu construction

This commit is contained in:
Alhaziel
2019-03-25 21:53:05 +01:00
committed by mac12m99
parent 0d33a9dfbf
commit 8b44748176

View File

@@ -245,3 +245,16 @@ def swzz_get_url(item):
data = item.url
return data
def menu(itemlist, item, title='', action='', url='', contentType='movie'):
itemlist.append(Item(
channel = item.channel,
title = title,
action = action,
url = url,
contentType = contentType
))
from channelselector import thumb
itemlist = thumb(itemlist)
return itemlist