Attempting to edit a movies tags movie.edit(tags=["test"]) fails with the error: KeyError: 'apply_tags'. This appears to be an issue with snake_case vs camelCase case.
Steps to Reproduce
from arrapi import RadarrAPI
host_url = 'http://localhost:7878'
api_key = 'YOUR_KEY_GOES_HERE'
radarr = RadarrAPI(host_url, api_key)
# Just grab the first movie for this test
movie = radarr.all_movies()[0]
# Attempt to edit tags
movie.edit(tags=['test'])
Stack trace:
/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.7/lib/python3.9/site-packages/arrapi/objs.py in edit(self, path, move_files, quality_profile, monitored, minimum_availability, tags, apply_tags)
460 for key, value in options.items():
461 if key == "tags":
--> 462 tag_type = options["apply_tags"]
463 if tag_type == "add":
464 self._data[key].extend([t for t in value if t not in self._data["tags"]])
NOTE: this assumes you have at least one movie in Radarr ;)
Describe the Bug
Attempting to edit a movies tags
movie.edit(tags=["test"])
fails with the error:KeyError: 'apply_tags'
. This appears to be an issue with snake_case vs camelCase case.Steps to Reproduce
Stack trace:
NOTE: this assumes you have at least one movie in Radarr ;)