Youtube Music - Media Browser

@JKW Thank you for the development of this, I used the older gmusic integration a lot and it is nice to be able to continue in the same way.

I have a use case that is currently not working for me, playing a playlist and stopping when the list is done. At the moment the list just keeps playing from the start again when the last song is played, which I guess is not the intention.
I think that the problem is in _get_track(). When the list is done the internal track counter is set to 0 and the first track is loaded and started again as far as I can see. I have solved it locally by adding

self._turn_off_media_player()
return

after reloading the playlist, but that might not work well in all use cases. This is the most common one for me by far though.

Well that IS intended behavior. But I can see use cases for the opposite. . I’ve created a ticket: https://github.com/KoljaWindeler/ytube_music_player/issues/19

Jkw

1 Like

Ah, yes, repeat mode was the correct description. :slightly_smiling_face:

We have a playlist that we play for our daughter at bedtime, and that should only play the list, not continue when the list is done.

Alright, will implement something tomorrow.
Jkw

1 Like

Hello. First of all, I want to thank the author for the work done. gmusic I could not configure, and now the server closes altogether. But there were no problems with youtubemusic. I heard my favorite tracks right after installation. However, the playlist played one or two tracks and stopped. I was ready to put up with this, but after updating the component, the playlists stopped loading. I don’t hear my favorite music anymore. Help me please. What should I pay attention to? Thank you in advance.

1 Like

Please have a look in your log if it points out what is going wrong.
You can get extended info by adding this into your confirmation.yaml

logger:
    default: warning
    logs:
      custom_components.ytube_music_player: debug

Jkw

please check the latest version and add the input boolean ytube_music_player_playcontinuous to your config and UI. feedback is appreciated :slight_smile:

Updated and added the input boolean and I am happy to report that it works exactly like I hoped :grinning:

1 Like

This is great, thank you. I can now have my music automatically pause when a Teams Call comes in.

I am guessing that the API doesn’t expose this but, I am lazy and I don’t have any play lists and I just used the “My Mix” that music automatically creates. These are not shown as a Source, are they available and I just need to do some trickery to get them to show up?

Well you can add the “my mix” to your library … Simply click the plus symbol and you should be able to find the list in the drop down.
Jkw

Hmm, well I am mostly dumb then :wink: I didn’t know I could do that.
However, I don’t see any playlists in the dropdown. Only Playlist Radio and Playlist.
Is there something else I need to check?

The Source drop-down can be “playlist / playlist radio”
The playlist dropdown should contain the playlists. Try restarting … Its possible that I only load the playlists during start up (will check)
Jkw

Installed the update which required a reboot, they all show up now.
Thanks for your work.

1 Like

I feel stupid but i´m unable to install your ytube_music_player. Can´t find it in HACS and when i try the manual variant i can´t find it in the integrations tab. Did the restart and also the refreshing. Help, please…

yep, sorry for the trouble … the pull request is hanging for more then 3 weeks already …


and without it I won’t be accepted into HACS default.

The best way is currently to add “https://github.com/KoljaWindeler/ytube_music_player” to the HACS as custom repository … pretty much nothing I can do about it.
JKW

thanks…worked out for me :slight_smile:

Has anyone got the brand account to work?
I’ve got all my music on a separate youtube music channel to the default but I get a load of errors if I enter the brand id in the config. I tried both the user ID and channel ID, not sure if either of those are correct.

Works great with no brand ID added, but all my playlists are on the other account.

Edit: Got it to work, it was neither the user ID or channel ID of the brand channel, it shows up in the URL but only on specific pages. Clicking “edit on google” from the brand channel youtube settings brought me to the right URL

1 Like

Like many others, i´m very thankfull for this addon. It works perfectly!!
I would like to implement a lot of Playlist and for that reason i would like to have an alternative to the playlist dropdown menu. I found that there´s a playlist addon for spotify. Is it possible to use this kind of playlist style for youtube music? Or is it doable to achieve this by using a picture or a picture glance card?If that´s the case, then please give me a hint. Thanks!!! :upside_down_face:

Hi, thanks.
I’m working on the addition of the media_browser …
and it sort of works … well … parts of it … for now I can browse the albums and playlist but nothing happens when I hit the “play” button … no function gets called. Trying to find out what is going on there.
Will take some days …
JKW

thanks for your work!