This commit is contained in:
Radek Davidek 2026-03-10 17:43:59 +01:00
parent 877a3eb981
commit 76f33b7f18

View File

@ -258,7 +258,14 @@ final class XtreamLibraryService {
"stream_id", streamId,
"limit", Integer.toString(Math.max(1, limit))
));
return objectMapper.convertValue(response, Object.class);
// Wrap response in object with epg_listings key for frontend
Map<String, Object> result = new LinkedHashMap<>();
if (response.isArray()) {
result.put("epg_listings", objectMapper.convertValue(response, List.class));
} else {
result.put("epg_listings", List.of());
}
return result;
}
private List<ApplicationDao.CategoryRow> parseCategories(JsonNode node) {