更新Jellyfin token
This commit is contained in:
parent
74f7b9cd21
commit
51c15f4a34
@ -19,6 +19,7 @@ import java.util.*;
|
|||||||
public class JellyfinAPIManager {
|
public class JellyfinAPIManager {
|
||||||
private List<LibsItem> mediaItem = new ArrayList<>();
|
private List<LibsItem> mediaItem = new ArrayList<>();
|
||||||
private static final String userId="389438aeda0a4972ac66a23cbe5c289c";
|
private static final String userId="389438aeda0a4972ac66a23cbe5c289c";
|
||||||
|
private static final String token="7f8efec6c950415cbaa8a0b54b3a832b";
|
||||||
|
|
||||||
public JellyfinAPIManager() {
|
public JellyfinAPIManager() {
|
||||||
mediaItem = getAllItem();
|
mediaItem = getAllItem();
|
||||||
@ -203,7 +204,7 @@ public class JellyfinAPIManager {
|
|||||||
|
|
||||||
public HashMap<String, String> getHeader() {
|
public HashMap<String, String> getHeader() {
|
||||||
HashMap<String, String> header = new HashMap<>();
|
HashMap<String, String> 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;
|
return header;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user