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

Folder sort #20

Open dpomnean opened 3 years ago

dpomnean commented 3 years ago

Hello love the frontend so far. I have a question about sorting. I have a main folder, Camera1 and in there I have subfolders for dates, '2021-08-30', '2021-08-29', etc. and then videos with the %H-%M-%S format for the name, '06-36-14.mp4', '19-53-45.mp4'.

In this format the gallery seems to sort it based on only the file name, is it possible to sort by the subfolder name?

This would be the path:

media-source://media_source/local/motioneye/Camera1 (& subdirs)

(subdirs containing the date folders)

TarheelGrad1998 commented 3 years ago

Hrm, the card doesn't support that now, but it is something I could do. At some point I want to go back in and streamline the media source retrieving, I'll try to work this in then.

dpomnean commented 3 years ago

The sorting will work if I add the date folders individually and move it up/down on the priority. Not the greatest but at least that does work for now

TarheelGrad1998 commented 1 year ago

I'm not sure if I completely covered this in v3.4, but check out the folder_format option and let me know how this works.