mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-14 13:49:13 +01:00
set adult false in query
This commit is contained in:
parent
c9bac3ed68
commit
c08a6c7e54
@ -120,12 +120,12 @@ export abstract class Tmdb {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case "movie":
|
case "movie":
|
||||||
data = await Tmdb.get<TMDBMovieResponse>(
|
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;
|
break;
|
||||||
case "show":
|
case "show":
|
||||||
data = await Tmdb.get<TMDBShowResponse>(
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user