Comments (11)
I overlooked that one. Will tell you in an hour or two
from ytube_music_player.
I just fixed it by myself by safely accessing the HashMap
Please help me update your code if it's needed. Thanks
async def _tracks_to_attribute(self):
self.log_debug_later("[S] _tracks_to_attribute")
await self.async_update_extra_sensor('total_tracks', len(self._tracks))
track_attributes = []
for track in self._tracks:
info = self.extract_info(track)
artistInfo = info['track_artist']
# safely checking the artistInfo
if artistInfo is None:
artistInfo = ""
# safely checking the trackNameInfo
trackNameInfo = info['track_name']
if trackNameInfo is None:
trackNameInfo = ""
track_attributes.append(artistInfo + " - " + artistInfo)
await self.async_update_extra_sensor('tracks', track_attributes) # update extra sensor
# fire event to let media card know to update
event_data = {
"device_id": self._attr_unique_id,
"entity_id": self.entity_id,
"type": "reload_playlist",
}
self.hass.bus.async_fire(DOMAIN+"_event", event_data)
self.log_me('debug', "[E] _tracks_to_attribute")
from ytube_music_player.
I was about to report the same issue.
Will it be solved with an update or do we manually repair it?
from ytube_music_player.
@teo-luc you are most welcome to submit a pull request.
But I can copy you fix as well .. let me know
from ytube_music_player.
Hi @KoljaWindeler I get an issue while pushing the change.
Pushing to github.com:KoljaWindeler/ytube_music_player.git
ERROR: Permission to KoljaWindeler/ytube_music_player.git denied to teo-luc.
so please help me to update the change by following my fix here.
Thanks a lot π
from ytube_music_player.
Dear KoljaWindeler,
Could you please push this solved issue as a new update to the custom component?
This would prevent the users from downgrading to the May update again.
Many thanks in advance.
Kind regards,
Robin
from ytube_music_player.
hey guys, can you help me to reproduce this bug? what have you done to trigger it?
Your fix might solve it, but it is strange that it is needed in the first place. We're running extract_info to get the data here
so why is this happening?
from ytube_music_player.
Dear KoljaWindeler,
Nothing out of the ordinary is used to recreate this bug.
I just updated from the May update (previous one) to this one.
When trying to start a playlist after the update, using the input select entities, we got this error message and nothing was able to play.
Downgrading to the May update solved the issue. But upgrading again to the latest stable release causes this issue to appear again
from ytube_music_player.
Even with the latest release that I've uploaded yesterday?
from ytube_music_player.
I just have tested the latest update. The issue is no longer, but I noticed the shuffle playmode no longer works. Or it was just bad luck it started twice with the very first song of the playlist.
from ytube_music_player.
still strange that I can't reproduce it .. but alright .. the random was indeed changed / fixed.
The previous version was ALWAYS shuffeling the playlist. The code looked at the dropdown and used that shuffle or random mechanism. This was a problem for me, because my kids listen to audiobooks. The fix is that the code only looks at the shuffle/random mode if "shuffle" is active.
you can:
- click on the shuffle button of e.g. mini-media-player before starting your playlist (should be persistent until reboot)
- run the service: media_player.shuffle_set after reboot
- go the the advance configuration and check this
or maybe you have all that and just had some luck :)
from ytube_music_player.
Related Issues (20)
- Can't play library playlist, browsing the playlist crashes HOT 3
- Clarification about the loaded tracks limit HOT 1
- Can't get anything to play, playlist is fetched, error upon starting. HOT 1
- Deprecated methods in use (2024.5.0) HOT 1
- unable to select_option media player, error in line 36
- New Playlist Entity value not saved permanently HOT 3
- Media player is stopping after one song of a playlist chosen with the new SELECT entity HOT 7
- Please select a player before start playing, e.g. via the 'media_player.select_source' method or in the settings/config_flow HOT 6
- No Sound at all HOT 1
- Playlist plays in random order, seemingly no way to disable shuffle HOT 1
- Skip Track Using Remote HOT 2
- No matching entities found even though I have my usb audio connected and recognized by home assistant HOT 2
- Unfortunately we hit an error, please open a ticket - Integration no Longer Working HOT 2
- Γchec de l'appel du service media_player/turn_on. 'NoneType' object has no attribute 'state' HOT 4
- Songs stop playing after one track + media picture not shown HOT 13
- Start playing music with integration, control via phone apps? HOT 1
- New Update Error Uploaded Artists HOT 1
- Can't get YouTube Music to play on either Acrylic or Sonos HOT 1
- The playlist does not play.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ytube_music_player.