mirror of
https://github.com/Readarr/Readarr
synced 2026-02-02 04:42:58 +01:00
Fixed: Better detection of existing files
This commit is contained in:
parent
774180262b
commit
3767c830d5
1 changed files with 3 additions and 1 deletions
|
|
@ -315,9 +315,11 @@ public void Execute(ManualImportCommand message)
|
|||
var fileTrackInfo = _audioTagService.ReadTags(file.Path) ?? new ParsedTrackInfo();
|
||||
var fileInfo = _diskProvider.GetFileInfo(file.Path);
|
||||
|
||||
var fileRootFolder = _rootFolderService.GetBestRootFolder(file.Path);
|
||||
|
||||
var localTrack = new LocalBook
|
||||
{
|
||||
ExistingFile = author.Path.IsParentPath(file.Path),
|
||||
ExistingFile = fileRootFolder != null,
|
||||
FileTrackInfo = fileTrackInfo,
|
||||
Path = file.Path,
|
||||
Size = fileInfo.Length,
|
||||
|
|
|
|||
Loading…
Reference in a new issue