fix: Media - HBO Max alle Monetarisierungstypen für Top10
This commit is contained in:
@@ -686,11 +686,16 @@ router.get('/streaming/:providerId', authenticate, async (req, res) => {
|
||||
const UNLIMITED_LANGS = new Set(['de', 'en']);
|
||||
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) {
|
||||
return {
|
||||
watch_region: 'DE',
|
||||
with_watch_providers: provider.tmdbId,
|
||||
with_watch_monetization_types: 'flatrate',
|
||||
with_watch_monetization_types: monetizationType,
|
||||
sort_by: 'popularity.desc',
|
||||
'vote_count.gte': minVotes,
|
||||
...(dateFrom
|
||||
|
||||
Reference in New Issue
Block a user