YouTube Music #1551
Replies: 33 comments 110 replies
-
|
Authenticate on YouTube music does not work for me. MA server (docker) does not redirect to Google OAuth page for granting access. I get a spinning wheel on clicking the "AUTHENTICATE ON YOUTUBE MUSIC" button. Same issue in both Chrome and Firefox. >>> "A new window will open. Ignore the code and click 'Next'" THIS DOES NOT WORK FOR ME. Running in docker as per server /docker-compose.example.yml. |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, YT music works good most of the time but sometimes when MA moves to the next track in the queue, MA start playing the next song until it reaches 4 seconds then it restarts over. It seems getting stuck indefinitely. If I change to the next song or pause/play manually it works again. Have you observed the same issue? Any ways to fix it? Thank you for the great work! |
Beta Was this translation helpful? Give feedback.
-
|
As a feature request I would much prefer YouTube videos in general rather than YouTube Music. Using Logitech Media Server we were able to listen to the audio from any YouTube video (audiobooks and TV programs such as quiz shows) but now we've moved over to Music Assistant I've found that the amount of stuff on YouTube Music is very restricted. Or am I being very dim? |
Beta Was this translation helpful? Give feedback.
-
|
Because when we used the Logitech Media Player (LMP) YouTube 'app' we weren't using YT for music but rather for the audio from videos such as recorded TV programs. After installing Music Assistant I looked at YouTube Music but I couldn't find any of the material we normally listen to. I've never used YTM before so perhaps I just wasn't searching properly. |
Beta Was this translation helpful? Give feedback.
-
|
I appreciate the difficullty and we can use bluetooth to send audio to the squeezelite players on Raspberry Pis, although it's a bit klunky (using Max2Play). I am still v. happy to use Music Assistant and look forward to new features on your road map.
26 Oct 2023 9:54:45 am Marvin Schenkel ***@***.***>:
… I see your point. The YT Music provider will definitely not support this, since, well, it's not on Youtube Music :-). I am pretty sure we won't be adding a Youtube-provider since it is a huge hassle to keep anything Youtube-related up and running. The reason for this is that there is not an official integration with Youtube / Youtube Music.
—
Reply to this email directly, view it on GitHub[#1551 (reply in thread)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AJJVDPTFISKDUMWILYPH3ZDYBIJMHAVCNFSM6AAAAAA5TX6BMWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOBZG4YDA].
You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/AJJVDPT3ZPOJPPO4YP3YB5DYBIJMHA5CNFSM6AAAAAA5TX6BMWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAODBAI.gif]
|
Beta Was this translation helpful? Give feedback.
-
|
Signing into Youtube Musik does not work for me. I don`t get a popup window needed for the oAuth login. Only manage to get the time out message. Tried on Firefox on MacOs, in the iOS HomeAssistant app and on iOS Chrome. My HA is working with a HTTP not HTTPS. Not sure if Google has issues with redirects from insecure sites. Debug log does not show anything interesting. 2024-05-24 12:15:08.436 ERROR (MainThread) [music_assistant.webserver] Error handling message: CommandMessage(message_id=16, command='config/providers/get_entries', args={'provider_domain': 'ytmusic', 'action': 'auth', 'values': {'auth_token': None, 'refresh_token': None, 'expiry_time': None, 'token_type': None, 'log_level': 'GLOBAL', 'session_id': 'bot4ciO-sl6'}}) |
Beta Was this translation helpful? Give feedback.
-
|
I just lost connection to YTMusic. Deleting and re-adding the provider fails to work :(. This is the first time this has happened to me. Not sure if they just changed something. |
Beta Was this translation helpful? Give feedback.
-
|
So I encountered multiple error before I can make YouTube music to work. And after checking the Browse, I saw duplicates and it seems to be related to the error I encounter. How can I remove them and leave just the working one? |
Beta Was this translation helpful? Give feedback.
-
|
Using the new (Nov 2024) cookie method apparently fails if you have a Google FAMILY account for YouTube Premium. I have such an account and when I copy and paste in my cookie info, I see "User Does Not Have a YouTube Music Premium Account". I then go to YTM, check account status, and my Family Account (US) is active and valid. I was using YT without issue before the Nov 2024 change. |
Beta Was this translation helpful? Give feedback.
-
|
So if the cookie expires after some time, how about to read it from a shared file in the filesystem? For example in /config or some other shared folder. Then we could figure out a way to update the cookie with a script or automation like described here: https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp |
Beta Was this translation helpful? Give feedback.
-
|
Hello, it may be that there is a new error again, I now always get the error when playing that the streaming details cannot be retrieved. I then tried to re-enter the cookie and got the following error message: ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats |
Beta Was this translation helpful? Give feedback.
-
|
I'm so tired of having to replace my Youtube token every day, it destroys my morning emotions when waking up with a random song from my favorite playlist every morning. I switched to the solution of syncing youtube playlists directly to nas and playing with plex media player. Genius idea!!! |
Beta Was this translation helpful? Give feedback.
-
|
I'm a little confused about how I can still sign in and authorize access to my YTM account when adding the source to a Sonos system or even in Tesla vehicles. But it no longer works here? Neither of those platforms requires me to pull a cookie in order for them to work. Would it be an option to create our own app on Google Dev and create/use our own OAuth credentials to get this running again? I've done this many times for Kodi YT addons and others in the past. |
Beta Was this translation helpful? Give feedback.
-
|
Is there any way to detect when the cookie is invalid? I don't mind switching the cookie out once I know about it, but I'd love to have some sort of alert to proactively tell me that I need to swap it, rather than music playback simply failing. |
Beta Was this translation helpful? Give feedback.
-
|
YTM integration no longer works for me. I tried to re-do the cookie thing but I keep getting error - I tried multiple cookies. ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats |
Beta Was this translation helpful? Give feedback.
-
|
The YouTube Music integration is not worth it. At best, I've been able to get it to stay connected until I sign in or out of my Google account. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, I've already updated the token generator from 1.1.0. How was it again that I could run the beta in parallel? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I'd like to suggest looking into the HACS integration ytube_music_player (https://github.com/KoljaWindeler/ytube_music_player), which has a very well-implemented OAuth token flow using credentials created in the Google Developer Console. |
Beta Was this translation helpful? Give feedback.
-
|
Is this broken again? I'm getting an error "User does not have YouTube Music Premium" which is not correct. I'm using MA and the YT Music PO Token Generator add-ons directly in HA. When I originally set this all up a few months ago it worked great. Since I haven't changed anything on my end, I'm guessing it's a Google thing. Anything I need to update, or do I need to wait for an update? |
Beta Was this translation helpful? Give feedback.
-
|
I cannot play my playlist via home assistant command on youtube music. Is there a way or what am I doing wrong here? |
Beta Was this translation helpful? Give feedback.
-
|
Hello everyone, I’m new to YouTube Music on Home Assistant. After entering the cookie, everything works fine for about 8 hours, but then it seems the cookie stops working. The log of the token generator appears to be doing its job, but sometimes I get this error: Could it be that the session lasts only around 8 hours? Do you also get this error, or is my YouTube token generator not working properly? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
|
Dear friends, I run Home Assistant inside a virtual machine on Proxmox. Whenever I stop the VM (either to create a snapshot or simply by shutting it down manually), after starting it again the cookie or token becomes invalid and I need to re-enter the cookie manually. This does not happen when restarting Home Assistant or rebooting the VM — it only happens when the VM is completely stopped and then started again. I’ve tested this several times and the result is always the same: after restarting the VM from a full stop, YouTube Music no longer works. @OzGav @MarvinSchenkel Is there any way to solve this issue? It’s a pity not to be able to take snapshots of HA when stopping the VM. I hope this information helps others who lose their YTM session for the same reason. |
Beta Was this translation helpful? Give feedback.
-
|
I have started getting the following error this afternoon:
I've refreshed the login cookie but still the same. Anybody else seeing this? |
Beta Was this translation helpful? Give feedback.
-
|
No I'm not on the Beta channel. I'm on 2.5.8. Will wait for the next release. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
No reloading the provider doesn't fix the issue.
…On Thu, 25 Sept 2025, 10:14 Marvin Schenkel, ***@***.***> wrote:
My bad, this feature actually already is available in 2.5.8. Try reloading
the YTM provider and see if that fixes it for you
@bb12ett <https://github.com/bb12ett>
—
Reply to this email directly, view it on GitHub
<#1551 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGAV6U44BNMTVKL3QAMKQVD3UOXAFAVCNFSM6AAAAAA5TX6BMWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINJQHA3DKMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
I've just started getting the same issue. I'm on the Beta release in Docker and I've refreshed the cookie, restarted the container and reloaded the provider. |
Beta Was this translation helpful? Give feedback.
-
|
Looks Like this issue has been fixed on YT-DLP yt-dlp/yt-dlp#14400 This suggests running
I have then tried this appeared to pull the latest This appeared to work but when i check the version I am still on 2025.9.05 |
Beta Was this translation helpful? Give feedback.
-
|
Restarting the addon has fixed this following the above |
Beta Was this translation helpful? Give feedback.
-
|
I am getting the following error again: I am not sure when it started -- it was some time this week. It happens even if I restart the YT Music PO Generator, or even if I do a full restart of HA. Anyone else getting this one again? |
Beta Was this translation helpful? Give feedback.









Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Music Assistant has support for the Youtube Music provider
DISCLAIMER
Please note that Youtube does not offer an official API to retrieve data and streams. This means that everything we built is on a best-effort basis. Unexpected behavior will occur whilst using this provider. For this reason if you have another streaming provider you may find it more convenient to use that instead of this one.
Documentation https://music-assistant.io/music-providers/youtube-music/
Beta Was this translation helpful? Give feedback.
All reactions