Replace hardcoded Jellyfin authentication DeviceId to include hostname and username (#312)

This commit is contained in:
Lily Rose 2023-10-17 13:21:15 +00:00 committed by GitHub
parent 1a948ab86b
commit ac7ec133db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ const authenticate = async (
Username: body.username,
},
headers: {
'x-emby-authorization': `MediaBrowser Client="Feishin", Device="${getHostname()}", DeviceId="Feishin", Version="${
'x-emby-authorization': `MediaBrowser Client="Feishin", Device="${getHostname()}", DeviceId="Feishin-${getHostname()}-${body.username}", Version="${
packageJson.version
}"`,
},