Skip to content

Commit

Permalink
fix: Fix crash in preview generation (xbapps#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshski authored Jun 16, 2022
1 parent 5072ff6 commit c451e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tasks/preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func GeneratePreviews() {
files, _ := scene.GetFiles()
if len(files) > 0 {
i := 0
for files[i].Exists() {
for i < len(files) && files[i].Exists() {
if files[i].Type == "video" {
log.Infof("Rendering %v", scene.SceneID)
destFile := filepath.Join(common.VideoPreviewDir, scene.SceneID+".mp4")
Expand Down

0 comments on commit c451e9a

Please sign in to comment.