update subtitle transcoding

This commit is contained in:
Luke Pulverenti
2015-10-05 12:05:08 -04:00
parent 26487dc455
commit e5fdf31ec4
6 changed files with 49 additions and 14 deletions

View File

@@ -770,12 +770,12 @@ namespace MediaBrowser.Model.Dlna
{
return profile;
}
}
// For sync we can handle the longer extraction times
if (context == EncodingContext.Static && subtitleStream.IsTextSubtitleStream)
{
return profile;
// For sync we can handle the longer extraction times
if (context == EncodingContext.Static && subtitleStream.IsTextSubtitleStream)
{
return profile;
}
}
}
}

View File

@@ -28,15 +28,20 @@ namespace MediaBrowser.Model.Dlna
return list;
}
public bool SupportsLanguage(string language)
public bool SupportsLanguage(string subLanguage)
{
if (string.IsNullOrEmpty(language))
if (string.IsNullOrEmpty(Language))
{
language = "und";
return true;
}
if (string.IsNullOrEmpty(subLanguage))
{
subLanguage = "und";
}
List<string> languages = GetLanguages();
return languages.Count == 0 || ListHelper.ContainsIgnoreCase(languages, language);
return languages.Count == 0 || ListHelper.ContainsIgnoreCase(languages, subLanguage);
}
}
}