bushvin / hass-integrations

My custom Home Assistant integrations
Apache License 2.0
61 stars 11 forks source link

Adding a song to the queue, replays the currently playing song #45

Closed Switch123456789 closed 10 months ago

Switch123456789 commented 10 months ago

I just noticed that whenever I add a track to the queue using the media_player.play_media Service, the currently playing song plays from the beginning.

bushvin commented 10 months ago

Should be fixed with v2.0.3

Switch123456789 commented 10 months ago

Hmmm, for me it's still happening, I tested it only by adding youtube songs so far.

bushvin commented 10 months ago

Okay maybe it's related to the youtube extension. I know it is quirky.

Would you mind sharing the yaml service call?

Switch123456789 commented 10 months ago

I just checked, it happens with every extension (local, mixcloud, youtube, http). Service call:

service: media_player.play_media
data:
  media_content_id: youtube:video:3O1dsYURVxY
  media_content_type: music
  enqueue: add
target:
  entity_id: media_player.server_mopidy
bushvin commented 10 months ago

I mistakenly thought you used enqueue: play, as that's where I immediately spotted an issue. I believe I have it fixed now, with v2.0.4: #47

Switch123456789 commented 10 months ago

I just checked, seems to work perfectly fine now! :) all other enqueue-options seem to work as expected too! :) merci beaucoup

bushvin commented 10 months ago

Thanks for testing this and your patience!