It isn’t intended as a catch all, because the temp dir may contain stuff still being downloaded (maybe not in you case, but it does in other). The api with path is always intended for single downloads. The api call with path is quite different from a drone factory scan. That would eliminate both the confusion and the problem. I think it’d be a much better idea if the API actually treated the specified path in the same way as the Drone Factory path. While it would certainly clear up the confusion by editing the documentation to point out the different treatment of explicitly-specified paths and the default Drone Factory path, I’m certain that this particular behaviour would still remain an issue. That is to say, the distinction between Drone Factory folder and DownloadedEpisodesScan path seems almost entirely arbitrary. Why can’t it treat the path parameter to DownloadedEpisodesScan the same way (as is implied by the API docs)? In such cases, the “job” folder is the root download folder.Īs far as I can tell (I haven’t been using Sonarr for very long), it handles files and folders in the Drone Factory folder just dandy. This doesn’t make a whole lot of sense when a lot of downloaded files don’t have a containing folder. The job folder ideally should be the release name, with the downloaded file(s) inside. This strikes me as a weird way to behave.īut in short, the ‘path’ parameter expects to be pointed at a ‘job’ folder, not the root folder. My confusion stems from the fact that the API falls back to the Drone Factory path, but treats that path differently to an explicitly-specified path. I’d just rather they could be handled automatically via my post-processing script. As a result, they can’t be downloaded via Sonarr’s built-in mechanisms.Īs a “workaround”, I can activate the Drone Factory and dump the files in there manually. I download a lot of TV shows from the homeland that aren’t of interest to the Interwebs at large and can only be had from private trackers. In my case it is “the last stage in a pp-script of a specific download”. It works okay if I pass the path to a folder whose basename corresponds to a show Sonarr knows about-it then processes any files within that folder-but that isn’t much help in post-processing single episodes (which are rarely wrapped in a folder). Is this a bug, or have I misunderstood something?Īs noted, when I pass the path of the actual video file, Sonarr complains that it isn’t a folder. I’ve also tried specifying the full path to the video file in question, but Sonarr complains that it isn’t a folder. I’m afraid I don’t have the C# chops, or knowledge of the codebase, to trace the call further than DownloadedEpisodesCommandService.cs (which appears to be perfectly correct to me). (The directory exists and contains media files Sonarr understands.)Īnd the trace log is: 15-10-6 20:49:59.6|Trace|CommandQueueManager|Publishing DownloadedEpisodesScanġ5-10-6 20:49:59.6|Trace|CommandQueueManager|Checking if command is queued or started: DownloadedEpisodesScanġ5-10-6 20:49:59.6|Trace|CommandQueueManager|Inserting new command: DownloadedEpisodesScanġ5-10-6 20:49:59.6|Trace|CommandExecutor|DownloadedEpisodesScanCommand -> DownloadedEpisodesCommandServiceġ5-10-6 20:49:59.6|Trace|CommandQueueManager|Marking command as started: DownloadedEpisodesScanġ5-10-6 20:49:59.6|Debug|Parser|Parsing string 'TV'ġ5-10-6 20:49:59.6|Debug|Parser|Unable to parse TVġ5-10-6 20:49:59.7|Debug|DownloadedEpisodesImportService|Unknown Series TVġ5-10-6 20:49:59.7|Trace|CommandQueueManager|Updating command statusġ5-10-6 20:49:59.7|Trace|EventAggregator|Publishing CommandExecutedEventġ5-10-6 20:49:59.7|Trace|EventAggregator|CommandExecutedEvent -> TaskManagerġ5-10-6 20:49:59.7|Trace|TaskManager|Updating last run time for: .DownloadedEpisodesScanCommand What I really don’t understand is why this path works perfectly if it’s the Drone Factory path (and no path is given in the API call), but not when passed to the API as the path parameter. However, if a valid path is specified, Sonarr apparently accepts the path and-at some point-appears to strip it to its basename and then chokes on that (invalid) path. It also logs an error if an invalid path is sent to the API. It works perfectly when a Drone Factory path is set and no path parameter is specified in the API call. I’ve tried a couple of ways of calling the API method DownloadedEpisodesScan. I’m using the latest version of Sonarr available via Homebrew on El Capitan. Excuse me if I’ve misunderstood the API: I’ve only been using Sonarr for a couple of days.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |