avoid .lvix files
All checks were successful
gitea/video-server-backend/pipeline/head This commit looks good

This commit is contained in:
Jose134 2024-08-11 02:18:02 +02:00
parent 55220e73f8
commit 298624c673

View File

@ -91,7 +91,7 @@ func connectSearchSocket(w http.ResponseWriter, r *http.Request) {
}
for _, file := range files {
if strings.Contains(file, ".mp4") {
if _, res := strings.CutSuffix(file, ".lvix"); !res {
jsonMsg, err := json.Marshal(Video{Filename: file})
if err != nil {
log.Println(err)