diff --git a/cmd/fastgallery/main.go b/cmd/fastgallery/main.go index 5adc7c1..359a8c2 100644 --- a/cmd/fastgallery/main.go +++ b/cmd/fastgallery/main.go @@ -282,7 +282,7 @@ func isMediaFile(filename string, noVideos bool) bool { return true } - if noVideos && isVideoFile(filename) { + if !noVideos && isVideoFile(filename) { return true } diff --git a/testing/gallery/_fullsize/2021-01-02 23.51.34.mp4 b/testing/gallery/_fullsize/2021-01-02 23.51.34.mp4 new file mode 100644 index 0000000..f9a0926 Binary files /dev/null and b/testing/gallery/_fullsize/2021-01-02 23.51.34.mp4 differ diff --git a/testing/gallery/_original/2021-01-02 23.51.34.mp4 b/testing/gallery/_original/2021-01-02 23.51.34.mp4 new file mode 120000 index 0000000..c017102 --- /dev/null +++ b/testing/gallery/_original/2021-01-02 23.51.34.mp4 @@ -0,0 +1 @@ +/home/toni/go/src/github.com/tonimelisma/fastgallery/testing/source/2021-01-02 23.51.34.mp4 \ No newline at end of file diff --git a/testing/gallery/_thumbnail/2021-01-02 23.51.34.jpg b/testing/gallery/_thumbnail/2021-01-02 23.51.34.jpg new file mode 100644 index 0000000..9e43820 Binary files /dev/null and b/testing/gallery/_thumbnail/2021-01-02 23.51.34.jpg differ diff --git a/testing/gallery/index.html b/testing/gallery/index.html index 6954023..444151c 100644 --- a/testing/gallery/index.html +++ b/testing/gallery/index.html @@ -42,22 +42,27 @@
- 2021-02-22 15.36.43-1.heic + 2021-01-02 23.51.34.mp4 + 2021-01-02 23.51.34.mp4 +
+ +
+ 2021-02-22 15.36.43-1.heic 2021-02-22 15.36.43-1.heic
- 2021-02-25 15.40.44.png + 2021-02-25 15.40.44.png 2021-02-25 15.40.44.png
- _DSC9363_DxO.jpg + _DSC9363_DxO.jpg _DSC9363_DxO.jpg
- _DSC9439.jpg + _DSC9439.jpg _DSC9439.jpg
@@ -111,6 +116,14 @@ filename: "2021-01-01 17.11.35.heic" } + , + { + thumbnail: "_thumbnail/2021-01-02 23.51.34.jpg", + fullsize: "_fullsize/2021-01-02 23.51.34.mp4", + original: "_original/2021-01-02 23.51.34.mp4", + filename: "2021-01-02 23.51.34.mp4" + } + , { thumbnail: "_thumbnail/2021-02-22 15.36.43-1.jpg",