From 71e4a487dbba25f57c35f89dcc4ae6d002ecd704 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 1 Dec 2021 19:37:59 +0100 Subject: [PATCH] Fix StreamingITA --- channels/streamingita.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/streamingita.py b/channels/streamingita.py index c75705fe..a8ada044 100644 --- a/channels/streamingita.py +++ b/channels/streamingita.py @@ -7,6 +7,7 @@ from core import httptools, support from platformcode import logger, config host = config.get_channel_url() +headers = [['Referer', host]] @support.menu @@ -45,7 +46,7 @@ def episodios(item): def findvideos(item): data = [] for link in support.dooplay_get_links(item, host): - url = httptools.downloadpage(link['url'], only_headers=True).url + url = httptools.downloadpage(link['url'], only_headers=True, headers=headers).url data.append(url) return support.server(item, data)