Subj : FileBase - Add to batch downloads? To : Nightfox From : Digital Man Date : Wed Jan 26 2022 05:07 pm Re: FileBase - Add to batch downloads? By: Nightfox to Digital Man on Wed Jan 26 2022 03:37 pm > Re: FileBase - Add to batch downloads? > By: Digital Man to Nightfox on Wed Jan 26 2022 01:59 pm > > DM> No, there isn't a per-base "add to batch download queue" method (yes, I > DM> could add one pretty easily). However, the batch lists are now just > DM> .ini files (for details, see > DM> https://wiki.synchro.net/history:newfilebase#batches), so > DM> adding/removing files to the queue from a JS module should be pretty > DM> trivial. I'm pretty sure you know the File class has methods for > DM> dealing with .ini files. > > It looks like the bbs.batch_add_list() function (which has been around since > version 3.10) is able to add files to the user's batch download list, and it > seems the file format it expects is just one filename per line. Are you > recommending to no longer use bbs.batch_add_list() but to write an ini file > instead? Correct. If you want to add files fast, open the appropriate file (as mentioned in that wiki article) and add the file details. Or you can wait and I'll add a FileBase() method to do that for you, but it won't exist in v3.19b. Opening and updating the .ini file will work for v3.19b and future versions. -- digital man (rob) Synchronet "Real Fact" #108: Weedpuller "Falling Star" http://youtu.be/J0ijOUT7KIw Norco, CA WX: 64.3øF, 20.0% humidity, 0 mph NNW wind, 0.00 inches rain/24hrs .