]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/bostonglobe.py
[cleanup] Add more ruff rules (#10149)
[yt-dlp.git] / yt_dlp / extractor / bostonglobe.py
index 92f8ea2cb47c47defbfafe369b6a5b6785dfa4fa..f5b819678865bf58ebbdd3f1d03ef8542d67829c 100644 (file)
@@ -1,7 +1,6 @@
 import re
 
 from .common import InfoExtractor
-
 from ..utils import (
     extract_attributes,
 )
@@ -58,8 +57,7 @@ def _real_extract(self, url):
 
             if video_id and account_id and player_id and embed:
                 entries.append(
-                    'http://players.brightcove.net/%s/%s_%s/index.html?videoId=%s'
-                    % (account_id, player_id, embed, video_id))
+                    f'http://players.brightcove.net/{account_id}/{player_id}_{embed}/index.html?videoId={video_id}')
 
         if len(entries) == 0:
             return self.url_result(url, 'Generic')