Closed danielloader closed 6 years ago
The issue with this is, plex_autoscan ignores those requests/considers them unknown, reason being is there is no filename sent in the request, e.g.
{
"eventType": "Rename",
"series": {
"id": 1532,
"path": "/tv/The Durrells",
"title": "The Durrells",
"tvdbId": 308129
}
}
If you can get Radarr & Sonarr to implement a relativePath field of the new file like it does for download/upgrade, then I can add support for Rename.
Just spoke to markus101 and he said that the Rename event is only emitted once all selected files have been renamed, aka, not an event for single file renames.
So not quite sure the best way of adding support for this.
I suspected this might be the case, I am renaming a lot of files at once. It's spitting a lot of errors at plex_autoscan as you'd imagine, it's triggering it per file but not sending any useful data.
added basic support in the dev branch if you want to test it out. the caveat is that it will scan the entire series / movie folder instead of just the season folder, this is because there is no file path given, just series path. also due to that reason, no analyze request can be sent either.
ofcourse this probably isnt of much use with rclone cache, because the folder will be there, yet the file will be cached under old filename. until sonarr/radarr actually is able to send us the filenames, this is the best im able to do i think.
basic rename support is now available.
if you want lidarr suport, open a new issue with a sample from a lidarr rename webhook
Sonarr: Sonarr Ver. 2.0.0.5163 Ubuntu 16.04 Server
Ran into an error when renaming files shown below:
Seems to only affect rename, new downloads don't suffer this.