This commit is contained in:
恍兮惚兮 2024-06-16 00:47:00 +08:00
parent 0bb8abc871
commit 35a387d0e8

View File

@ -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
)