TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
99 stars 33 forks source link

Invalid date #76

Open mihaimdinca opened 11 months ago

mihaimdinca commented 11 months ago

I have a file structure like this: example: DB/motion/20231023/21/213352.jpg I want to read the last 100 files. My config is like this:

type: custom:gallery-card entities:

The problem is that it seems that the date (obtained from the folder_format) is ignored when sorting and only the file_name_format is considered (which in my case only contains the time) and the list then is made up of pictures from different dates sorted by hour only

mihaimdinca commented 11 months ago

Now I see you mentioned this in the description. I have tweaked my file naming as a workaround and I works very well. So please treat this as a feature request and not as a bug. Thank you!