admin: Fix video route

This commit is contained in:
nemunaire 2022-05-23 01:39:35 +02:00
commit 4a190f51c5
8 changed files with 28 additions and 7 deletions

View file

@ -235,6 +235,7 @@ func BuildExercice(i Importer, theme *fic.Theme, epath string, dmap *map[int64]*
errs = append(errs, fmt.Sprintf("%q: resolution.mp4: The file is empty!", edir))
e.VideoURI = ""
} else {
e.VideoURI = path.Join("$FILES$", e.VideoURI)
resolutionFound = true
}