update nlog
This commit is contained in:
parent
231e89e4b9
commit
f45e166604
|
@ -48,9 +48,9 @@
|
||||||
<RunPostBuildEvent>Always</RunPostBuildEvent>
|
<RunPostBuildEvent>Always</RunPostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="NLog, Version=3.1.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
<Reference Include="NLog, Version=3.2.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\packages\NLog.3.1.0.0\lib\net45\NLog.dll</HintPath>
|
<HintPath>..\packages\NLog.3.2.0.0\lib\net45\NLog.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SharpCompress, Version=0.10.2.0, Culture=neutral, PublicKeyToken=beaf6f427e128133, processorArchitecture=MSIL">
|
<Reference Include="SharpCompress, Version=0.10.2.0, Culture=neutral, PublicKeyToken=beaf6f427e128133, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="NLog" version="3.1.0.0" targetFramework="net45" />
|
<package id="NLog" version="3.2.0.0" targetFramework="net45" />
|
||||||
<package id="SimpleInjector" version="2.6.1" targetFramework="net45" />
|
<package id="SimpleInjector" version="2.6.1" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
||||||
|
|
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace MediaBrowser.LocalMetadata
|
namespace MediaBrowser.LocalMetadata
|
||||||
{
|
{
|
||||||
public abstract class BaseXmlProvider<T> : ILocalMetadataProvider<T>, IHasChangeMonitor
|
public abstract class BaseXmlProvider<T> : ILocalMetadataProvider<T>, IHasChangeMonitor, IHasOrder
|
||||||
where T : IHasMetadata, new()
|
where T : IHasMetadata, new()
|
||||||
{
|
{
|
||||||
protected IFileSystem FileSystem;
|
protected IFileSystem FileSystem;
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
using System.Collections.Generic;
|
using MediaBrowser.Common.IO;
|
||||||
using System.IO;
|
|
||||||
using System.Threading;
|
|
||||||
using MediaBrowser.Common.IO;
|
|
||||||
using MediaBrowser.Controller.Entities.TV;
|
using MediaBrowser.Controller.Entities.TV;
|
||||||
using MediaBrowser.Controller.Providers;
|
using MediaBrowser.Controller.Providers;
|
||||||
using MediaBrowser.LocalMetadata.Parsers;
|
using MediaBrowser.LocalMetadata.Parsers;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
namespace MediaBrowser.LocalMetadata.Providers
|
namespace MediaBrowser.LocalMetadata.Providers
|
||||||
{
|
{
|
||||||
public class EpisodeXmlProvider : BaseXmlProvider<Episode>, IHasOrder
|
public class EpisodeXmlProvider : BaseXmlProvider<Episode>
|
||||||
{
|
{
|
||||||
private readonly ILogger _logger;
|
private readonly ILogger _logger;
|
||||||
|
|
||||||
|
@ -40,14 +40,5 @@ namespace MediaBrowser.LocalMetadata.Providers
|
||||||
|
|
||||||
return directoryService.GetFile(metadataFile);
|
return directoryService.GetFile(metadataFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Order
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
// After Xbmc
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,12 +223,6 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <value>The run time ticks.</value>
|
/// <value>The run time ticks.</value>
|
||||||
public long? RunTimeTicks { get; set; }
|
public long? RunTimeTicks { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the recursive unplayed item count.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The recursive unplayed item count.</value>
|
|
||||||
public int? RecursiveUnplayedItemCount { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the play access.
|
/// Gets or sets the play access.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -7,6 +7,7 @@ using MediaBrowser.Controller.Channels;
|
||||||
using MediaBrowser.Controller.Configuration;
|
using MediaBrowser.Controller.Configuration;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
|
using MediaBrowser.Controller.Providers;
|
||||||
using MediaBrowser.Model.Channels;
|
using MediaBrowser.Model.Channels;
|
||||||
using MediaBrowser.Model.Configuration;
|
using MediaBrowser.Model.Configuration;
|
||||||
using MediaBrowser.Model.Dto;
|
using MediaBrowser.Model.Dto;
|
||||||
|
@ -208,16 +209,6 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||||
CancellationToken cancellationToken,
|
CancellationToken cancellationToken,
|
||||||
string path)
|
string path)
|
||||||
{
|
{
|
||||||
var limit = GetDownloadLimit(channelOptions);
|
|
||||||
|
|
||||||
if (limit.HasValue)
|
|
||||||
{
|
|
||||||
if (IsSizeLimitReached(path, limit.Value))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var itemId = item.Id.ToString("N");
|
var itemId = item.Id.ToString("N");
|
||||||
var sources = await _manager.GetChannelItemMediaSources(itemId, false, cancellationToken)
|
var sources = await _manager.GetChannelItemMediaSources(itemId, false, cancellationToken)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
@ -230,6 +221,16 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var limit = GetDownloadLimit(channelOptions);
|
||||||
|
|
||||||
|
if (limit.HasValue)
|
||||||
|
{
|
||||||
|
if (IsSizeLimitReached(path, limit.Value))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var channelItem = (IChannelMediaItem)item;
|
var channelItem = (IChannelMediaItem)item;
|
||||||
|
|
||||||
var destination = Path.Combine(path, channelItem.ChannelId, itemId);
|
var destination = Path.Combine(path, channelItem.ChannelId, itemId);
|
||||||
|
@ -254,10 +255,25 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||||
|
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
// Get the version from the database
|
var forceSave = false;
|
||||||
item = _libraryManager.GetItemById(item.Id) ?? item;
|
|
||||||
|
|
||||||
await item.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
// Get the version from the database
|
||||||
|
var dbItem = _libraryManager.GetItemById(item.Id);
|
||||||
|
|
||||||
|
if (dbItem == null)
|
||||||
|
{
|
||||||
|
forceSave = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
item = dbItem;
|
||||||
|
}
|
||||||
|
|
||||||
|
await item.RefreshMetadata(new MetadataRefreshOptions
|
||||||
|
{
|
||||||
|
ForceSave = forceSave
|
||||||
|
|
||||||
|
}, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1140,7 +1140,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||||
dto.AbsoluteEpisodeNumber = episode.AbsoluteEpisodeNumber;
|
dto.AbsoluteEpisodeNumber = episode.AbsoluteEpisodeNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (fields.Contains(ItemFields.SpecialEpisodeNumbers))
|
if (fields.Contains(ItemFields.SpecialEpisodeNumbers))
|
||||||
{
|
{
|
||||||
dto.AirsAfterSeasonNumber = episode.AirsAfterSeasonNumber;
|
dto.AirsAfterSeasonNumber = episode.AirsAfterSeasonNumber;
|
||||||
dto.AirsBeforeEpisodeNumber = episode.AirsBeforeEpisodeNumber;
|
dto.AirsBeforeEpisodeNumber = episode.AirsBeforeEpisodeNumber;
|
||||||
|
@ -1449,7 +1449,6 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||||
|
|
||||||
dto.RecursiveItemCount = recursiveItemCount;
|
dto.RecursiveItemCount = recursiveItemCount;
|
||||||
dto.UserData.UnplayedItemCount = unplayed;
|
dto.UserData.UnplayedItemCount = unplayed;
|
||||||
dto.RecursiveUnplayedItemCount = unplayed;
|
|
||||||
|
|
||||||
if (recursiveItemCount > 0)
|
if (recursiveItemCount > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -577,7 +577,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
|
|
||||||
var fullPath = fileInfo.FullName;
|
var fullPath = fileInfo.FullName;
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(collectionType))
|
if (string.IsNullOrWhiteSpace(collectionType) && parent != null)
|
||||||
{
|
{
|
||||||
collectionType = GetContentTypeOverride(fullPath, true);
|
collectionType = GetContentTypeOverride(fullPath, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -750,16 +750,11 @@ namespace MediaBrowser.Server.Startup.Common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void FindParts()
|
protected override void FindParts()
|
||||||
{
|
{
|
||||||
// TODO: Remove after next release
|
|
||||||
if (!IsFirstRun && !ServerConfigurationManager.Configuration.IsPortAuthorized)
|
|
||||||
{
|
|
||||||
ServerConfigurationManager.Configuration.IsPortAuthorized = true;
|
|
||||||
ConfigurationManager.SaveConfiguration();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
|
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
|
||||||
{
|
{
|
||||||
RegisterServerWithAdministratorAccess();
|
RegisterServerWithAdministratorAccess();
|
||||||
|
ServerConfigurationManager.Configuration.IsPortAuthorized = true;
|
||||||
|
ConfigurationManager.SaveConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
base.FindParts();
|
base.FindParts();
|
||||||
|
|
|
@ -63,10 +63,6 @@
|
||||||
<Reference Include="MediaBrowser.IsoMounter">
|
<Reference Include="MediaBrowser.IsoMounter">
|
||||||
<HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\MediaBrowser.IsoMounter.dll</HintPath>
|
<HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\MediaBrowser.IsoMounter.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="NLog, Version=3.1.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\packages\NLog.3.1.0.0\lib\net45\NLog.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="pfmclrapi">
|
<Reference Include="pfmclrapi">
|
||||||
<HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\pfmclrapi.dll</HintPath>
|
<HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\pfmclrapi.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="MediaBrowser.IsoMounting" version="3.0.69" targetFramework="net45" />
|
<package id="MediaBrowser.IsoMounting" version="3.0.69" targetFramework="net45" />
|
||||||
<package id="NLog" version="3.1.0.0" targetFramework="net45" />
|
|
||||||
<package id="System.Data.SQLite.Core" version="1.0.94.0" targetFramework="net45" />
|
<package id="System.Data.SQLite.Core" version="1.0.94.0" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
Loading…
Reference in New Issue
Block a user