Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/a4f51aeef9b47c83b79a374306f5a81c0b75afc9?style=split&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

Added XviD to MediaInfoFormatter.

pull/2070/head
Taloth Saldono 8 years ago
parent c68ef626d2
commit a4f51aeef9

@ -44,6 +44,11 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
{ {
var audioFormat = mediaInfo.AudioFormat; var audioFormat = mediaInfo.AudioFormat;
if (audioFormat.IsNullOrWhiteSpace())
{
return audioFormat;
}
if (audioFormat == "AC-3") if (audioFormat == "AC-3")
{ {
return "AC3"; return "AC3";
@ -77,6 +82,11 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
{ {
var videoCodec = mediaInfo.VideoCodec; var videoCodec = mediaInfo.VideoCodec;
if (videoCodec.IsNullOrWhiteSpace())
{
return videoCodec;
}
if (videoCodec == "AVC") if (videoCodec == "AVC")
{ {
return sceneName.IsNotNullOrWhiteSpace() && Path.GetFileNameWithoutExtension(sceneName).Contains("h264") return sceneName.IsNotNullOrWhiteSpace() && Path.GetFileNameWithoutExtension(sceneName).Contains("h264")
@ -96,6 +106,11 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
return "MPEG2"; return "MPEG2";
} }
if (videoCodec.Equals("XviD", StringComparison.OrdinalIgnoreCase))
{
return "XviD";
}
Logger.Error("Unknown video codec: {0}", videoCodec); Logger.Error("Unknown video codec: {0}", videoCodec);
return videoCodec; return videoCodec;
} }

Loading…
Cancel
Save