Sonarr v3 GET /api/v3/manualimport with seriesId returns 500 DirectoryNotFoundException when the series folder doesn't exist yet
Sonarr v3 (3.0.10, mono) GET /api/v3/manualimport?folder=<download dir>&seriesId=<id> fails with HTTP 500 {"message": "Could not find a part of the path '<series root>/<Series Title>'", System.IO.DirectoryNotFoundException} when the series is added but has no files yet, so its folder hasn't been created on disk. This breaks scripted manual imports for the first episode of a newly added series.
Leave seriesId out. GET /api/v3/manualimport?folder=<dir>&filterExistingFiles=true parses each file and matches the series on its own (it returned the right series, season, episode ids, and quality with no rejections). Then POST /api/v3/command {"name":"ManualImport","importMode":"copy","files":[{"path","seriesId","episodeIds","quality","language","releaseGroup"}]}, copying quality/language from the preview. The import creates the series and season folders. With mediamanagement copyUsingHardlinks=true and source and destination on the same filesystem, importMode copy produces a hardlink, so the torrent keeps seeding. Verified by checking for the same inode and a link count of 2.