Skip to content

Commit

Permalink
jely2002#219 Use YouTube thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshulyakov committed Jun 18, 2022
1 parent 29f63a5 commit 8729651
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/download/DownloadQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,14 @@ class DownloadQuery extends Query {
this.video.subLanguages.forEach(lang => langs += lang + ",")
args.push(langs.slice(0, -1));
}
if (this.environment.settings.outputFormat !== "none") {
const outputFormat = this.environment.settings.outputFormat;
if (outputFormat !== "none") {
args.push("--merge-output-format");
args.push(this.environment.settings.outputFormat);
args.push(outputFormat);
}
if(["mp4", "mkv", "none"].includes(outputFormat)) {
args.push('--embed-chapters');
args.push("--embed-thumbnail");
}
}
if(this.environment.settings.downloadMetadata) {
Expand Down

0 comments on commit 8729651

Please sign in to comment.