]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/movingimage.py
[ie/matchtv] Fix extractor (#10190)
[yt-dlp.git] / yt_dlp / extractor / movingimage.py
index 4f62d628a24dbf65db894dce2dc24e56fde7403a..7b1c7979ce30f7de217b736128b7e60bd1875ecd 100644 (file)
@@ -1,9 +1,7 @@
-from __future__ import unicode_literals
-
 from .common import InfoExtractor
 from ..utils import (
-    unescapeHTML,
     parse_duration,
+    unescapeHTML,
 )
 
 
@@ -33,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('()[]')