fixed tmdb bug with searchmovies and added tests

This commit is contained in:
2026-01-13 19:41:36 +11:00
parent cdd6b7a57c
commit be889568c2
6 changed files with 1316 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ func (movie *ResultMovie) ReleaseYear() string {
// }
func (api *API) SearchMovies(query string, adult bool, page int64) (*ResultMovies, error) {
path := []string{"searc", "movie"}
path := []string{"search", "movie"}
params := map[string]string{
"query": url.QueryEscape(query),
"include_adult": strconv.FormatBool(adult),