pathofleastresistor / polr-ytube-media-card

31 stars 4 forks source link

Allow more card customizations #7

Open RobinR1 opened 9 months ago

RobinR1 commented 9 months ago

First of all, many thanks for this great card and extension to the ytube-music addon. But I would like to see more configuration options to allow hiding buttons from the card. Currently the most important one for me personally would be the target selection button, since the ytube addon fails to stream to specific targets here (Sonos, DNLA amp) and needs workaround automations (stream to owntone server which in turn streams to Sonos, or stream to Kodi and set amplifier to select Kodi, etc..). So I have custom buttons/automations for playing ytube in each room so I would like to hide the target selection button to not confuse the less tech savy house members :-)..

But I think it would be a great feature to allow:

Anyways, the card is already a huge step forward for the non-tech end users. Thanks!

pathofleastresistor commented 9 months ago

Thanks - yes customization is something I definitely think about and its usually the first request that comes from introducing a new card :). I want to land on a stable UX for the full card first and then add customization. I've learned this from past cards I've worked on.

I would like to hide the target selection button

For your case, you can land this now with card_mod

type: custom:polr-ytube-playing-card
entity_id: media_player.youtube_music
card_mod:
  style: |
    .source {
      display: none;
    }

a search tab, but it seems to be gone when content is playing in the version I currently use. This would be a great addition to allow this tab to be optionally available with a showSearchtab option or so).

Oh I combined "For You" and "Search" into one tab, so it's not gone.

RobinR1 commented 8 months ago

Thanks for the answer and suggestion on how to fix my problem. I will try that out soon. Meanwhile I also found the Search inside the For You :-)

and for the rest, I will then patiently await the "final" version with customization options :-)

beesee78 commented 5 months ago

@pathofleastresistor great work, is there a way to hide the progress indicator? I've tried card_mod: style: | .progress-row { display: none; }

Forgive the bad formatting above, line breaks are in my yaml :)