Sonarr version (exact version): 3.0.2.607
Mono version (if Sonarr is not running on Windows): 5.18.0.240
OS: Syno
Description of issue: Imported file via API is not recognised.
I’ve got a file called Long.Lost.Family.S09E07.HDTV.540p.x264-GTi.mp4, but when I use the API to get it imported, it seems to recognise the series:
19-8-23 16:43:06.9|Debug|Parser|Episode Parsed. Long Lost Family - S09E07
But then immediately fails to import it
19-8-23 16:43:06.9|Debug|DownloadedEpisodesImportService|Unknown Series for file: Long.Lost.Family.S09E07.HDTV.540p.x264-GTi.mp4
If I go into the ‘interactive import’ screen, the same file, unchanged, is immediately and automatically picked up:
Any ideas why? The same code calling the same API in the same way works for other mp4 files just fine.
Full log snippet here:
19-8-23 16:43:06.6|Debug|Api|[POST] /api/command: 201.Created (1274 ms)
19-8-23 16:43:06.9|Warn|DownloadedEpisodesCommandService|External directory scan request for unknown download SonarrAutoImporter, attempting normal import. [/downloads/Long.Lost.Family.S09E07.HDTV.540p.x264.Subs-GTi/Long.Lost.Family.S09E07.HDTV.540p.x264-GTi.mp4]
19-8-23 16:43:06.9|Debug|Parser|Parsing string 'Long.Lost.Family.S09E07.HDTV.540p.x264-GTi'
19-8-23 16:43:06.9|Debug|Parser|Episode Parsed. Long Lost Family - S09E07
19-8-23 16:43:06.9|Debug|Parser|Language parsed: English
19-8-23 16:43:06.9|Debug|QualityParser|Trying to parse quality for Long.Lost.Family.S09E07.HDTV.540p.x264-GTi
19-8-23 16:43:06.9|Debug|Parser|Quality parsed: SDTV v1
19-8-23 16:43:06.9|Debug|Parser|Release Group parsed: GTi
19-8-23 16:43:06.9|Debug|DownloadedEpisodesImportService|Unknown Series for file: Long.Lost.Family.S09E07.HDTV.540p.x264-GTi.mp4
19-8-23 16:43:06.9|Debug|DownloadedEpisodesCommandService|Failed to import
If it helps, the JSON response from the API call is here:
{
"name": "DownloadedEpisodesScan",
"body": {
"path": "/downloads/Long.Lost.Family.S09E07.HDTV.540p.x264.Subs-GTi/Long.Lost.Family.S09E07.HDTV.540p.x264-GTi.mp4",
"downloadClientId": "SonarrAutoImporter",
"importMode": "move",
"sendUpdatesToClient": false,
"updateScheduledTask": true,
"completionMessage": "Completed",
"requiresDiskAccess": false,
"isExclusive": false,
"name": "DownloadedEpisodesScan",
"trigger": "manual",
"suppressMessages": false
},
"priority": "normal",
"status": "queued",
"queued": "2019-08-23T15:53:15.223772Z",
"trigger": "manual",
"state": "queued",
"manual": true,
"startedOn": "2019-08-23T15:53:15.223772Z",
"sendUpdatesToClient": false,
"updateScheduledTask": true,
"id": 101588
}