From 793652caa2a9601ea6f2a83e15e95d67897abd6d Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 1 Jan 2020 20:49:36 +0100 Subject: [PATCH] fix filmpertutti, link mancanti --- channels/filmpertutti.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/channels/filmpertutti.py b/channels/filmpertutti.py index 14567275..28c8f9bd 100644 --- a/channels/filmpertutti.py +++ b/channels/filmpertutti.py @@ -169,6 +169,10 @@ def newest(categoria): def findvideos(item): if item.contentType == 'movie': - return support.server(item) + 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)