From ad98de19e8b939ddfd1207abca1b82d80976850d Mon Sep 17 00:00:00 2001 From: greko17 Date: Wed, 7 Aug 2019 18:56:47 +0200 Subject: [PATCH 1/3] fix: checkhost ReadTimeout: HTTPSConnectionPool(host='filmsenzalimiti.best', port=443): Read timed out. (read timeout=7) --- channels/altadefinizione01.py | 2 +- channels/altadefinizione01_club.json | 2 +- channels/altadefinizione01_club.py | 147 ++++++++++++++++++++++++--- channels/altadefinizione01_link.py | 43 ++++---- channels/guardogratis.json | 4 +- core/support.py | 2 +- specials/checkhost.py | 9 +- 7 files changed, 167 insertions(+), 42 deletions(-) diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 6e5852e9..ea15324a 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -66,7 +66,7 @@ def categorie(item): if item.args != 'orderalf': action = "peliculas" else: action = 'orderalf' - blacklist = 'altadefinizione01' + blacklist = ['Altadefinizione01'] if item.args == 'genres': patronBlock = r'' diff --git a/channels/altadefinizione01_club.json b/channels/altadefinizione01_club.json index 34c36518..b77e45d7 100644 --- a/channels/altadefinizione01_club.json +++ b/channels/altadefinizione01_club.json @@ -1,7 +1,7 @@ { "id": "altadefinizione01_club", "name": "Altadefinizione01 C", - "active": false, + "active": "enable", "adult": false, "language": ["ita"], "fanart": "https://www.altadefinizione01.vision/templates/Darktemplate/images/logo.png", diff --git a/channels/altadefinizione01_club.py b/channels/altadefinizione01_club.py index 09771127..bdf93559 100644 --- a/channels/altadefinizione01_club.py +++ b/channels/altadefinizione01_club.py @@ -5,23 +5,15 @@ # -*- last change: 04/05/2019 # -*- doppione di altadefinizione01 -from specials import autoplay -from core import servertools, support + +from specials.canale import Channel from core.item import Item -from platformcode import config, logger -__channel__ = "altadefinizione01_club" -host = config.get_channel_url(__channel__) + +chan = Channel(itemlist) -headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0'], - ['Referer', host]] - -list_servers = ['verystream','openload','rapidvideo','streamango'] -list_quality = ['default'] - -@support.menu +@canale.menu def mainlist(item): - film = [ ('Al Cinema', ['/cinema/', 'peliculas', 'pellicola']), ('Generi', ['', 'categorie', 'genres']), @@ -130,5 +122,130 @@ def newest(categoria): for line in sys.exc_info(): logger.error("{0}".format(line)) return [] - - return itemlist +##from specials import autoplay +##from core import servertools, support +##from core.item import Item +##from platformcode import config, logger +## +##__channel__ = "altadefinizione01_club" +##host = config.get_channel_url(__channel__) +## +##headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0'], +## ['Referer', host]] +## +##list_servers = ['verystream','openload','rapidvideo','streamango'] +##list_quality = ['default'] +## +##@support.menu +##def mainlist(item): +## +## film = [ +## ('Al Cinema', ['/cinema/', 'peliculas', 'pellicola']), +## ('Generi', ['', 'categorie', 'genres']), +## ('Lettera', ['/catalog/a/', 'categorie', 'orderalf']), +## ('Anni', ['', 'categorie', 'years']), +## ('Sub-ITA', ['/sub-ita/', 'peliculas', 'pellicola']) +## ] +## +## return locals() +## +### ======== def in ordine di menu =========================== +### =========== def per vedere la lista dei film ============= +##@support.scrape +##def peliculas(item): +#### import web_pdb; web_pdb.set_trace() +## support.log('peliculas',item) +## +## action="findvideos" +## if item.args == "search": +## patronBlock = r'
(.*?)
' +## else: +## patronBlock = r'
(.*?)