From ab687f9786963c9aee73a57f5015cc09c6986cfc Mon Sep 17 00:00:00 2001 From: greko17 Date: Mon, 14 Oct 2019 12:11:56 +0200 Subject: [PATCH] fix: seriehd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aggiunto in novità --- channels/seriehd.json | 1 - channels/seriehd.py | 25 +++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/channels/seriehd.json b/channels/seriehd.json index c6a937e5..b6be2f7b 100644 --- a/channels/seriehd.json +++ b/channels/seriehd.json @@ -7,6 +7,5 @@ "thumbnail": "seriehd.png", "banner": "seriehd.png", "categories": ["tvshow"], - "not_active": ["include_in_newest"], "settings": [] } diff --git a/channels/seriehd.py b/channels/seriehd.py index 98c1ed58..51648003 100644 --- a/channels/seriehd.py +++ b/channels/seriehd.py @@ -7,9 +7,6 @@ from core import scrapertoolsV2, httptools, support from core.item import Item -##__channel__ = 'seriehd' -# host = support.config.get_channel_url(__channel__) - # impostati dinamicamente da findhost() host = '' headers = '' @@ -26,9 +23,6 @@ findhost() list_servers = ['verystream', 'openload', 'streamango', 'thevideome'] list_quality = ['1080p', '720p', '480p', '360'] -##checklinks = support.config.get_setting('checklinks', __channel__) -##checklinks_number = support.config.get_setting('checklinks_number', __channel__) - @support.menu def mainlist(item): @@ -89,6 +83,25 @@ def episodios(item): action = 'findvideos' return locals() +def newest(categoria): + support.log(categoria) + itemlist = [] + item = support.Item() + try: + if categoria == "series": + item.url = host + item.contentType = 'tvshow' + itemlist = peliculas(item) + itemlist.pop() + # Continua la ricerca in caso di errore + except: + import sys + for line in sys.exc_info(): + support.logger.error("{0}".format(line)) + return [] + + return itemlist + def findvideos(item): support.log()