Releases: KoljaWindeler/ytube_music_player
Added 'album of [current track]' to media_browser
Added 'album of [current track]' to media_browser
Improved services
Added Features
- Dissolve rate_track service call, you can now directly call this function as shown below. This increases the user friendliness as direct calls have examples and are easier to select. (This not a breaking change, old function call still works)
service: ytube_music_player.rate_track
data:
entity_id: media_player.ytube_music_player
rating: thumb_up
- Added limit_count function. This can be used e.g. to auto stop playback after 3 tracks
service: ytube_music_player.limit_count
data:
entity_id: media_player.ytube_music_player
limit: 3
This was also enhanced from 20210719.02 to 20210720.01.
There are basically two limits: 1. in the config_flow (when you install or configure the integration) you set the request limit (how many tracks are requested at Ytube_music). This 2nd limit will reduce the amount of tracks that'll be loaded into the playlist. This is in particular important for the shuffle mode: If your playlist has 50 items but you only want to listen to 3 random ones you need to set the request limit high enough (50+) and the limit_count to 3.
Bugfix
Fixes the VID_CHANNEL mode, thanks to @sdrapha
Further Media_browser enhancements
Added features for the media_browser
- All available media_player are now listed in the browser and so you can switch the output device directly via the media_browser
- The current playlist is shown and the title can directly be selected (player will jump the the title and keep the current playlist)
Bugfix
Fixes missing search results in the media_browser
Add to playlist
Feature
Added new service 'add_to_playlist'
.
I mostly listen to music in channel
mode. That mode is pretty much the same as the radio feature of youtube music. You have to provide a playlist ID and the player picks a random track of that playlist and creates a radio based on that title. That way you get a nice playlist that is just right for the mood.
My issue was that every once in a while I listen to a really nice song that I didn't knew before. Sure I could open my YTube Music app on the phone, search for the song and add that song to the particular playlist .. but honestly ... I rarely did that. So my playlists sadly never evolved.
This new service is here to change that. It can directly be called without further arguments to add the current track to the current playlist.
You can however also override the playlist or song by providing a dedicated id:
service: ytube_music_player.add_to_playlist
data:
entity_id: media_player.ytube_music_player
adds the current song to the current playlist (so you have to have the player in channel mode)
service: ytube_music_player.add_to_playlist
data:
entity_id: media_player.ytube_music_player
song_id: eCpt2qaqKW0
adds a specific song to the current playlist (so you have to have the player in channel mode)
service: ytube_music_player.add_to_playlist
data:
entity_id: media_player.ytube_music_player
song_id: eCpt2qaqKW0
playlist_id: PLZvjm51R8SGuNroyDal3v9BYdTw6yqrrM
adds a specific song to a specific playlist (can be called in any mode)
Merge Beta to stable
This release will merge all beta features to the release branch as there is no negative feedback
Added search capability
Feature
Todays BETA release contains a new feature: searching on youTube music (initial testing version)
To understand HOW to search (it's a bit tricky) please have a look at
a) the readme faq section
b) watch directly this little video
Please provide feedback
Added more header fields
The ytubeapi added more field to the setup request: https://github.com/sigma67/ytmusicapi/releases/tag/0.17.0
this beta should follow the behavior and include as many fields as possible into the cookie.
Please report back if this is working for you (forum)
Added title/track/artwork to player data
Features
- added Title/Artist/Artwork to streaming data, this subject of testing. It works on my chromecasts / google home mini / browser_mod player but might lead to some issues on other players
BugFix
- Ignore issues with upper/lower-case of entity Ids
Added signatureTimestamp
This should fix the new coding version of youtube
Beta: choose stream with the best quality
This release adds the feature to search for the stream with the best audio quality instead of grabbing the first stream available.
It also cleans the way how the logs are printed, this is a bit experimental, thus this release will get beta status. please provide feedback if it works for you in the forum