From a0eb342883696cd62ba49d0da060ad1b0474e34e Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Mon, 16 Mar 2020 15:22:09 +0100 Subject: [PATCH] Fix Community --- core/support.py | 2 ++ specials/community.py | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/support.py b/core/support.py index dd326e3e..912a1784 100755 --- a/core/support.py +++ b/core/support.py @@ -1039,6 +1039,8 @@ def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=Tru findS = servertools.findvideos(videoitem.url) if findS: findS = findS[0] + elif item.channel == 'community': + findS= ('Diretto', videoitem.url, 'directo') else: videoitem.url = unshortenit.unshorten(videoitem.url)[0] findS = servertools.findvideos(videoitem.url) diff --git a/specials/community.py b/specials/community.py index 3a6de175..78724b5c 100644 --- a/specials/community.py +++ b/specials/community.py @@ -370,20 +370,13 @@ def findvideos(item): for option in json: extra = set_extra_values(item, option, item.path) title = item.fulltitle + (' - '+option['title'] if 'title' in option else '') - title = set_title(title, extra.language, extra.quality) + support.typo('%s','_ [] color kod bold') + title = set_title(title, extra.language, extra.quality) itemlist.append(Item(channel=item.channel, title=title, url=option['url'], action='play', quality=extra.quality, language=extra.language, infoLabels = item.infoLabels)) return support.server(item, itemlist=itemlist) - # itemlist = support.servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize()) - # if inspect.stack()[2][3] != 'start_download': - # autoplay.start(itemlist, item) - # support.videolibrary(itemlist,item) - # return itemlist - - ################################ Menu ################################