TarheelGrad1998/gallery-card

failing when calling more than 70 images

dharvey242 opened this issue · 1 comments

Hi, thanks for the code. Generally everything works as expected. However I have a folder that has around 150 images. I get the error - invalid path when I raise the maximum_files level beyond 70 images. Anything less than that works fine. I've resized the images so they're less than 250kb each.

My yaml is

type: custom:gallery-card
entities:
  - path: media-source://media_source/local/picture_frame/Pictures
maximum_files: 70
show_reload: true

If I leave out the maximum_files parameter then it also throws the error.

Whether it makes a difference but the files are held in on another device and added as media source in HA.

Just noticed some of the files have the extension *.jpeg rather than *.jpg. Could that be a factor?

All help is appreciated.

although the post is surprisingly exactly a year old... I have the same problem. The media source component itself seems to work as intended since I can open the files in the media library but the gallery component shows the error when there are 70 or more images in the directory