]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/trovo.py
[cleanup] Use format_field where applicable
[yt-dlp.git] / yt_dlp / extractor / trovo.py
index 580cb533b1598b68382ba48adb04c2197550944a..65ea13ddb2e74dc64acc477ced4fb5f27dc5a8ca 100644 (file)
@@ -7,6 +7,7 @@
 from .common import InfoExtractor
 from ..utils import (
     ExtractorError,
+    format_field,
     int_or_none,
     str_or_none,
     try_get,
@@ -28,7 +29,7 @@ def _extract_streamer_info(self, data):
         return {
             'uploader': streamer_info.get('nickName'),
             'uploader_id': str_or_none(streamer_info.get('uid')),
-            'uploader_url': 'https://trovo.live/' + username if username else None,
+            'uploader_url': format_field(username, template='https://trovo.live/%s'),
         }