Skip to content

Commit 5b99629

Browse files
committed
use persistent device id
1 parent 200b8a4 commit 5b99629

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/jellyfin-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Api, Jellyfin } from "@jellyfin/sdk";
2-
import { generateGuid } from "./utils";
2+
33
import {
44
getCacheValue,
55
JELLYFIN_AUTH_TOKEN_CACHE_KEY,
@@ -92,7 +92,7 @@ export const authenticateByAuthToken = (
9292
},
9393
deviceInfo: {
9494
name: "Jellyfin-Wrapped",
95-
id: generateGuid(),
95+
id: "Jellyfin-Wrapped",
9696
},
9797
});
9898
api = jellyfin.createApi(serverUrl, jellyfinApiKey);
@@ -114,7 +114,7 @@ export const authenticateByUserName = async (
114114
},
115115
deviceInfo: {
116116
name: "Jellyfin-Wrapped",
117-
id: generateGuid(),
117+
id: "Jellyfin-Wrapped",
118118
},
119119
});
120120
console.log("Connecting to server...", { serverUrl, username });

0 commit comments

Comments
 (0)