fixes #236 - Subtitle charset

This commit is contained in:
Luke Pulverenti 2013-07-18 08:07:53 -04:00
parent aec36e8096
commit 4b3ce596a1

View File

@ -712,12 +712,38 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
{
switch (language.ToLower())
{
case "pol":
case "cze":
case "ces":
case "slo":
case "slk":
case "hun":
case "slv":
case "srp":
case "hrv":
case "rum":
case "ron":
case "rup":
case "alb":
case "sqi":
return "-sub_charenc windows-1250";
case "ara":
return "-sub_charenc windows-1256";
case "heb":
return "-sub_charenc windows-1255";
case "grc":
case "gre":
return "-sub_charenc windows-1253";
case "crh":
case "ota":
case "tur":
return "-sub_charenc windows-1254";
case "rus":
return "-sub_charenc windows-1251";
case "vie":
return "-sub_charenc windows-1258";
default:
return string.Empty;
return "-sub_charenc windows-1252";
}
}