[bilibili] Strip uploader name (#29202)
authorTianyi Shi <ShiTianyi2001@outlook.com>
Sun, 20 Jun 2021 18:03:21 +0000 (19:03 +0100)
committerGitHub <noreply@github.com>
Sun, 20 Jun 2021 18:03:21 +0000 (01:03 +0700)
youtube_dl/extractor/bilibili.py

index 589fdc1ce5a8de04ecb54ad44f76518e5e44d510..bff6ea194d7ad9a39f7fc79cede427abdf3d8279 100644 (file)
@@ -233,7 +233,7 @@ class BiliBiliIE(InfoExtractor):
             webpage)
         if uploader_mobj:
             info.update({
-                'uploader': uploader_mobj.group('name'),
+                'uploader': uploader_mobj.group('name').strip(),
                 'uploader_id': uploader_mobj.group('id'),
             })
         if not info.get('uploader'):