mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Only scan files that are new or updated (#760)
* New: Only scan files that are new or updated Pass through filter correctly Add more tests Add tests for migration 30 * Fix windows disk provider * Don't publish deleted event for unmapped file * Fix test on windows
This commit is contained in:
parent
8fe8aec97c
commit
166fc90454
95 changed files with 1590 additions and 723 deletions
|
@ -1,10 +1,10 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using NzbDrone.Core.DecisionEngine.Specifications;
|
||||
using NzbDrone.Core.Languages;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using Lidarr.Http.REST;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
namespace Lidarr.Api.V1.TrackFiles
|
||||
{
|
||||
|
@ -38,8 +38,8 @@ namespace Lidarr.Api.V1.TrackFiles
|
|||
|
||||
ArtistId = model.Artist.Value.Id,
|
||||
AlbumId = model.AlbumId,
|
||||
RelativePath = model.RelativePath,
|
||||
//Path
|
||||
RelativePath = model.Artist.Value.Path.GetRelativePath(model.Path),
|
||||
Path = model.Path,
|
||||
Size = model.Size,
|
||||
DateAdded = model.DateAdded,
|
||||
// SceneName = model.SceneName,
|
||||
|
@ -61,8 +61,8 @@ namespace Lidarr.Api.V1.TrackFiles
|
|||
|
||||
ArtistId = artist.Id,
|
||||
AlbumId = model.AlbumId,
|
||||
RelativePath = model.RelativePath,
|
||||
Path = Path.Combine(artist.Path, model.RelativePath),
|
||||
Path = model.Path,
|
||||
RelativePath = artist.Path.GetRelativePath(model.Path),
|
||||
Size = model.Size,
|
||||
DateAdded = model.DateAdded,
|
||||
//SceneName = model.SceneName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue