]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/expressen.py
[cleanup] Add more ruff rules (#10149)
[yt-dlp.git] / yt_dlp / extractor / expressen.py
index b96f2e4cbb4e717e75296dc7e96b4a666a410fa8..33b829845bdba0f795015b295753cf45cd18a389 100644 (file)
@@ -58,7 +58,7 @@ def _real_extract(self, url):
         def extract_data(name):
             return self._parse_json(
                 self._search_regex(
-                    r'data-%s=(["\'])(?P<value>(?:(?!\1).)+)\1' % name,
+                    rf'data-{name}=(["\'])(?P<value>(?:(?!\1).)+)\1',
                     webpage, 'info', group='value'),
                 display_id, transform_source=unescapeHTML)