2/28/2023 0 Comments Sonarr drone factory![]() ![]() List downloadClients -47,9 44,6 namespace Var droneFactoryFolder = new OsPath ( _configService. Return new HealthCheck ( GetType ( ) ) -1,11 1,9 using System ![]() Todo: Unable to import one or more files/folders from Error, "Unable to write to drone factory folder" ) Return new HealthCheck ( GetType ( ), HealthCheckResult. Error, "Drone factory folder does not exist" ) Public DroneFactor圜heck ( IConfigService configService, IDiskProvider diskProvider ) Private readonly IDiskProvider _diskProvider Private readonly IConfigService _configService Public class DroneFactor圜heck : HealthCheckBase Execute ( new DownloadedEpisodesScanCommand ( ) ) Public void should_ignore_downloadclientid_if_path_is_not_specified ( ) Execute ( new DownloadedEpisodesScanCommand ( ) ) ) Public void should_skip_import_if_dronefactory_doesnt_exist ( )Īssert. Public void should_process_dronefactory_if_path_is_not_specified ( ) Private string _downloadFile = "c:\\drop_other\\". Private string _downloadFolder = "c:\\drop_other\\Show.S01E01\\". Private string _droneFactory = "c:\\drop\\". Public class DownloadedEpisodesCommandServiceFixture : CoreTest Public void should_return_warning_when_completed_download_handling_not_configured ( -56,7 42,6 namespace .Checks Private void GivenDroneFactoryFolder ( bool exists = false ) Private void GivenCompletedDownloadHandling ( bool? enabled = null ) Public class ImportMechanismCheckFixture : CoreTest ShouldBeOk ( ) -10,9 10,6 namespace .Checks Public void should_return_ok_when_no_issues_found ( ) GivenDroneFactoryFolder ( true, false ) Public void should_return_error_when_unable_to_write_to_drone_factory_folder ( ) Public void should_return_error_when_drone_factory_folder_does_not_exist ( ) Private void GivenDroneFactoryFolder ( bool exists = false, bool writable = true ) Private const string DRONE_FACTORY_FOLDER = Public class DroneFactor圜heckFixture : CoreTest Public void should_throw_on_failed_download ( -1,54 0,0 using Moq DownloadFile ( _nzbUrl, _nzbPath ), Times. } -61,7 59,6 namespace .DownloadClientTests Definition = new DownloadClientDefinition ( ) Release = new ReleaseInfo ( ) -44,7 41,8 namespace .DownloadClientTests Combine ( _pneumaticFolder, _title ".nzb" ). Private RemoteEpisode _remoteEpisode -29,9 28,7 namespace .DownloadClientTests Using -19,7 18,7 namespace .DownloadClientTests Public void should_not_check_diskspace_for_missing_dronefactory_folder ( ) GivenExistingFolder ( _droneFactoryFolder ) Public void should_check_diskspace_for_dronefactory_folder ( ) So it kind of depends on how you do it right now.-102,35 102,6 namespace In fact, it was one of the edge-cases mentioned in. Not having a periodic scan forces you to move to a more event-driven approach, which is what we're trying to achieve here.īTSync is somewhat of an tricky edge case, coz afaik it has no 'finished' event. That way Sonarr can't see partial files or incomplete directories.Ī remote mount is preferable, but not mandatory. For example by transferring to a temp directory and then moving that directory to the import folder, or simply signal Sonarr when it's ready. The goal is to ensure that the entire set of files appear in the directory at a whole (atomically). Despite your mentioning 'no file system access' I'm still gonna say it, but isn't it possible to mount it via sshfs?.This allows any external process to signal Sonarr that the download is ready to be imported. The Sonarr API, you can call the Sonarr API to have it import a specific directory and optionally specify the original download identifier so Sonarr knows which download it is about.Remote Path mapping, this generally applies to any remote mount, but can also be used if you use a transfer method that's 'atomic', more on that later.So I'm going to give you the general gist until I get some more details. There are a few ways to tackle this, but it depends on how you currently handle the transfer. Question: You mentioned that the files are moved to Server A 'via some process', on which computer is that process initiated and is it a script that you can adapt? This current warning is to move people away from it, and prevent new users from (mis)using it. The Periodic Drone Factory scan will be removed in v3 (we're at v2 now) and won't happen in any automatic update. We get a significant amount of support request from users that misuse it and don't even need it. The reason we don't want people to use the Drone Factory is because it's very easy to get it wrong and get partial files, partial imports and what not. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |