update didl xml

This commit is contained in:
Luke Pulverenti
2016-11-06 12:30:44 -05:00
parent 6aa106f1b7
commit 1539836ca1
11 changed files with 68 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using MediaBrowser.Model.Diagnostics;
using MediaBrowser.Model.Logging;
@@ -40,9 +41,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
{
}
output = output ?? string.Empty;
if (logOutput)
{
_logger.Info("ffmpeg info: {0}", output ?? string.Empty);
_logger.Info("ffmpeg info: {0}", output);
}
if (string.IsNullOrWhiteSpace(output))
@@ -55,6 +58,17 @@ namespace MediaBrowser.MediaEncoding.Encoder
return false;
}
output = " " + output + " ";
for (var i = 2013; i <= 2015; i++)
{
var yearString = i.ToString(CultureInfo.InvariantCulture);
if (output.IndexOf(" " + yearString + " ", StringComparison.OrdinalIgnoreCase) != -1)
{
return false;
}
}
return true;
}