Weird API error/behavior for adding show

Sonarr version (exact version): 2.0.0.4323
Mono version (if Sonarr is not running on Windows):
OS: ubuntu 16

I use a script to pump Plex saved programs into Sonarr, if they’re in sonarr.
I had 2 odd behaviors

  1. Big Bang Theory loaded fine, but had an error
  2. Jeopardy! stopped loading suddenly

Jeopardy!

curl http://192.168.0.12:8989/api/command -X POST -d “{“name”: “downloadedepisodesscan”, “path”: “/media/disk1/media/downloads/unsortedsonarr/Jeopardy!”, “downloadClientId”: “nzoid”}” --header “X-Api-Key:xxxx”

got a result:

{
“name”: “DownloadedEpisodesScan”,
“body”: {
“sendUpdatesToClient”: false,
“sendUpdates”: false,
“path”: “/media/disk1/media/downloads/unsortedsonarr/Jeopardy!”,
“downloadClientId”: “nzoid”,
“updateScheduledTask”: true,
“completionMessage”: “Completed”,
“name”: “DownloadedEpisodesScan”,
“trigger”: “manual”
},
“priority”: “normal”,
“status”: “started”,
“queued”: “2016-09-20T00:10:02.21973Z”,
“started”: “2016-09-20T00:10:02.253038Z”,
“trigger”: “manual”,
“state”: “started”,
“manual”: true,
“startedOn”: “2016-09-20T00:10:02.21973Z”,
“stateChangeTime”: “2016-09-20T00:10:02.253038Z”,
“sendUpdatesToClient”: false,
“updateScheduledTask”: true,
“id”: 347573
}

And the following error:

External directory scan request for unknown download nzoid, attempting normal import. [/media/disk1/media/downloads/unsortedsonarr/Jeopardy!]

Big Bang Theory

Curl Data: “name”: “downloadedepisodesscan”, “path”: “/media/disk1/media/downloads/unsortedsonarr/The Big Bang Theory”, “downloadClientId”: “nzoid”
{
“name”: “DownloadedEpisodesScan”,
“body”: {
“sendUpdatesToClient”: false,
“sendUpdates”: false,
“path”: “/media/disk1/media/downloads/unsortedsonarr/The Big Bang Theory”,
“downloadClientId”: “nzoid”,
“updateScheduledTask”: true,
“completionMessage”: “Completed”,
“name”: “DownloadedEpisodesScan”,
“trigger”: “manual”
},
“priority”: “normal”,
“status”: “queued”,
“queued”: “2016-09-20T00:31:53.590398Z”,
“trigger”: “manual”,
“state”: “queued”,
“manual”: true,
“startedOn”: “2016-09-20T00:31:53.590398Z”,
“sendUpdatesToClient”: false,
“updateScheduledTask”: true,
“id”: 347592
}

BBT still loaded the show into the proper directory

The only difference I saw was:

“state”: “started”,

Logs: http://pastebin.com/wPvvnG4C

It’s just a warning, but if you don’t know the downloadClientID, don’t send anything. nzoid is just an example. Sending nothing and sending junk won’t change the behaviour, but will avoid the warning.[quote=“sufr3ak, post:1, topic:12085”]
BBT still loaded the show into the proper directory

The only difference I saw was:

“state”: “started”,
[/quote]

Queued vs started just means one was queued for later execution (other things were happening in Sonarr) and started means it was started immediately.

The issue with Jeopardy! was this:

16-9-19 20:40:34.8|Debug|DetectSample|[/media/disk1/media/downloads/unsortedsonarr/Jeopardy!/Jeopardy! - S2016E157.mkv] appears to be a sample. Runtime: 00:00:05 seconds. Expected at least: 300 seconds

Either a problem with the file (it’s too short) or libmediainfo.

Thank you for that. Looks like the file got hosed somehow.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.