fixed parsing non-HTTPS deezer.page.link URLs

This commit is contained in:
uh wot
2022-10-02 17:01:09 +02:00
parent bade6b1df7
commit 0f79705bca

View File

@@ -69,7 +69,7 @@ class ModuleInterface:
url = urlparse(link)
if url.hostname == 'deezer.page.link':
r = get(link, allow_redirects=False)
r = get('https://deezer.page.link' + url.path, allow_redirects=False)
if r.status_code != 302:
raise self.exception(f'Invalid URL: {link}')
url = urlparse(r.headers['Location'])