Skip to content

Commit

Permalink
fix: selecting formats by quality
Browse files Browse the repository at this point in the history
fixes #527
  • Loading branch information
fent committed Nov 25, 2019
1 parent eb1491f commit df7c80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Expand Up @@ -142,7 +142,7 @@ exports.chooseFormat = (formats, options) => {

default: {
let getFormat = (itag) => {
return formats.find((format) => format.itag === '' + itag);
return formats.find((format) => '' + format.itag === '' + itag);
};
if (Array.isArray(quality)) {
quality.find((q) => format = getFormat(q));
Expand Down

0 comments on commit df7c80b

Please sign in to comment.