Comments (8)
Okay, just tested it, but it seems like the throttling is not working at all, sadly. I can see the set bandwidth reflected in the progress bar in the command line, and it does seem to change when updating xdccJS.irc.throttle
, but the actual download speed it not affected at all. Not even when providing the throttle
option directly to the constructor and not modifying afterwards.
The file size increases much faster than the set throttle, and the download progress does not align with the progress shown in the command line. I tested it by downloading a video and checking how far ahead I could skip in the downloaded video already :(
from xdccjs.
Hey, thanks for the super quick release! I'm currently checking it out, and I'm wondering if I can simply update xdccJS.irc.throttle
with a new value to change the throttle on-the-fly, or if this won't work as expected?
from xdccjs.
Hey, thanks for the super quick release! I'm currently checking it out, and I'm wondering if I can simply update
xdccJS.irc.throttle
with a new value to change the throttle on-the-fly, or if this won't work as expected?
I didn't test this, but in theory yes, the new value should be applied even mid-download
from xdccjs.
I had a misconception on how to do this.
The solution i found can't (unless i spend countless hours i don't have) change the bandwidth limit until the next download is fired.
from xdccjs.
I guess that's fine. Restarting XDCC downloads isn't always a good idea (due to rate limiting, etc.), but maybe I can add some wrapping code that cancels an active download and re-queues it at a later time...
The download limit is still global and not per-job, right? But I should be able to set a global limit, start a download, and then reset the global limit, right?
I'll check it out in the coming days, currently don't have access to a PC...
from xdccjs.
The download limit is still global and not per-job, right? But I should be able to set a global limit, start a download, and then reset the global limit, right?
see v5.1.2
Lines 1 to 15 in 7982f88
from xdccjs.
okay, gave it another spin. it's working much better now, and the per-download throttling is nice. there are only a few minor issues for me:
-
there seems to be no way to read out the current config? I was trying to implement the status page, that shows the currently configured throttle, but I found no way to access it on the
xdccJS
object -
the throttle value is actually in B/s, not kB/s (as it should be). This should be reflected in the documentation, as well as in the console output that is printed after calling
config()
:throttling at 2 GiB/s
is actually 2 MiB/s
-
the options for thecan't reproduce this anymoredownload()
method seem to be lacking some types, the method throws and error ifthrottle
is not a number or undefined
I'll try to leave this running for a bit and report any issues :)
from xdccjs.
update to 5.1.5
should fix all that
here seems to be no way to read out the current config? I was trying to implement the status page, that shows the currently configured throttle, but I found no way to access it on the xdccJS object
// define global throttle
xdccJS.config({ throttle: 5000 })
// start job with specific throttle value
const job = await xdccJS.download('bot', [1-5], { throttle: 1000 })
console.log(xdccJS.config().throttle) //=> 5000
console.log(job.show().throttle) //=> 1000
the throttle value is actually in B/s, not kB/s (as it should be). This should be reflected in the documentation, as well as in the console output that is printed after calling config():
Fixed
from xdccjs.
Related Issues (20)
- resume file download (passive method)
- weird [?] font character in terminal
- --server change to --host
- vlc paths for 64bit HOT 7
- Profile saved but not detected HOT 2
- keep downloading file even if vlc is closed. HOT 6
- Poll: Does xdccJS need a WEB-UI ? HOT 3
- Documentation related to how it extends irc-framework is outdated
- xdccJS shutting down instantly/after a few seconds HOT 2
- No .on() - listener method when using typescript HOT 3
- Resumption of stopped downloads not working HOT 3
- Joining multiple channels does not work HOT 8
- A CLI option to configure the request timeout (to accomodate queues)
- xdccJS is currently crashing when run in a non-TTY environment HOT 1
- downloads keep getting aborted at random points HOT 13
- Be able to provide a password for NickServ to authenticate with nickname HOT 1
- TLS conenections do not work HOT 1
- Verbose : Improve overall readability/consistency
- useless code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdccjs.