From 35a387d0e8886dd1c2e8616eb3ed6b20a4af7a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 16 Jun 2024 00:47:00 +0800 Subject: [PATCH] shit --- LunaTranslator/LunaTranslator/metadata/bangumi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/metadata/bangumi.py b/LunaTranslator/LunaTranslator/metadata/bangumi.py index 2f2a843e..0d67e591 100644 --- a/LunaTranslator/LunaTranslator/metadata/bangumi.py +++ b/LunaTranslator/LunaTranslator/metadata/bangumi.py @@ -41,7 +41,7 @@ class searcher(common): "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", } if self.config["access-token"].strip() != "": - headers["Authorization"] = ("Bearer " + self.config["access-token"],) + headers["Authorization"] = "Bearer " + self.config["access-token"] response = self.proxysession.get( f"https://api.bgm.tv/v0/subjects/{sid}", headers=headers )