@markus101
soooo, I am missing something. I was home with a man cold this weekend, so I spent some time on this.
- my “on import” script fires. And from that i get among other things:
sonarr_episodefile_id 8752
Sooo, i go to put that into the history endpoint,
http://thelittlebox:8989/api/v3/history?pageSize=1000&page=1&sortKey=date&sortDirection=descending&episodeId=8752&apikey=…
But then i get:
{
"page": 1,
"pageSize": 1000,
"sortKey": "date",
"sortDirection": "descending",
"totalRecords": 0,
"records": []
}
If i pull up the history in the web ui, I see another episodeID (8577)
{
"page": 1,
"pageSize": 20,
"sortKey": "date",
"sortDirection": "descending",
"totalRecords": 5915,
"records": [
{
"episodeId": 8577,
"seriesId": 13,
"sourceTitle": "Family.Guy.S18E14.1080p.WEB.x264-XLF[rarbg]",
"language": {
"id": 1,
"name": "English"
},
"quality": {
"quality": {
"id": 3,
"name": "WEBDL-1080p",
"source": "web",
"resolution": 1080
},
"revision": {
"version": 1,
"real": 0,
"isRepack": false
}
},
"qualityCutoffNotMet": false,
"languageCutoffNotMet": false,
"date": "2020-03-09T01:45:21.005725Z",
"downloadId": "297CED2656E63FAB993B6B2A545A28E4CA40AA65",
"eventType": "downloadFolderImported",
"data": {
"droppedPath": "/downloads/Family.Guy.S18E14.1080p.WEB.x264-XLF[rarbg]/family.guy.s18e14.1080p.web.x264-xlf.mkv",
"importedPath": "/tv/Family Guy/Family Guy.S18E14 - x264_AAC - Family.Guy.S18E14.1080p.WEB.x264-XLF[rarbg].mkv",
"downloadClient": "Deluge"
},
"id": 7273
},
What conversion am I missing here? How do i get from an “onimport” script run to the history of the file that was actually put on my destination?