From cb6463ef095b769ca4e6c68d6ea0cf7ddb91a11d Mon Sep 17 00:00:00 2001 From: marco Date: Fri, 27 Mar 2020 10:18:46 +0100 Subject: [PATCH] ottimizzazione filmpertutti e serietvu --- channels/filmpertutti.py | 3 --- channels/serietvu.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/channels/filmpertutti.py b/channels/filmpertutti.py index 7c43f21d..c0bdea36 100644 --- a/channels/filmpertutti.py +++ b/channels/filmpertutti.py @@ -156,9 +156,6 @@ def newest(categoria): def findvideos(item): if item.contentType == 'movie': data = httptools.downloadpage(item.url).data - toUnshorten = scrapertools.find_multiple_matches(data, 'https?://buckler.link/[a-zA-Z0-9]+') - for link in toUnshorten: - data += '\n' + httptools.downloadpage(link, follow_redirects=False).headers["Location"] return support.server(item, data=data) else: return support.server(item, item.url) diff --git a/channels/serietvu.py b/channels/serietvu.py index 9c9a92db..325320d5 100644 --- a/channels/serietvu.py +++ b/channels/serietvu.py @@ -111,9 +111,6 @@ def findvideos(item): log() if item.args != 'update': data = item.url - toUnshorten = scrapertools.find_multiple_matches(data, 'https?://buckler.link/[a-zA-Z0-9]+') - for link in toUnshorten: - data += '\n' + httptools.downloadpage(link, follow_redirects=False).headers["Location"] return support.server(item, data=data) else: itemlist = []