Unmanic/unmanic

Error received: SonarrAPI.get_episode_file() got an unexpected keyword argument 'series'

Closed this issue · 1 comments

Description
plugin.notify_sonarr
I took out an example, but unfortunately, after converting all the series, the described error occurs.
The update goes through, but the rename fails.

Versions
Unmanic Version: 0.2.7~d14f498
Notify Sonarr Version: 0.0.5

Installation Method Used
Unraid docker

Additional Information

Unmanic/plugin.notify_sonarr#6

unmanic logs:
2024-07-22T09:36:20:INFO:Unmanic.Plugin.notify_sonarr - Successfully queued refresh of the Series '95' for file: '/mnt/user/adat/media/sorozat/Bob Hearts Abishola/Season 3/Bob Hearts Abishola - S03E15 - Compress to Impress WEBDL-1080p h264.mkv'
2024-07-22T09:36:30:ERROR:Unmanic.Plugin.notify_sonarr - Failed to trigger rename of series ID '95' for file: '/mnt/user/adat/media/sorozat/Bob Hearts Abishola/Season 3/Bob Hearts Abishola - S03E15 - Compress to Impress WEBDL-1080p h264.mkv'
Error received: SonarrAPI.get_episode_file() got an unexpected keyword argument 'series'

Hello!

Finally, by reviewing the code, the problem was solved.
I can't see the code completely and I don't even understand this coding, but after a bit of browsing, rewriting a line was a solution for me.
According to the log feedback, the renaming is running and is checked in sonarr as well.

Unmanic log:
2024-07-26T08:27:44:INFO:Unmanic.Plugin.notify_sonarr - Successfully queued refresh of the Series '22' for file: '/mnt/user/adat/media/sorozat/Young Sheldon/Season 6/Young Sheldon - S06E06 - An Ugly Car, an Affair and Some Kickass Football WEBDL-1080p h264.mkv'
2024-07-26T08:27:54:INFO:Unmanic.Plugin.notify_sonarr - Successfully triggered rename of series 'Young Sheldon' for file: '/mnt/user/adat/media/sorozat/Young Sheldon/Season 6/Young Sheldon - S06E06 - An Ugly Car, an Affair and Some Kickass Football WEBDL-1080p h264.mkv'

My solution:
File: \unmanic\.unmanic\plugins\notify_sonarr\plugin.py
Line 162:
rename_list = api.get_episode_file(series_id, series=True)
to rewrite:
rename_list = api.get_episode_files_by_series_id(series_id)