Skip to content

Commit

Permalink
Merge pull request #34 from olegshulyakov/feature/219-youtube-thumbnail
Browse files Browse the repository at this point in the history
jely2002#219 Use YouTube thumbnails
  • Loading branch information
olegshulyakov authored Jun 18, 2022
2 parents 1f373cb + 8729651 commit 0dfd41c
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 0dfd41c

Please sign in to comment.