[extractor/freesound] Workaround invalid URL in webpage (#6147)

Authored by: rebane2001
Closes #6146
This commit is contained in:
Jasper Rebane 2023-02-03 16:38:51 +02:00 committed by GitHub
parent 7543c9c99b
commit 9cfdbcbf3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,7 @@ def _real_extract(self, url):
tags_str = get_element_by_class('tags', webpage)
tags = re.findall(r'<a[^>]+>([^<]+)', tags_str) if tags_str else None
audio_url = re.sub(r'^https?://freesound\.org(https?://)', r'\1', audio_url)
audio_urls = [audio_url]
LQ_FORMAT = '-lq.mp3'