From e057760e2f23d108c175a7431ee37b48fea413c7 Mon Sep 17 00:00:00 2001 From: CodingPF Date: Tue, 28 May 2024 23:33:11 +0200 Subject: [PATCH] add film even if they only have one (small) url --- .../mserver/crawler/zdf/tasks/ZdfFilmDetailTask.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/de/mediathekview/mserver/crawler/zdf/tasks/ZdfFilmDetailTask.java b/src/main/java/de/mediathekview/mserver/crawler/zdf/tasks/ZdfFilmDetailTask.java index 87037af0f..ab3d60c1a 100644 --- a/src/main/java/de/mediathekview/mserver/crawler/zdf/tasks/ZdfFilmDetailTask.java +++ b/src/main/java/de/mediathekview/mserver/crawler/zdf/tasks/ZdfFilmDetailTask.java @@ -221,6 +221,18 @@ private Map getOptimizedUrls(Map urls) Resolution.HD, new FilmUrl(hdUrl.get(), crawler.determineFileSizeInKB(hdUrl.get()))); } } + + // FIXME + // old filmlist needs normal url - remove after decom + if (!result.containsKey(Resolution.NORMAL)) { + if (result.containsKey(Resolution.SMALL)) { + result.put(Resolution.NORMAL, result.get(Resolution.SMALL)); + result.remove(Resolution.SMALL); + } else if (result.containsKey(Resolution.HD)) { + result.put(Resolution.NORMAL, result.get(Resolution.HD)); + result.remove(Resolution.HD); + } + } return result; } }