mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
update didl xml
This commit is contained in:
parent
6aa106f1b7
commit
1539836ca1
11 changed files with 68 additions and 51 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue