3.0.5768.0

This commit is contained in:
Luke Pulverenti 2015-10-16 18:36:01 -04:00
parent d1195257aa
commit 6fbd75b899
2 changed files with 12 additions and 5 deletions

View File

@ -750,6 +750,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
recording.DateCreated = _fileSystem.GetCreationTimeUtc(fileInfo);
recording.DateModified = _fileSystem.GetLastWriteTimeUtc(fileInfo);
item.Path = info.Path;
}
else if (!string.IsNullOrEmpty(info.Url))
{
@ -757,16 +758,22 @@ namespace MediaBrowser.Server.Implementations.LiveTv
item.Path = info.Url;
}
var metadataRefreshMode = MetadataRefreshMode.Default;
if (isNew)
{
await _libraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
}
else if (pathChanged || info.DateLastUpdated > recording.DateLastSaved || statusChanged)
{
metadataRefreshMode = MetadataRefreshMode.FullRefresh;
await _libraryManager.UpdateItem(item, ItemUpdateType.MetadataImport, cancellationToken).ConfigureAwait(false);
}
_providerManager.QueueRefresh(item.Id, new MetadataRefreshOptions(_fileSystem));
_providerManager.QueueRefresh(item.Id, new MetadataRefreshOptions(_fileSystem)
{
MetadataRefreshMode = metadataRefreshMode
});
return item.Id;
}

View File

@ -1,4 +1,4 @@
using System.Reflection;
[assembly: AssemblyVersion("3.0.*")]
//[assembly: AssemblyVersion("3.0.5724.6")]
//[assembly: AssemblyVersion("3.0.*")]
[assembly: AssemblyVersion("3.0.5768.0")]