From 30364b4ac4822384580e89bdab8c49d5b02e9196 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 21 Jan 2023 17:59:48 +0100 Subject: [PATCH] Revert "Fix crash" This reverts commit 1116e8d0ad79da4f7fce65533a0dd0a7043d26f2. --- 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 f219fe3..d0a0358 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]), - custom_host=YGG_DOMAIN, + headers={"Host": YGG_DOMAIN}, ) else: response = curl_content(self.get_full_search_url())