Fix multiple device being registered

This commit is contained in:
Prayag Prajapati committed 2023-09-22 11:38:48 +05:30
1 parent 69660b1d10
commit fc3694adf4
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -89,6 +89,12 @@ import axios from "axios";
import axiosTauriApiAdapter from "axios-tauri-api-adapter";
const axiosClient = axios.create({ adapter: axiosTauriApiAdapter });
const deviceId = localStorage.getItem("deviceId");
if (!deviceId) {
localStorage.setItem("deviceId", uuidv4());
}
const jellyfin = new Jellyfin({
clientInfo: {
name: "JellyPlayer",
@@ -96,7 +102,7 @@ const jellyfin = new Jellyfin({
},
deviceInfo: {
name: "JellyPlayer",
id: uuidv4(),
id: deviceId,
},
});