Youtube Music #606
Replies: 31 comments 131 replies
-
Thank you for more detailed description. I did it. Copied cookies. Entered Youtube User ID which I get from https://www.youtube.com/account_advanced (I hope youtube ID is the same for Youtube Music). Still the same problem: Setup failed of provider ytmusic: '__Secure-3PAPISID' |
Beta Was this translation helpful? Give feedback.
-
Do you need Youtube Premium to use Youtube Music? I am able to login but nothing loads in Playlists/Artists etc |
Beta Was this translation helpful? Give feedback.
-
Is there any chance of utilising a higher quality stream with YTM? It looks like anything I play from YTM is 44.1kHz/16bits. |
Beta Was this translation helpful? Give feedback.
-
Can someone tell me how to create an automation in HA that will randomly play music from my YT music playlist. Currently I'm able to play from my playlist but it don't randomize it. I did select random setting in YT site from a computer. I do have a premium account. |
Beta Was this translation helpful? Give feedback.
-
Howdy folks, I've managed to get this all logged in but it doesn't function... It controls the devices (i.e. I can hear/see the volumes increasing on the device when I adjust it from HA MA) but it will not play music despite me waiting since 1954.. the year 1954 not the 24hr clock time. But seriously, I've followed the instructions to the best of my ability so I have the developer tools showing the network tab and I filtered for 'browse' which gave about 4 mentions; 1x ctoken and 3x key types. I confirmed there is a 200 reply. However, there is no 'Summary' area that I can see; instead I'm offered "General", "Response Headers" and "Request Headers". I am using MS Edge (Version 105.0.1343.33 (Official build) (64-bit) on Windows 10) I've tried various cookie cut & pastes, some allow me to get logged in whilst others don't. Using the ones that allow log in, none of them allow for playing music - but they do allow control of the device (in my case, my projector and my bedroom nest hub). |
Beta Was this translation helpful? Give feedback.
-
My cookie field looks like this:
I had to remove everything before |
Beta Was this translation helpful? Give feedback.
-
Hi. I'm having some problems with Music Assistant in connection with YoutTube Music. Some playlists are not played. Sometimes it takes a long time for the music to start playing. Does anyone know a solution? I haven't had this problem with Spotify yet. |
Beta Was this translation helpful? Give feedback.
-
Now i have reinstalled the Music Assistant Addoon. Job [Library sync for provider Youtube Music] failed with error Track is missing artist(s). any idea? |
Beta Was this translation helpful? Give feedback.
-
Hi, I may have another problem. With Spotify, the current playlist or the current album is used. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if anybody can benefit from this: When I was getting an error during the set up with my cookie, I opened a new incognito tab and followed of the process and grabbed the cookie that way. Since then I've had no issue. |
Beta Was this translation helpful? Give feedback.
-
I hate to be that guy, but I cannot get this working. I have tried multiple different cookies, none work. Sometimes it is accepted by the integration and the error clears, however nothing loads. Any ideas? Thanks |
Beta Was this translation helpful? Give feedback.
-
And make sure not to explicitly logout in the YouTube Music app afterwards.
That will invalidate the cookie.
Op zo 22 jan. 2023 om 16:04 schreef Manuel Matus ***@***.***>
… Get the cookie using an incognito window.
—
Reply to this email directly, view it on GitHub
<https://github.com/music-assistant/hass-music-assistant/discussions/606#discussioncomment-4749998>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEG2MJ3LYVTMGJ2RKZVGG4DWTVEAPANCNFSM526ZXUQQ>
.
You are receiving this because you were mentioned.Message ID:
<music-assistant/hass-music-assistant/repo-discussions/606/comments/4749998
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
I still get the dreaded __Secure-3PAPISID error. I have two factor on for this account, could that be the issue? I've tried to get my login cookie, have done it many different ways, different browsers, incognito, and it's always the same. I'm using my email address to login but I also have my 21 digit to use if that is required. I'm running HA 2023.1.1 (the latest release available to me) and MA 2022.12.1 (no other works with the current HA) |
Beta Was this translation helpful? Give feedback.
-
My cookie didn't start with LOGIN_INFO but started with CONSENT=PENDING+249........, at first I only copied the part starting with LOGIN_INFO until the end but that didn't work and also gave me the dreaded __Secure-3PAPISID error, I had to copy everything from the start of the cookie to get it to work |
Beta Was this translation helpful? Give feedback.
-
Why not just use Google app passwords here: |
Beta Was this translation helpful? Give feedback.
-
I think there is an issue if you have multiple youtube channels on the same account: it only picks the first channel... How can you choose which channel to select? |
Beta Was this translation helpful? Give feedback.
-
So excited to get Music Assistant 2.0 Beta, |
Beta Was this translation helpful? Give feedback.
-
I'm adding a script and want to play a playlist from Youtube music. How do I find the playlist content ID? What do I write in the "content type" field? |
Beta Was this translation helpful? Give feedback.
-
Question, is there a way to automate the "synchronize now" command? |
Beta Was this translation helpful? Give feedback.
-
Testing out the current beta version (on a RPI4 4GB). Works great 👍. The only issue I had so far is that playback kinda got stuck after the end of some songs (MA did not progress to the next song). After skipping to the next song manually it was fine again for a while. One thing I noticed is that it does seem to also use videos as a source (there was a video thumbnail as album art in the playback info). Would it be possible to both of these settings can be changed in the web app on https://music.youtube.com. Or does the streaming quality not really matter since MA likely has to re-encode the stream anyways? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have a separate question/issue: MA isn't seeing my Google Home Mini's as media players. Using the Google Cast integration, I can use them as media players from within Home Assistant, but MA doesn't see them. I couldn't get auto-discovery to work, so I hardcoded their IP addresses in the Google Cast integration's config, and I suspect that's why MA doesn't see them: they're on a different subnet and I can't get IGMP Proxy to work. Am I on the right track, or might something else be going on? |
Beta Was this translation helpful? Give feedback.
-
MA Beta: When I try to use a brand account after a token was received and I click next, I see "Could not identify the URL for base.js player." alert. When I use normal account (not a brand account) it works fine. Unfortunately - all of my music and playlists are on the brand account, so it is important for me to use this. |
Beta Was this translation helpful? Give feedback.
-
With the radio mode I see there are 25 tracks pulled into a playlist. |
Beta Was this translation helpful? Give feedback.
-
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. partial log: |
Beta Was this translation helpful? Give feedback.
-
Discussion restarted at https://github.com/orgs/music-assistant/discussions/1551 in order to remove all MA1 info |
Beta Was this translation helpful? Give feedback.
-
Music Assistant version 2022.7 introduced support of the Youtube Music provider, contributed by @MarvinSchenkel.
Features and generic notes
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.
Installation instructions MA 2.0
Music Assistant 2.0 adds OAuth support to Youtube Music, which means we can just login like we would on let's say Gmail. To add the Youtube Music provider to MA:
Installation instructions MA 1.X
Youtube Music does not have an official API that can be used to interact with. This means that logging in cannot be done in the same way as you are used to from providers like Spotify or TuneIn radio. You will need a cookie in order to login to Youtube Music. Don't worry, this FAQ explains it all and you will be streaming music in no-time :-).
For the sake of clarity, your Cookie value should look something like this:
![image](https://user-images.githubusercontent.com/17671719/178430261-a473c19a-89a3-426b-ac4e-dad77ddb88e3.png)
Copy everything from start until the end. In this case:
LOGIN_INFO=.....ZU_laPBw
Beta Was this translation helpful? Give feedback.
All reactions