fix: Media - HBO Max/WOW/RTL+ ohne Jahresfilter für Top10

This commit is contained in:
2026-07-04 13:44:24 +02:00
parent eea6431760
commit e774dd3ac5

View File

@@ -676,8 +676,11 @@ router.get('/streaming/:providerId', authenticate, async (req, res) => {
if (cachedResult !== undefined) return res.json(cachedResult);
// Nur Titel der letzten 2 Jahre (aktuelles Jahr - 1)
// Für kleine Kataloge (HBO Max, WOW, RTL+) kein Jahresfilter — TMDb hat dort
// zu wenige Titel mit korrekt erfasstem DE-Datum seit letztem Jahr
const SMALL_CATALOGS = new Set(['max', 'wow', 'rtlplus']);
const minYear = new Date().getFullYear() - 1;
const minDate = `${minYear}-01-01`;
const minDate = SMALL_CATALOGS.has(provider.id) ? null : `${minYear}-01-01`;
// Deutsch & Englisch sind unbegrenzt erlaubt. Alle anderen Sprachen
// zusammen (Koreanisch, Japanisch, Spanisch, etc.) dürfen max. 2 Plätze