From da215ffb9d48bf3021df209f0f42eec65450589f Mon Sep 17 00:00:00 2001 From: Alhaziel <46535975+lozioangie@users.noreply.github.com> Date: Mon, 12 Aug 2019 17:44:03 +0200 Subject: [PATCH] SerieHD host impostato dinamicamente --- channels/seriehd.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/channels/seriehd.py b/channels/seriehd.py index faeefc9e..fe4b41e1 100644 --- a/channels/seriehd.py +++ b/channels/seriehd.py @@ -4,12 +4,22 @@ # ------------------------------------------------------------ -from core import support +from core import scrapertoolsV2, httptools, support from core.item import Item __channel__ = "seriehd" -host = support.config.get_channel_url(__channel__) +# host = support.config.get_channel_url(__channel__) + +#impostati dinamicamente da findhost() +host = "" +headers = "" + +def findhost(): + data= support.httptools.downloadpage('https://seriehd.nuovo.link/').data + global host, headers + host = support.scrapertoolsV2.find_single_match(data, r'