Subj : Access to the Upload/Download Batch List from Javascript
To : High Spirit
From : Digital Man
Date : Fri Jan 05 2018 10:58 am
Re: Access to the Upload/Download Batch List from Javascript
By: High Spirit to All on Fri Jan 05 2018 12:29 pm
> Is there any way of reading/writing the Upload/Download Queues from within
> Javascript? (eg: Synchronet C variables: batdn_total, batdn_dir, batdn_cdt,
> batdn_alt, batdn_size, batdn_offset).
Sorry, they are not.
> I am trying to customize my own batch
> file menu but it looks as though the queue is only stored in memory until
> the download is initiated.
>
> I am currently using the bbs.batch_add_list() command to add files to the
> download queue but it searches each file area for the filenames provided and
> I can forsee an issue if there are more than 1 file with the same name in
> different areas. A Javascript command straight to the C Source function
> addotbatdl() would be great as it checks all the user limits, requirements,
> etc before adding the file to the queue without searching the file areas.
I'll add it to the todo list. addtobatdl() requires a pre-filled file_t as an
argument and I don't have any JS-methods to create or operate on file_t's. So
it's a little more involved than just putting a JS wrapper around addtobatdl().
digital man
This Is Spinal Tap quote #35:
Jeanine Pettibone: You don't do heavy metal in Dubly, you know.
Norco, CA WX: 69.9�F, 55.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net