-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RadarrAPI.upd_movie does not work #94
Labels
type/bug
Something isn't working
Comments
Hello @shunluzhang, thank you for your interest in our work! If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.{% endraw %} |
Temporary resolution is downgrading to I'll PR a fix for this now. |
Branch 94-radarrapi_upd_movie_does_not_work created! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Current behavior
step 3 returns 'MethodNotAllowed', not error was raised and Radarr database not changed
Possible reasons and solutions
in RadarrAPI.upd_movie, path = "/api/movie"
in request_handler._request_url, url is defined as f"{self.host_url}/api{ver_uri}/{path}"
ver_uri = '/v3', so _request_url returns https://HOSTNAME/api/v3//api/movie
so there is one extra slash between v3 and api/movie
changed in RadarrAPI.upd_movie, path = "api/movie", program runs successfully
also, according to Radarr API docs, this path value should be just 'movie'
so _request_url should return https://HOSTNAME/api/v3/movie
haven't tested other functions, but did a quick find and in Radarr.lookup_movie_by_imdb_id, path also got one extra leading slash
The text was updated successfully, but these errors were encountered: