This commit is contained in:
Hellow
2023-04-22 14:20:19 +02:00
parent ac4911e1fc
commit 12ef9eb3dd
3 changed files with 61 additions and 21 deletions

View File

@@ -1039,7 +1039,7 @@ class Musify(Page):
cls.LOGGER.warning(f"The source has no audio link. Falling back to {endpoint}.")
r = cls.CONNECTION.get(endpoint, stream=True)
r = cls.CONNECTION.get(endpoint, stream=True, allow_redirects=True, headers={"Host": "40s.musify.club", "Referer": endpoint})
if r is None:
return DownloadResult(error_message=f"couldn't connect to {endpoint}")