mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 09:11:53 +01:00
set adult false in query
This commit is contained in:
parent
74cc50cfa2
commit
28d2dd0e89
@ -120,12 +120,12 @@ export abstract class Tmdb {
|
||||
switch (type) {
|
||||
case "movie":
|
||||
data = await Tmdb.get<TMDBMovieResponse>(
|
||||
`search/movie?query=${query}&include_adult=true&language=en-US&page=1`
|
||||
`search/movie?query=${query}&include_adult=false&language=en-US&page=1`
|
||||
);
|
||||
break;
|
||||
case "show":
|
||||
data = await Tmdb.get<TMDBShowResponse>(
|
||||
`search/tv?query=${query}&include_adult=true&language=en-US&page=1`
|
||||
`search/tv?query=${query}&include_adult=false&language=en-US&page=1`
|
||||
);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user