]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/trovo.py
[cleanup] Add more ruff rules (#10149)
[yt-dlp.git] / yt_dlp / extractor / trovo.py
index 545a67275ad09194dc43c38ccc88f474560fc0ea..7d800ae340056e11398fafed93eb9f48d3b2c4e1 100644 (file)
@@ -63,7 +63,7 @@ class TrovoIE(TrovoBaseIE):
             'title': 'šŸ’„IGRAMO IGRICE UPADAJTEšŸ’„2500/5000 2022-06-28 22:01',
             'live_status': 'is_live',
         },
-        'skip': 'May not be live'
+        'skip': 'May not be live',
     }]
 
     def _real_extract(self, url):
@@ -77,7 +77,7 @@ def _real_extract(self, url):
             },
         })
         if live_info.get('isLive') == 0:
-            raise ExtractorError('%s is offline' % username, expected=True)
+            raise ExtractorError(f'{username} is offline', expected=True)
         program_info = live_info['programInfo']
         program_id = program_info['id']
         title = program_info['title']