fix: Media - HBO Max alle Monetarisierungstypen für Top10

This commit is contained in:
2026-07-04 13:33:09 +02:00
parent a9db8d1877
commit eea6431760

View File

@@ -686,11 +686,16 @@ router.get('/streaming/:providerId', authenticate, async (req, res) => {
const UNLIMITED_LANGS = new Set(['de', 'en']); const UNLIMITED_LANGS = new Set(['de', 'en']);
const MAX_OTHER_LANGUAGE_TOTAL = 2; const MAX_OTHER_LANGUAGE_TOTAL = 2;
// Manche Anbieter (z.B. HBO Max) nutzen bei TMDb DE nicht nur 'flatrate'
const monetizationType = ['max'].includes(provider.id)
? 'flatrate|free|ads|rent|buy'
: 'flatrate';
function buildParams(mediaKind, minVotes, dateFrom) { function buildParams(mediaKind, minVotes, dateFrom) {
return { return {
watch_region: 'DE', watch_region: 'DE',
with_watch_providers: provider.tmdbId, with_watch_providers: provider.tmdbId,
with_watch_monetization_types: 'flatrate', with_watch_monetization_types: monetizationType,
sort_by: 'popularity.desc', sort_by: 'popularity.desc',
'vote_count.gte': minVotes, 'vote_count.gte': minVotes,
...(dateFrom ...(dateFrom