From 51c15f4a34542a75bf66485a7367845ef430df3a Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Wed, 4 May 2022 00:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Jellyfin=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/nas/utils/JellyfinAPIManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/nas/utils/JellyfinAPIManager.java b/src/main/java/com/yutou/nas/utils/JellyfinAPIManager.java index 584872d..07379ec 100644 --- a/src/main/java/com/yutou/nas/utils/JellyfinAPIManager.java +++ b/src/main/java/com/yutou/nas/utils/JellyfinAPIManager.java @@ -19,6 +19,7 @@ import java.util.*; public class JellyfinAPIManager { private List mediaItem = new ArrayList<>(); private static final String userId="389438aeda0a4972ac66a23cbe5c289c"; + private static final String token="7f8efec6c950415cbaa8a0b54b3a832b"; public JellyfinAPIManager() { mediaItem = getAllItem(); @@ -203,7 +204,7 @@ public class JellyfinAPIManager { public HashMap getHeader() { HashMap header = new HashMap<>(); - header.put("X-Emby-Authorization", "MediaBrowser Client=\"Jellyfin CLI\", Device=\"Jellyfin-CLI\", DeviceId=\"None\", Version=\"10.7.6\", Token=\"81be0169523e463a8c36a7b752d60ab2\""); + header.put("X-Emby-Authorization", "MediaBrowser Client=\"Jellyfin CLI\", Device=\"Jellyfin-CLI\", DeviceId=\"None\", Version=\"10.7.6\", Token=\""+token+"\""); return header; }