fixed nasty bug, where musify just returned 404 al lthe time

This commit is contained in:
Hellow
2023-05-03 16:14:03 +02:00
parent fa7efbe2c8
commit 82ddc4f5d6
3 changed files with 21 additions and 26 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, allow_redirects=True, headers={"Connection": "https://musify.club/"}, raw_url=True)
r = cls.CONNECTION.get(endpoint, stream=True, raw_url=True)
if r is None:
return DownloadResult(error_message=f"couldn't connect to {endpoint}")