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

Authored by: rebane2001
Closes #6146
pull/6150/head
Jasper Rebane 2023-02-03 16:38:51 +02:00 zatwierdzone przez GitHub
rodzic 7543c9c99b
commit 9cfdbcbf3f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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'