Skip to content

Commit

Permalink
Fix movie requests
Browse files Browse the repository at this point in the history
  • Loading branch information
vaparr committed Jul 22, 2022
1 parent 3c1adf9 commit dca54a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/overseerr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/overseerr/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit dca54a6

Please sign in to comment.