2020-02-09 19:15:43 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.MediaFiles.Commands
|
|
|
|
{
|
|
|
|
public class RescanFoldersCommand : Command
|
|
|
|
{
|
|
|
|
public RescanFoldersCommand()
|
|
|
|
{
|
2020-02-27 21:27:06 +00:00
|
|
|
// These are the settings used in the scheduled task
|
|
|
|
Filter = FilterFilesType.Known;
|
|
|
|
AddNewArtists = true;
|
2020-02-09 19:15:43 +00:00
|
|
|
}
|
|
|
|
|
2020-02-27 21:27:06 +00:00
|
|
|
public RescanFoldersCommand(List<string> folders, FilterFilesType filter, bool addNewArtists, List<int> artistIds)
|
2020-02-09 19:15:43 +00:00
|
|
|
{
|
|
|
|
Folders = folders;
|
|
|
|
Filter = filter;
|
2020-02-27 21:27:06 +00:00
|
|
|
AddNewArtists = addNewArtists;
|
2020-02-09 19:15:43 +00:00
|
|
|
ArtistIds = artistIds;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<string> Folders { get; set; }
|
|
|
|
public FilterFilesType Filter { get; set; }
|
2020-02-27 21:27:06 +00:00
|
|
|
public bool AddNewArtists { get; set; }
|
2020-02-09 19:15:43 +00:00
|
|
|
public List<int> ArtistIds { get; set; }
|
|
|
|
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
|
|
public override bool RequiresDiskAccess => true;
|
2024-04-14 12:45:35 +00:00
|
|
|
public override bool IsLongRunning => true;
|
2020-02-09 19:15:43 +00:00
|
|
|
}
|
|
|
|
}
|