got video thumbnails working, added another pip packages to the README, and edited the templates/files.html accordingly.

This commit is contained in:
2021-01-11 12:50:31 +11:00
parent e730d56018
commit eeb24611c8
3 changed files with 16 additions and 33 deletions

View File

@@ -10,7 +10,8 @@
{% if obj.type=="Image" %}
<a href="{{file_data.symlink}}/{{obj.name}}"><img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img></a>
{% elif obj.type == "Video" %}
<i style="font-size:128px;" class="fas fa-file-video"></i>
<img width="128" height="128" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img>
<!--<i style="font-size:128px;" class="fas fa-file-video"></i>-->
{% endif %}
<figcaption class="figure-caption text-center">{{obj.name}}</figcaption>
</figure>