escape sequence

pull/318/head
msramalho 2025-06-10 18:04:33 +01:00
rodzic 54fda9cad4
commit fc89d96517
Nie znaleziono w bazie danych klucza dla tego podpisu
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -69,7 +69,7 @@ class RedditDropin(Dropin):
@logger.catch
def add_extra_media(self, to_enrich: Metadata) -> tuple[int, int]:
filtered_urls = self.sb.execute_script(f"""
filtered_urls = self.sb.execute_script(rf"""
return [...document.querySelectorAll("{self.video_selectors()}")]
.map(el => el.src || el.href)
.filter(url => url && /\.(m3u8|mpd|ism)$/.test(url));