Frontend: Filter out 'person' media type from fetched entries in TmdbService

This commit is contained in:
X4Lo committed 2026-03-30 17:26:21 +01:00
1 parent 4a1d2bc614
commit b3f2097b8b
1 file changed
+5 -4
@@ -98,10 +98,11 @@ export class TmdbService {
return this.fetchdata(endPoint).pipe(
switchMap((response) =>
from(response.results).pipe(
filter(
(entry: any) =>
entry.media_type === 'tv' || entry.media_type === 'movie'
),
filter((movie: any) => movie.media_type !== 'person'),
// filter(
// (entry: any) =>
// entry.media_type === 'tv' || entry.media_type === 'movie'
// ),
map((entry: any) => this.adaptMovieToEntry(entry)),
toArray(),
map((entries) => ({