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

Authored by: rebane2001
Closes #6146
pull/6150/head
Jasper Rebane 2 years ago committed by GitHub
parent 7543c9c99b
commit 9cfdbcbf3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,6 +52,7 @@ class FreesoundIE(InfoExtractor):
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'

Loading…
Cancel
Save