Skip to content

Commit

Permalink
download 360 + description
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Aug 25, 2024
1 parent 2a31db8 commit 3c0e264
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ public YoutubeDlCommandBuilder noCheckCertificate() {
return this;
}

public YoutubeDlCommandBuilder dlDescription() {
commandList.add("--print-to-file description");
commandList.add("%(title)s [%(id)s].description");
return this;
}

public YoutubeDlCommandBuilder addAll(List<String> commands) {
commandList.addAll(commands);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,8 @@ public static void setAuthenticationOptions(YoutubeDlCommandBuilder commandBuild
commandBuilder.videoPassword(videoPassword);
}
}

public static void setDlDescription(YoutubeDlCommandBuilder commandBuilder) {
commandBuilder.dlDescription();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public List<String> buildCommand() {
.ffmpegLocation(ApplicationContext.getInstance().getAppBinariesDir().toString());

YoutubeDlCommandHelper.setOutputPath(commandBuilder, downloadable);
YoutubeDlCommandHelper.setDlDescription(commandBuilder);
YoutubeDlCommandHelper.setGeneralOptions(commandBuilder);
YoutubeDlCommandHelper.setSubtitlesOptions(commandBuilder);
YoutubeDlCommandHelper.setDownloadOptions(commandBuilder);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/github/engatec/vdl/model/Resolution.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public enum Resolution {
QHD(1440, "2K Quad HD"),
FULL_HD(1080, "Full HD"),
HD(720, "HD"),
SD(480, "SD");
SD(480, "SD"),
SD_360(360, "SD (360)");

private final int height;
private final String description;
Expand Down

0 comments on commit 3c0e264

Please sign in to comment.