EPG fix
This commit is contained in:
parent
877a3eb981
commit
76f33b7f18
@ -258,7 +258,14 @@ final class XtreamLibraryService {
|
|||||||
"stream_id", streamId,
|
"stream_id", streamId,
|
||||||
"limit", Integer.toString(Math.max(1, limit))
|
"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) {
|
private List<ApplicationDao.CategoryRow> parseCategories(JsonNode node) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user