func (d *FileDeleter) MarkMarkerFiles(scene *models.Scene, seconds int) error {
	videoPath := d.Paths.SceneMarkers.GetVideoPreviewPath(scene.GetHash(d.FileNamingAlgo), seconds)
	imagePath := d.Paths.SceneMarkers.GetWebpPreviewPath(scene.GetHash(d.FileNamingAlgo), seconds)
	screenshotPath := d.Paths.SceneMarkers.GetScreenshotPath(scene.GetHash(d.FileNamingAlgo), seconds)

	var files []string

	exists, _ := fsutil.FileExists(videoPath)
	if exists {
		files = append(files, videoPath)
	}

	exists, _ = fsutil.FileExists(imagePath)
	if exists {
		files = append(files, imagePath)
	}

	exists, _ = fsutil.FileExists(screenshotPath)
	if exists {
		files = append(files, screenshotPath)
	}

	return d.Files(files)
}
// MarkMarkerFiles deletes generated files for a scene marker with the
// provided scene and timestamp.
MarkMarkerFiles deletes generated files for a scene marker with the
provided scene and timestamp.
// MarkMarkerFiles deletes generated files for a scene marker with the // provided scene and timestamp .
func (d *FileDeleter) MarkMarkerFiles(scene *models.Scene, seconds int) error {
	videoPath := d.Paths.SceneMarkers.GetVideoPreviewPath(scene.GetHash(d.FileNamingAlgo), seconds)
	imagePath := d.Paths.SceneMarkers.GetWebpPreviewPath(scene.GetHash(d.FileNamingAlgo), seconds)
	screenshotPath := d.Paths.SceneMarkers.GetScreenshotPath(scene.GetHash(d.FileNamingAlgo), seconds)
	var files []string
	exists, _ := fsutil.FileExists(videoPath)
	if exists {
		files = append(files, videoPath)
	}
	exists, _ = fsutil.FileExists(imagePath)
	if exists {
		files = append(files, imagePath)
	}
	exists, _ = fsutil.FileExists(screenshotPath)
	if exists {
		files = append(files, screenshotPath)
	}
	return d.Files(files)
}
func ( d * FileDeleter ) MarkMarkerFiles ( scene * models . Scene , seconds int ) error { videoPath := d . Paths . SceneMarkers . GetVideoPreviewPath ( scene . GetHash ( d . FileNamingAlgo ) , seconds ) imagePath := d . Paths . SceneMarkers . GetWebpPreviewPath ( scene . GetHash ( d . FileNamingAlgo ) , seconds ) screenshotPath := d . Paths . SceneMarkers . GetScreenshotPath ( scene . GetHash ( d . FileNamingAlgo ) , seconds ) var files [ ] string exists , _ := fsutil . FileExists ( videoPath ) if exists { files = append ( files , videoPath ) } exists , _ = fsutil . FileExists ( imagePath ) if exists { files = append ( files , imagePath ) } exists , _ = fsutil . FileExists ( screenshotPath ) if exists { files = append ( files , screenshotPath ) } return d . Files ( files ) }
MarkMarkerFiles deletes generated files for a scene marker with the
provided scene and timestamp.
MarkMarkerFiles deletes generated files for a scene marker with the provided scene and timestamp .