Skip to content

Commit 0e85770

Browse files
committed
Merge branch 'bugfix/kikaSubs' into hotfix/3.1.274
2 parents 85f53a8 + 80c5e8d commit 0e85770

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/mServer/crawler/sender/kika/tasks/KikaApiFilmTask.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,17 @@ protected void postProcessing(KikaApiVideoInfoDto aResponseObj, KikaApiFilmDto a
108108
aDTO.getWebsite().orElse(""),
109109
aDTO.getTitle().get(),
110110
videoUrls.get(Resolution.NORMAL),
111-
((subs.isEmpty()) ? "" : subs.toArray()[0].toString()),
111+
"",
112112
airedDate.get().format(DateTimeFormatter.ofPattern("dd.MM.yyyy")),
113113
airedDate.get().format(DateTimeFormatter.ofPattern("HH:mm:ss")),
114114
parseDuration(aDTO, aDTO.getDuration()).get().getSeconds(),
115115
aDTO.getDescription().orElse("")
116116
);
117117
//
118+
if (!subs.isEmpty()) {
119+
CrawlerTool.addUrlSubtitle(aFilm, subs.toArray()[0].toString());
120+
}
121+
//
118122
if (videoUrls.containsKey(Resolution.SMALL)) {
119123
CrawlerTool.addUrlKlein(aFilm, videoUrls.get(Resolution.SMALL));
120124
}

0 commit comments

Comments
 (0)