Skip to content

Commit c71545b

Browse files
committed
add sub only if it's not empty
1 parent e6624e1 commit c71545b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/mediathekview/mserver/crawler/zdf/json/ZdfFilmDetailDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private Optional<String> formatTitle(Optional<String> title, Optional<String> su
288288
if (title.isEmpty()) {
289289
return Optional.empty();
290290
}
291-
if (sub.isPresent()) {
291+
if (sub.isPresent() && !sub.get().trim().isEmpty()) {
292292
return Optional.of(title.get().trim() + " - " + sub.get().trim());
293293
} else {
294294
return Optional.of(title.get().trim());

0 commit comments

Comments
 (0)