RenameFiles arg documentation in sonarr model is missing seriesId kwag requirement. #157
Closed
2 tasks done
Labels
type/docs
Improvements or additions to documentation
Is there an existing issue for this?
Current Behaviour
On line 53 in the sonarr model, there's the following documentation:
But this is missing the seriesId, which is required.
This code will fail:
In the events it will show up as: "Error occurred while executing task RenameFiles: Series with ID 0 does not exist"
Changing the code to this solves the error and correctly executes the file rename in sonarr:
I suspect that this wasn't noticed because in test_sonarr.py the files that are renamed are actually for series ID 0 and that's what the code will default to if the seriesId is missing from the kwargs.
Steps To Reproduce
No response
Expected behaviour
I think it's just a matter of adding seriesId as a requirement for renamefiles to the sonarr model documentation.
Pyarr Version
5.1.0
Python Version
3.11.4
Example Code
No response
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: