func CleanCaptions(scenePath string, captions []*models.SceneCaption) (cleanedCaptions []*models.SceneCaption, changed bool) {
	changed = false
	for _, caption := range captions {
		found := false
		f := caption.Path(scenePath)
		if _, er := os.Stat(f); er == nil {
			cleanedCaptions = append(cleanedCaptions, caption)
			found = true
		}
		if !found {
			changed = true
		}
	}
	return
}
// CleanCaptions removes non existent/accessible language codes from captions
CleanCaptions removes non existent/accessible language codes from captions
// CleanCaptions removes non existent / accessible language codes from captions
func CleanCaptions(scenePath string, captions []*models.SceneCaption) (cleanedCaptions []*models.SceneCaption, changed bool) {
	changed = false
	for _, caption := range captions {
		found := false
		f := caption.Path(scenePath)
		if _, er := os.Stat(f); er == nil {
			cleanedCaptions = append(cleanedCaptions, caption)
			found = true
		}
		if !found {
			changed = true
		}
	}
	return
}
func CleanCaptions ( scenePath string , captions [ ] * models . SceneCaption ) ( cleanedCaptions [ ] * models . SceneCaption , changed bool ) { changed = false for _ , caption := range captions { found := false f := caption . Path ( scenePath ) if _ , er := os . Stat ( f ) ; er == nil { cleanedCaptions = append ( cleanedCaptions , caption ) found = true } if ! found { changed = true } } return }
CleanCaptions removes non existent/accessible language codes from captions
CleanCaptions removes non existent / accessible language codes from captions