Git Product home page Git Product logo

Comments (13)

allejok96 avatar allejok96 commented on August 14, 2024

I guess, since it calls the curl binary, simply removing the -s flag from the curl command would do it? Tell me, why do you want that info? Just nerdy statistics?

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

So with --progress-bar as the curl option, we get:

downloading: 502017872_E_cnt_1_r720P.mp4 (Think Past the Drink)
######################################################################## 100.0%
downloading: pk_E_029_r720P.mp4 (Be Humble)
######################################################################## 100.0%
downloading: pkon_E_008_r720P.mp4 (Journey With Jehovah’s Friends)

vs with just removing --silent

_downloading: 502017872_E_cnt_1_r720P.mp4 (Think Past the Drink)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 29.5M 100 29.5M 0 0 2752k 0 0:00:11 0:00:11 --:--:-- 2749k
downloading: pk_E_029_r720P.mp4 (Be Humble)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25.3M 100 25.3M 0 0 2364k 0 0:00:11 0:00:11 --:--:-- 2317k
_

The latter does look a little messy, but I'd be fine with that being a user defined option.
Maybe a --simple-progress and --verbose

from jw-scripts.

allejok96 avatar allejok96 commented on August 14, 2024

While you're on it, does curl have some option of making it look nicer? If not, I'm not sure how this would be done, though I could probably figure something out, I just don't know if it is worth putting down the work...

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on August 14, 2024

Thanks for your help. Replying on my phone, I didn't see that you suggested --progress-bar. That is great. I'll toss it in.

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on August 14, 2024

Heh, yeah that's some special stuff going on there... The simplest way is using argparse at the top of jwb-index. The add_arguments function is just a thing by me to share arguments across the scripts....

I've just pushed a new version with the simplified progress bar on by default in the v1.3-beta branch.

I don't know about having a more verbose output.... Seems too cluttered. If you want to watch your download speed, why not use something like iftop assuming you're on *nix. Or with your programming skills, just remove --progress-bar from parse.py. But that's just my point of view. Do you have better reason?

from jw-scripts.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 14, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on August 14, 2024

Ok, great! I'll have to test this some more before pushing it into master.

from jw-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.