Fixed not using media limit argument.

This commit is contained in:
DebaucheryLibrarian 2021-02-04 22:58:18 +01:00
parent 456b240df8
commit 5e12a1e1b1
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const { get } = require('./utils/qu');
const pipeline = util.promisify(stream.pipeline);
const streamQueue = taskQueue();
function sampleMedias(medias, limit = config.media.limit, preferLast = true) {
function sampleMedias(medias, limit = argv.mediaLimit, preferLast = true) {
// limit media sets, use extras as fallbacks
if (medias.length <= limit) {
return medias;