mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
fixes #236 - Subtitle charset
This commit is contained in:
parent
aec36e8096
commit
4b3ce596a1
1 changed files with 27 additions and 1 deletions
|
@ -712,12 +712,38 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||||
{
|
{
|
||||||
switch (language.ToLower())
|
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":
|
case "ara":
|
||||||
return "-sub_charenc windows-1256";
|
return "-sub_charenc windows-1256";
|
||||||
case "heb":
|
case "heb":
|
||||||
return "-sub_charenc windows-1255";
|
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:
|
default:
|
||||||
return string.Empty;
|
return "-sub_charenc windows-1252";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue