diff --git a/custom_components/overseerr/__init__.py b/custom_components/overseerr/__init__.py index 063889f..fa72274 100644 --- a/custom_components/overseerr/__init__.py +++ b/custom_components/overseerr/__init__.py @@ -120,7 +120,7 @@ def setup(hass, config): def submit_movie_request(call): """Submit request for movie.""" name = call.data[ATTR_NAME] - movies = overseerr.search_movie(name) + movies = overseerr.search_movie(name)["results"] if movies: movie = movies[0] overseerr.request_movie(movie["mediaInfo"]["tmdbId"]) @@ -130,7 +130,7 @@ def submit_movie_request(call): def submit_tv_request(call): """Submit request for TV show.""" name = call.data[ATTR_NAME] - tv_shows = overseerr.search_tv(name) + tv_shows = overseerr.search_tv(name)["results"] if tv_shows: season = call.data[ATTR_SEASON] diff --git a/custom_components/overseerr/manifest.json b/custom_components/overseerr/manifest.json index ec424e7..cf711a7 100644 --- a/custom_components/overseerr/manifest.json +++ b/custom_components/overseerr/manifest.json @@ -5,5 +5,5 @@ "issue_tracker": "https://github.com/vaparr/ha-overseerr/issues", "codeowners": ["@vaparr"], "requirements": ["pyoverseerr==0.1.40"], - "version": "0.1.40" + "version": "0.1.41" }