Fix issue with video downloads and file names

This commit is contained in:
Alan Grainger
2024-11-18 14:18:13 +01:00
parent b9456afe5f
commit f974fc753f
3 changed files with 13 additions and 3 deletions
+5 -1
View File
@@ -21,7 +21,11 @@
<div id="lightgallery">
<% items.forEach(item => {
if (item.video) { %>
<a data-video='<%- item.video %>'>
<a data-video='<%- item.video %>'
<% if (item.downloadUrl) { %>
data-download-url="<%- item.downloadUrl %>"
<% } %>
>
<img alt="" src="<%- item.thumbnailUrl %>"/>
<div class="play-icon"></div>
</a>