From 1116e8d0ad79da4f7fce65533a0dd0a7043d26f2 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 6 Jan 2023 14:18:33 +0100 Subject: [PATCH] Fix crash --- pynyaata/connectors/yggtorrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynyaata/connectors/yggtorrent.py b/pynyaata/connectors/yggtorrent.py index d0a0358..f219fe3 100644 --- a/pynyaata/connectors/yggtorrent.py +++ b/pynyaata/connectors/yggtorrent.py @@ -42,7 +42,7 @@ class YggTorrent(ConnectorCore): params = self.get_full_search_url().split('?') response = curl_content( '%s/engine/search?%s' % (self.hidden_url, params[1]), - headers={"Host": YGG_DOMAIN}, + custom_host=YGG_DOMAIN, ) else: response = curl_content(self.get_full_search_url())