From a28c1a82d8c0ee533c6aec80c2bfdfb89300630f Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 2 Sep 2017 16:24:52 -0600 Subject: [PATCH] Fix newscan for files --- mods/file_area_list.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mods/file_area_list.js b/mods/file_area_list.js index 2da02cc9..c4f89c4a 100644 --- a/mods/file_area_list.js +++ b/mods/file_area_list.js @@ -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