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

Cannot play some Apple Music Library tracks #2960

Closed
1 task done
stevegroom opened this issue Sep 23, 2024 · 5 comments
Closed
1 task done

Cannot play some Apple Music Library tracks #2960

stevegroom opened this issue Sep 23, 2024 · 5 comments

Comments

@stevegroom
Copy link

What version of Music Assistant has the issue?

2.3.0b26

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

2.3.0b26

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

  • Yes

The problem

I have Apple Music with the Apple Music Library option.
I have an Album where some tracks will not play.

On my MacBook, open Apple Music, navigate to Nits , Les Nuits, and I can play The Eiffel Tower.
On my MacBook, latest SONOS app, search > Apple Music - My Library, and I can also play the same track.
On my MacBook, HomeAssistant App, Music Assistant Beta - it is not working.

There does not seem to be a way to independently search Apple Music vs. Apple Music - my Library.
The above track will not play - there is a progress bar for 10-15s and then it stops. Other tracks of the same album do play.

I cleared the MA cache and that did not help.

How to reproduce

Enable Apple Music, search for Nits, Les Nuits, play The Eiffel Tower

Music Providers

Apple Music (UK store)

Player Providers

SONOS

Full log output

2024-09-23 14:52:06.986 DEBUG (MainThread) [music_assistant.apple_music] Decryption key for 266294304 found in cache.
2024-09-23 14:52:07.005 DEBUG (MainThread) [music_assistant.apple_music] Decryption key for 266294304 found in cache.
2024-09-23 14:52:07.019 DEBUG (MainThread) [music_assistant.audio] retrieved streamdetails for library://track/6509 in 1135 milliseconds
2024-09-23 14:52:07.047 DEBUG (MainThread) [music_assistant.audio] retrieved streamdetails for library://track/6509 in 975 milliseconds
2024-09-23 14:52:07.228 DEBUG (MainThread) [music_assistant.streams] Start serving audio stream for QueueItem Nits - The Eiffel Tower (library://track/6509) to Office
2024-09-23 14:52:07.248 ERROR (MainThread) [aiosonos.api] Received error message without cmdId: {'namespace': 'playback:1', 'householdId': 'Sonos_iA2fYJgaLDBvVThHOESd55sjZt.wGo1eRO4ZvuXDG6Zptt5', 'locationId': 'lc_ece2eb91a6544b7f9fdede50326894f8', 'groupId': 'RINCON_5CAAFD138ECB01400:2290134336', 'name': 'playbackError', 'type': 'playbackError'}
2024-09-23 14:52:07.280 DEBUG (MainThread) [music_assistant.audio.media_stream] start media stream for: apple_music--i2AzSMbT://track/266294304
2024-09-23 14:52:16.074 DEBUG (MainThread) [ffmpeg.981] Detected (input) content type: aac (aac)
2024-09-23 14:53:55.161 DEBUG (MainThread) [music_assistant.webserver] Handling command player_queues/play_pause
2024-09-23 14:53:55.164 DEBUG (MainThread) [music_assistant.players] Handling command cmd_pause for player Office
2024-09-23 14:53:55.220 DEBUG (MainThread) [aiohttp.server] Ignored premature client disconnection 2
2024-09-23 14:53:55.220 DEBUG (MainThread) [aiohttp.server] Ignored premature client disconnection.
2024-09-23 14:53:55.336 DEBUG (MainThread) [music_assistant.audio.media_stream] stream aborted (with code 255) for apple_music--i2AzSMbT://track/266294304 - seconds streamed: 173.0
2024-09-23 14:54:03.447 DEBUG (MainThread) [music_assistant.webserver] Handling command music/search
2024-09-23 14:54:03.720 DEBUG (MainThread) [music_assistant] Provider plex--JUAdyJbi is not available
2024-09-23 14:54:10.122 DEBUG (MainThread) [music_assistant.webserver] Handling command music/recently_played_items
2024-09-23 14:54:10.261 DEBUG (MainThread) [music_assistant.webserver] Handling command music/artists/library_items
2024-09-23 14:54:10.304 DEBUG (MainThread) [music_assistant.webserver] Handling command music/albums/library_items
2024-09-23 14:54:10.455 DEBUG (MainThread) [music_assistant.webserver] Handling command music/playlists/library_items
2024-09-23 14:54:10.488 DEBUG (MainThread) [music_assistant.webserver] Handling command music/radios/library_items
2024-09-23 14:54:10.506 DEBUG (MainThread) [music_assistant.webserver] Handling command music/tracks/library_items

Additional information

I suspect a caching issue, I have had other tracks not play for ages and then finally start working.

What version of Home Assistant Core are your running

2024.9.2

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

@OzGav
Copy link
Contributor

OzGav commented Sep 27, 2024

@MarvinSchenkel

@MarvinSchenkel
Copy link
Contributor

@marcelveldt This seems to be an error with the new Sonos provider?

@stevegroom Do you happen to have any other speakers (airplay, cast etc) you can try playing these tracks on?

@OzGav
Copy link
Contributor

OzGav commented Oct 22, 2024

@stevegroom Per Marvin's request above we need you to try and narrow down where this problem is occurring. Use Snapcast if you have no other players.

Copy link
Contributor

This issue is stale because it has been open 7 days with no activity after asking for more info. Comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Oct 29, 2024
Copy link
Contributor

github-actions bot commented Nov 1, 2024

This issue was closed because it has been stalled for 10 days with no activity. This can be reopened if additional information is provided.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants