luixal / lovelace-media-source-image-card

A Lovelace custom card for showing images stored in Media Source
GNU General Public License v3.0
21 stars 0 forks source link

double media-source in the url #11

Closed 532910 closed 7 months ago

532910 commented 7 months ago

What is the reason for doubling media-source? Could it be media-source://share_name/image.jpeg instead of media-source://media-source/local/share_name/image.jpeg?

luixal commented 7 months ago

I don't know a lot about how HA handles this paths. I could have hardcoded the media-source://media-source/local slice of the path, but I prefered to let it to the user.

This card can also show regular images so another option for adding that slice would have been needed.

532910 commented 7 months ago

I found this format in home-assistant docs: https://www.home-assistant.io/integrations/media_source/#playing-media-from-a-media-source

So my question about doubling is not valid.