Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid date #76

Open
mihaimdinca opened this issue Oct 23, 2023 · 1 comment
Open

Invalid date #76

mihaimdinca opened this issue Oct 23, 2023 · 1 comment

Comments

@mihaimdinca
Copy link

mihaimdinca commented Oct 23, 2023

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:

  • path: media-source://media_source/local/db/motion/
    recursive: true
    menu_alignment: Responsive
    maximum_files: 1000
    folder_format: YYYYMMDD/HH/
    file_name_format: HHmmss
    caption_format: DD.MM.YYYY HH:mm:ss
    parsed_date_sort: true

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant