Sonarr version 2.0.0.5338:
Mono version (if Sonarr is not running on Windows):
OS: Windows Server 2016
Description of issue: Not really an issue but just a question regarding api calls.
So I’m making a new script and the goal is to prevent import issues and improve performance, I’m doing this by recording each step a file takes, from extraction to import, the idea is that if a file doesn’t get imported then the next time the script runs it will see this and import the file, however lets say I have 10 or 20 files that need imported, the script would then call sonarr for each file, this is okay if the files are being extracted during that time, but what if it’s a list of pre-extracted files? it will call the api multiple times within second.
So I was curious to know if there was a way to do one api call with all that information in my current version of sonarr or will this be possible in v3? I did try to use the following json array but sonarr does not recognise it, am I doing it wrong or can I only send one at a time? I know I can import using a folder but I wanted to ensure the ClientId was included during import.
[
{
"name": "DownloadedEpisodesScan"
"path": "D:\import\SeriesName1\",
"downloadClientId": "234223424",
"importMode": "Move"
},
{
"name": "DownloadedEpisodesScan"
"path": "D:\import\SeriesName2\",
"downloadClientId": "234234242",
"importMode": "Move"
}
]