From fc89d9651758dce463c060da8c114e05b9f0a946 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:04:33 +0100 Subject: [PATCH] escape sequence --- .../modules/antibot_extractor_enricher/dropins/reddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto_archiver/modules/antibot_extractor_enricher/dropins/reddit.py b/src/auto_archiver/modules/antibot_extractor_enricher/dropins/reddit.py index 14d9c8c..44d572b 100644 --- a/src/auto_archiver/modules/antibot_extractor_enricher/dropins/reddit.py +++ b/src/auto_archiver/modules/antibot_extractor_enricher/dropins/reddit.py @@ -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));