Fixed: ManualImport sets file size and last modified

So that manually imported files get filterd out by the unchanged files filter
pull/863/head
ta264 6 years ago
parent 9143bb4a7c
commit dc44bbd210

@ -255,6 +255,7 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Manual
var release = _releaseService.GetRelease(file.AlbumReleaseId); var release = _releaseService.GetRelease(file.AlbumReleaseId);
var tracks = _trackService.GetTracks(file.TrackIds); var tracks = _trackService.GetTracks(file.TrackIds);
var fileTrackInfo = _audioTagService.ReadTags(file.Path) ?? new ParsedTrackInfo(); var fileTrackInfo = _audioTagService.ReadTags(file.Path) ?? new ParsedTrackInfo();
var fileInfo = _diskProvider.GetFileInfo(file.Path);
var localTrack = new LocalTrack var localTrack = new LocalTrack
{ {
@ -262,6 +263,8 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Manual
Tracks = tracks, Tracks = tracks,
FileTrackInfo = fileTrackInfo, FileTrackInfo = fileTrackInfo,
Path = file.Path, Path = file.Path,
Size = fileInfo.Length,
Modified = fileInfo.LastWriteTimeUtc,
Quality = file.Quality, Quality = file.Quality,
Language = file.Language, Language = file.Language,
Artist = artist, Artist = artist,

Loading…
Cancel
Save