Giter Club home page Giter Club logo

Comments (6)

rbrito avatar rbrito commented on May 21, 2024

When using an external downloader, resuming is automatically done. I'm currently using aria2c instead of wget, as it is able to download many things in parallel. The patch that I have is not quite ready for prime time, though.

The proper solution would be to generalize the "outsourcing" of downloading material to a specialized download program.

from coursera-dl.

jplehmann avatar jplehmann commented on May 21, 2024

Please do submit the patch when ready!

from coursera-dl.

rbrito avatar rbrito commented on May 21, 2024

Are you interested in that? To simply resume downloads, you can add the -c option to wget.

Of course, with aria2c, you can get parallel downloads, which is a nice thing to use your bandwidth. How polished do you want the patch to use aria2c?

Anyway, it would be nice to have my previous pull request (issue #19) merged, so that we can focus on other improvements.

from coursera-dl.

mudrion avatar mudrion commented on May 21, 2024

Hi and Thx a lot for this script really nice one.
Would be really cool to have resume and parallel DL

from coursera-dl.

jplehmann avatar jplehmann commented on May 21, 2024

The issue I see is that we always remove partially downloaded files right now, so we'd need to add a flag to keep partials, and then for each downloader, we must add the option to resume.

A person using this option is at their own risk of using a downloading method which does not resume, and will thus skip over those partials. I would also think this would be slower in general because it'll need to try every file, unless additional logic is added to only retry files with a recent timestamp.

@rbrito any thoughts? I see you had some comments a long time ago but I'm assuming #19 was merged by now.

from coursera-dl.

seanjensengrey avatar seanjensengrey commented on May 21, 2024

I too noticed that partially downloaded files are not completed the next time the script is run. Even a zero length mp4 is skipped. Two solutions:

  • Do a HEAD request against each asset (pref with pipelining)
  • Keep partially downloaded files in a temp area and move them to the dest on completion

One of my biggest use cases for the downloader is to be able to watch the videos while on fragile and/or low bandwidth connections. In Malaysia and Nepal coursera was impossible for me without the downloader.

from coursera-dl.

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.