forked from DebaucheryLibrarian/traxxx
Fixed not using media limit argument.
This commit is contained in:
parent
456b240df8
commit
5e12a1e1b1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue