Fix crash
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2023-01-06 14:18:33 +01:00
parent 198af3c631
commit 1116e8d0ad

View File

@ -42,7 +42,7 @@ class YggTorrent(ConnectorCore):
params = self.get_full_search_url().split('?') params = self.get_full_search_url().split('?')
response = curl_content( response = curl_content(
'%s/engine/search?%s' % (self.hidden_url, params[1]), '%s/engine/search?%s' % (self.hidden_url, params[1]),
headers={"Host": YGG_DOMAIN}, custom_host=YGG_DOMAIN,
) )
else: else:
response = curl_content(self.get_full_search_url()) response = curl_content(self.get_full_search_url())