avoid .lvix files
All checks were successful
gitea/video-server-backend/pipeline/head This commit looks good
All checks were successful
gitea/video-server-backend/pipeline/head This commit looks good
This commit is contained in:
parent
55220e73f8
commit
298624c673
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user