feat [front]: correctly use tmdb poster_path
This commit is contained in:
parent
c91ae8e6a2
commit
1081053fab
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ const foundFilms = ref()
|
|||
const chosenFilm = ref<Film | undefined>()
|
||||
// https://developers.themoviedb.org/3/getting-started/images
|
||||
const image = computed(() => (index: number) => {
|
||||
return `https://image.tmdb.org/t/p/w500${foundFilms.value[index]?.posterPath}`
|
||||
return `https://image.tmdb.org/t/p/w92${foundFilms.value[index]?.posterPath}`
|
||||
})
|
||||
|
||||
const durationNoSecond = computed<string | undefined>({
|
||||
|
|
|
@ -40,7 +40,7 @@ class TmdbViewSet(viewsets.ViewSet):
|
|||
imdb_id=tmdb_movie["imdb_id"],
|
||||
tmdb_id=tmdb_movie["id"],
|
||||
synopsis=tmdb_movie["overview"],
|
||||
poster_link=tmdb_movie["poster_path"],
|
||||
poster_link= f'https://image.tmdb.org/t/p/w200{tmdb_movie["poster_path"]}',
|
||||
duration=timedelta(minutes=tmdb_movie["runtime"]),
|
||||
release_year=tmdb_movie["release_date"][:4],
|
||||
director=next(person["name"] for person in tmdb_movie["credits"]["crew"] if person["job"] == "Director"),
|
||||
|
|
Loading…
Add table
Reference in a new issue