1
0
mirror of https://github.com/openeggbert/youtubedl-frontend.git synced 2025-03-14 21:23:27 +01:00

Some improvements

This commit is contained in:
Robert Vokac 2024-07-05 15:49:46 +02:00
parent c4dc2f650f
commit c716abb127
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
System.out.println("youtubedlfrontend - HTML generator\n");
args = "/rv/blupi/archivebox --_video UDpsz1yIwiw --always-generate-metadata 1 --always-generate-html-files 1 --videos-per-row 4".split(" ");
args = "/rv/blupi/archivebox --_video UDpsz1yIwiw --always-generate-metadata 1 --always-generate-html-files 0 --videos-per-row 4".split(" ");
//args = "/rv/databig/youtube --_video UDpsz1yIwiw --always-generate-metadata 1 --always-generate-html-files 1 --videos-per-row 4".split(" ");
if (args.length < 1) {
@ -177,6 +177,7 @@ public class Main {
System.out.println("uploadDate = " + youtubeVideo.getUploadDate());
System.out.println("description = " + youtubeVideo.getDescription());
System.out.println("thumbnail = " + youtubeVideo.getThumbnail());
System.out.println("miniThumbnail = " + youtubeVideo.getMiniThumbnail());
System.out.println("comments = " + youtubeVideo.getComments());
youtubeVideos.add(youtubeVideo);
}

View File

@ -266,7 +266,7 @@ public class YoutubeVideo implements Comparable<YoutubeVideo> {
properties.put("timestamp", String.valueOf(timestamp));
properties.put("description", description);
properties.put("thumbnail", thumbnail);
properties.put("minithumbnail", miniThumbnail);
properties.put("miniThumbnail", miniThumbnail);
properties.put("comments", new JSONArray(comments).toString());
if (previousVideoId != null) {
properties.put("previousVideoId", previousVideoId);