]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/movingimage.py
[ie/mlbtv] Fix extraction (#10296)
[yt-dlp.git] / yt_dlp / extractor / movingimage.py
index cdd8ba4dced11920a9a8336ac16f8bad10a02190..7b1c7979ce30f7de217b736128b7e60bd1875ecd 100644 (file)
@@ -1,7 +1,7 @@
 from .common import InfoExtractor
 from ..utils import (
-    unescapeHTML,
     parse_duration,
+    unescapeHTML,
 )
 
 
@@ -31,7 +31,7 @@ def _real_extract(self, url):
 
         def search_field(field_name, fatal=False):
             return self._search_regex(
-                r'<span\s+class="field_title">%s:</span>\s*<span\s+class="field_content">([^<]+)</span>' % field_name,
+                rf'<span\s+class="field_title">{field_name}:</span>\s*<span\s+class="field_content">([^<]+)</span>',
                 webpage, 'title', fatal=fatal)
 
         title = unescapeHTML(search_field('Title', fatal=True)).strip('()[]')