Skip to content

Commit

Permalink
fixed search movies bug
Browse files Browse the repository at this point in the history
  • Loading branch information
armadi1809 committed Jul 11, 2024
1 parent 5e798dc commit 532cf74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tmdb/tmdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *TmdbClient) GetNowPlayingMovies() ([]TmdbMovie, error) {
}

func (c *TmdbClient) GetMovies(query string) ([]TmdbMovie, error) {
request, err := http.NewRequest("GET", baseUri+"/search/movie", nil)
request, err := http.NewRequest("GET", baseUri+"search/movie", nil)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -88,7 +88,6 @@ func (c *TmdbClient) GetMovies(query string) ([]TmdbMovie, error) {
}{
Results: []TmdbMovie{},
}

json.Unmarshal(body, &res)

return res.Results, nil
Expand Down

0 comments on commit 532cf74

Please sign in to comment.