ali-sajjad-rizavi / super-anime-downloader

A program which takes an Anime name or URL and downloads the specified range of episodes.
30 stars 7 forks source link

Download speed inconsistent. #13

Open ajam123 opened 3 years ago

ajam123 commented 3 years ago

The download speed is inconsistent. Not sure, if this is coming from this program or not.

It won't go pass 2MB/s and sometimes it goes around 100-500kb/s only.

I took this speedtest while downloading using your program. https://www.speedtest.net/result/11389115153 without downloading, I got like 50MB/s download speeds.

Downloading same episode but using IDM gave me around 5-8MB/s download speed.

My download speed: Screenshot 2021-05-09 020832

ali-sajjad-rizavi commented 3 years ago

It might be because of the video server because I receive 2mbps sometimes (my internet speed is 15MBPS). but I'll try to change the "options" added in aria2 downloader.

I see that you are using the release I just created!

Do you know how to run from python code? This way you will be able to test with the latest updated code.

ajam123 commented 3 years ago

It might be because of the video server because I receive 2mbps sometimes (my internet speed is 15MBPS). but I'll try to change the "options" added in aria2 downloader.

I see that you are using the release I just created!

Do you know how to run from python code? This way you will be able to test with the latest updated code.

Yes, I do know how to run them.

ali-sajjad-rizavi commented 3 years ago

Downloading same episode but using IDM gave me around 5-8MB/s download speed.

So IDM is giving that much speed! Then I guess I need a look at the settings of aria2 downloader. This issue is helpful thanks!

ali-sajjad-rizavi commented 3 years ago

Do you think this would help temporarily if I add idman.bat file creation feature? So you will have to double click that file and then the downloads will be added to IDM queue. @ajam123

ajam123 commented 3 years ago

Do you think this would help temporarily if I add idman.bat file creation feature? So you will have to double click that file and then the downloads will be added to IDM queue. @ajam123

I think that works too.

ajam123 commented 3 years ago

issue fixed after change and adding this line to cli_downloader.py

options = f'-x 16 --max-connection-per-server=16 -s 16 -j 16 --max-concurrent-downloads=16 --check-certificate=false -d downloaded -o "{filename}"'

ajam123 commented 3 years ago

Problem fixed after changed the options to options = f'-k 2M -x 16 -s 16 --check-certificate=false -d downloaded -o "{filename}"'

This will force the download speeds to run at full speed.

ali-sajjad-rizavi commented 3 years ago

Great! I have noted that. I believe that it's a bad way that I had put options here, so I plan to enable users to change aria2 options in settings.py file.

ali-sajjad-rizavi commented 3 years ago

I have re-opened this issue, and will close it when I add these options options = f'-k 2M -x 16 -s 16 --check-certificate=false -d downloaded -o "{filename}"' to the master branch by enabling custom setting. @ajam123