mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-26 09:11:58 +02:00
[extractor/freesound] Workaround invalid URL in webpage (#6147)
Authored by: rebane2001 Closes #6146
This commit is contained in:
parent
7543c9c99b
commit
9cfdbcbf3f
@ -52,6 +52,7 @@ def _real_extract(self, url):
|
|||||||
tags_str = get_element_by_class('tags', webpage)
|
tags_str = get_element_by_class('tags', webpage)
|
||||||
tags = re.findall(r'<a[^>]+>([^<]+)', tags_str) if tags_str else None
|
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]
|
audio_urls = [audio_url]
|
||||||
|
|
||||||
LQ_FORMAT = '-lq.mp3'
|
LQ_FORMAT = '-lq.mp3'
|
||||||
|
Loading…
Reference in New Issue
Block a user