Fix newscan for files

This commit is contained in:
Bryan Ashby 2017-09-02 16:24:52 -06:00
parent 8d5f1a8c5d
commit a28c1a82d8
1 changed files with 3 additions and 4 deletions

View File

@ -72,10 +72,8 @@ exports.getModule = class FileAreaList extends MenuModule {
constructor(options) {
super(options);
if(options.extraArgs) {
this.filterCriteria = options.extraArgs.filterCriteria;
this.fileList = options.fileList;
}
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
this.fileList = _.get(options, 'extraArgs.fileList');
this.dlQueue = new DownloadQueue(this.client);
@ -354,6 +352,7 @@ exports.getModule = class FileAreaList extends MenuModule {
[
function fetchEntryData(callback) {
if(self.fileList) {
self.fileListPosition = 0;
return callback(null);
}
return self.loadFileIds(false, callback); // false=do not force