");
oneChannelStringBuilder.append("
").append("Videos").append("");
oneChannelStringBuilder.append(" (
").append(channelUrls.get(channel)).append(" )");
if(wantedChannelName != null) {
oneChannelStringBuilder.append("
");
iii = 0;
internalStaticVariableVideoNumberPerRow = 0;
oneChannelStringBuilder.append("
\n");
youtubeVideos.stream().filter(v -> channel.equals(v.getChannelName())).forEach(youtubeVideo -> {
iii++;
if (internalStaticVariableVideoNumberPerRow == 0) {
oneChannelStringBuilder.append("");
}
internalStaticVariableVideoNumberPerRow++;
oneChannelStringBuilder.append("\n;) | \n");
oneChannelStringBuilder.append("").append(youtubeVideo.getTitle()).append(" | \n");
String uploadDate = youtubeVideo.getUploadDate();
uploadDate = uploadDate.substring(0, 4) + "-" + uploadDate.substring(4, 6) + "-" + uploadDate.substring(6, 8);
oneChannelStringBuilder.append("").append(uploadDate).append(" •︎ ").append(youtubeVideo.getVideoDuration())
.append(" •︎ ")
.append("#").append(iii)
.append(" | \n");
youtubeVideo.setNumber(iii);
oneChannelStringBuilder.append(" | \n");
if (internalStaticVariableVideoNumberPerRow == argsInstance.getInteger(ArgType.VIDEOS_PER_ROW).get()) {
oneChannelStringBuilder.append("
");
internalStaticVariableVideoNumberPerRow = 0;
}
File videoHtmlFile = new File(videosDirectory, youtubeVideo.getId() + ".html");
if (!videoHtmlFile.exists() || argsInstance.getBoolean(ArgType.ALWAYS_GENERATE_HTML_FILES).get()) {
{
String singleVideo = new YoutubeVideoHtml(youtubeVideo, archiveBoxRootDirectory, archiveBoxArchiveDirectory).toString();
Utils.writeTextToFile(singleVideo, videoHtmlFile);
}
}
});
if (internalStaticVariableVideoNumberPerRow < argsInstance.getInteger(ArgType.VIDEOS_PER_ROW).get()) {
oneChannelStringBuilder.append("
");
}
oneChannelStringBuilder.append("
\n");
oneChannelStringBuilder.append("
");
}
oneChannelStringBuilder.append("
");
});
oneChannelStringBuilder.append("""
""");
return oneChannelStringBuilder;
}
}