Version 4.0.0.741
Package Version 4.0.0.741 by linuxserver.io
.NET Yes (6.0.13)
Docker Yes
Database Sqlite 3.44.2
I have a utility on my system that allows me to detect when I delete an episode after I watch it and it then automatically tells Sonarr to rescan that particular series so Sonarr flips the monitored status for the episode off. With the upgrade to V4 as of last night I have had to tweak the API URLs slightly by adding the “v3” string to the API endpoint URL. It seems to be working fine for the series lookup to get the series ID but the actual RescanSeries command does not appear to do anything anymore. It doesn’t appear that there is documentation yet for the API commands so is there anyone out there who would know what has been changed in v4?
This is the lookup command that translates the file system path to a series id and it is working fine in v4…
serid=$(curl -sS http://192.168.1.50:8989/api/v3/series?get --header "X-Api-Key:XXXXXXXXXX" --compressed| /home/linuxbrew/.linuxbrew/bin/jq -rs '.[]| .[] | select(.path=="'"$entries"'") | .id ')
This command appears to do nothing though…
curl http://192.168.1.50:8989/api/v3/command -X POST -d '{"name": "RescanSeries" , "seriesId": "'"$serid"'"}' --header "X-Api-Key:XXXXXXXXXX"