Skip to content

Commit 8e43e7b

Browse files
committed
Merge branch 'hotfix/1076' into hotfix/3.1.265
2 parents 99c3400 + 2f2a2cb commit 8e43e7b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/mServer/crawler/sender/zdf/json/ZdfPubFormDeserializer.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ public ZdfPubFormResult deserialize(
2727
JsonObject node = element.getAsJsonObject();
2828
Optional<String> sender = Optional.empty();
2929
if (!node.get("contentOwner").isJsonNull()) {
30-
sender = JsonUtils.getElementValueAsString(node.getAsJsonObject("contentOwner"), "title");
30+
final JsonObject contentOwner = node.getAsJsonObject("contentOwner");
31+
final Optional<String> details = JsonUtils.getAttributeAsString(contentOwner, "details");
32+
if (details.isPresent()) {
33+
sender = details;
34+
} else {
35+
sender = JsonUtils.getElementValueAsString(contentOwner, "title");
36+
}
3137
}
3238
final Optional<String> topic = JsonUtils.getElementValueAsString(node, "title");
3339
final Optional<String> countSeasons = JsonUtils.getElementValueAsString(node, "countSeasons");

0 commit comments

Comments
 (0)