func GetCaptionsLangFromPath(captionPath string) string {
	langCode := LangUnknown
	basename := strings.TrimSuffix(captionPath, filepath.Ext(captionPath)) // caption filename without the extension
	languageExt := filepath.Ext(basename)
	if len(languageExt) > 2 && IsValidLanguage(languageExt[1:]) {
		langCode = languageExt[1:]
	}
	return langCode
}
// GetCaptionsLangFromPath returns the language code from a given captions path
// If no valid language is present LangUknown is returned
GetCaptionsLangFromPath returns the language code from a given captions path
If no valid language is present LangUknown is returned
// GetCaptionsLangFromPath returns the language code from a given captions path // If no valid language is present LangUknown is returned
func GetCaptionsLangFromPath(captionPath string) string {
	langCode := LangUnknown
	basename := strings.TrimSuffix(captionPath, filepath.Ext(captionPath)) 
	languageExt := filepath.Ext(basename)
	if len(languageExt) > 2 && IsValidLanguage(languageExt[1:]) {
		langCode = languageExt[1:]
	}
	return langCode
}
func GetCaptionsLangFromPath ( captionPath string ) string { langCode := LangUnknown basename := strings . TrimSuffix ( captionPath , filepath . Ext ( captionPath ) ) languageExt := filepath . Ext ( basename ) if len ( languageExt ) > 2 && IsValidLanguage ( languageExt [ 1 : ] ) { langCode = languageExt [ 1 : ] } return langCode }
GetCaptionsLangFromPath returns the language code from a given captions path
If no valid language is present LangUknown is returned
GetCaptionsLangFromPath returns the language code from a given captions path If no valid language is present LangUknown is returned
// caption filename without the extension