amwpsaa wrote:Use the first internal picture as the thumbnail, if it is a video, use the video cover, if there is no picture, use the default picture as the thumbnail.
Yes :thumbsup: There is one huge challenge with this though:
1. You click a folder, request is sent to server/PHP.
2. PHP will read/loop
all files in the specific folder and return data to the application.
3. Now, if you want to include "thumbnails" for all subfolders of a folder, Files app will need to also search files inside each subfolder.
Instead of reading files inside a single folder, the process therefore requires reading files inside the specified folder AND all subfolders. If the folder contains 10 subfolders, it means 11 folders need to be processed instead of just one. This might not be slow (depends on server and content), but it certainly may affect the speed of Files app when clicking folders. The cache (stored inside _files/cache) will speed things up, but it won't help the first request when a folder gets processed. Also, it's more difficult to implement into Files app fast cache mechanism, which checks the folder "modified date" to check if cache is valid. If we need to validate if thumbnails for subfolders are valid, we would need to check "modified date" of all subfolders and include in cache validation for a single folder.
All in all, it can definitely be done, and it would definitely be cool. But if you are conserned by speed of the application, then it will have consequences. If it gets added, it will definitely be a config option, likely disabled by default.