From b022109f9e59a3265eb2c8fcdda8ef0b98a20f90 Mon Sep 17 00:00:00 2001 From: marco Date: Sat, 17 Oct 2020 18:41:53 +0200 Subject: [PATCH] fix seriehd --- channels.json | 2 +- channels/seriehd.py | 2 +- lib/unshortenit.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/channels.json b/channels.json index f706ce8c..ff664006 100644 --- a/channels.json +++ b/channels.json @@ -6,7 +6,7 @@ "cineblog01": "https://cb01.uno", "eurostreaming": "https://eurostreaming.link", "ilcorsaronero": "https://lagazzettadelcorsaro.com", - "seriehd": "https://nuovoindirizzo.info/seriehd", + "seriehd": "https://nuovoindirizzo.info/seriehd/", "serietvonline": "https://serietvonline.online", "tantifilm": "https://www.tantifilm.wiki", "film4k": "https://film4k-nuovo.link" diff --git a/channels/seriehd.py b/channels/seriehd.py index 37414d74..f271f2c8 100644 --- a/channels/seriehd.py +++ b/channels/seriehd.py @@ -31,7 +31,7 @@ def search(item, texto): item.contentType = 'tvshow' - item.url = host + "/?s=" + texto + item.url = host + "/search/" + texto try: return peliculas(item) # Continua la ricerca in caso di errore . diff --git a/lib/unshortenit.py b/lib/unshortenit.py index d117f37b..96cf2eb6 100644 --- a/lib/unshortenit.py +++ b/lib/unshortenit.py @@ -544,8 +544,7 @@ class UnshortenIt(object): if uri == prev_uri: logger.info('Use Cloudscraper') uri = httptools.downloadpage(uri, timeout=self._timeout, headers=headers, follow_redirects=False, cf=True).headers['location'] - # from core import support - # support.dbg() + if "snip." in uri: if 'out_generator' in uri: uri = re.findall('url=(.*)$', uri)[0]