fix ssa/ass codec name

This commit is contained in:
Luke Pulverenti 2013-09-19 20:58:15 -04:00
parent dd63d20e89
commit 6cab9dc227

View File

@ -458,7 +458,7 @@ namespace MediaBrowser.Providers.MediaInfo
Type = MediaStreamType.Subtitle,
IsExternal = true,
Path = fullName,
Codec = "srt"
Codec = Path.GetExtension(fullName).ToLower().TrimStart('.')
});
}
else if (fileNameWithoutExtension.StartsWith(videoFileNameWithoutExtension + ".", StringComparison.OrdinalIgnoreCase))