Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Jellyfin Devices from music Assistant logins #3421

Closed
1 task done
Binvention opened this issue Jan 7, 2025 · 3 comments · Fixed by music-assistant/server#1840
Closed
1 task done

Duplicate Jellyfin Devices from music Assistant logins #3421

Binvention opened this issue Jan 7, 2025 · 3 comments · Fixed by music-assistant/server#1840
Assignees
Labels
enhancement Improvements of existing functionality Jellyfin

Comments

@Binvention
Copy link

What version of Music Assistant has the issue?

2.3.4

What version of the Home Assistant Integration have you got installed?

Not Using HACS integration. homeassistant official one instead

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

Music Assistant creates a new login for the Jellyfin media provider every single time it's restarted instead of using a persistent session token or API key. This creates multiple instances of the music Assistant login in Jellyfin (which then also duplicates those as devices in home assistant). I've been using music Assistant for about two months and it created 30+ devices in Jellyfin and homeassistant.

How to reproduce

Docker install of music Assistant server. After connecting to Jellyfin view list of active devices in Jellyfin then restart music Assistant server. A duplicate device for music Assistant will show in Jellyfin active devices. Restarting jellyfin integration in homeassistant will make the same duplicate device show in homeassistant.

Music Providers

Jellyfin

Player Providers

Not applicable

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.12.5

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Linux

@OzGav
Copy link
Contributor

OzGav commented Jan 7, 2025

@Jc2k

@OzGav OzGav added the Jellyfin label Jan 7, 2025
@Jc2k
Copy link

Jc2k commented Jan 7, 2025

Yep on my radar for a while now.

I don't use Jellyfin with HA so the duplicate devices there is a new twist.

@Jc2k
Copy link

Jc2k commented Jan 8, 2025

HA had the same bug for a while and a Jellyfin dev gave some advice: home-assistant/core#70124

As per that advice, we now use a hash of the MA instance id and Jellyfin username, so even if you totally remove the provider and add it again you won't get a duplicate device in Jellyfin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements of existing functionality Jellyfin
Projects
Status: Done/verify
3 participants