From 6cab9dc2275785274200fa7fc70703d111ed701f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 19 Sep 2013 20:58:15 -0400 Subject: [PATCH] fix ssa/ass codec name --- MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs index 6eeaba2e0..f39f6bec5 100644 --- a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs +++ b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfoProvider.cs @@ -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))