przemyslawpluta / mongo-edu

Select and download videos and handouts from https://university.mongodb.com courses
MIT License
279 stars 83 forks source link

Resume downloads of list when network drops #63

Closed seanmavley closed 8 years ago

seanmavley commented 8 years ago

I'm on an unstable network. During downloads, after 10 or so videos downloaded, it stops. Can I resume the download from the last uncompleted file?

Is that what the load/save preset is for?

Or better still, a way to retry downloading when network drops? I get this error when it cuts:

Error: getaddrinfo EAI_AGAIN r17---sn-aigllnsy.googlevideo.com:443 at Object.exports._errnoException (util.js:855:11) at errnoException (dns.js:31:15) at GetAddrInfoReqWrap.onlookup as oncomplete

The network is fast enough, just unstable, comes and goes like a ghost

At the moment, I can't use it because every time it stops, I need to restart from scratch, and I wished I was an ISP

przemyslawpluta commented 8 years ago

@seanmavley will deploy something tomorrow to npm. Enhancement will resume the download of the videos. It should help out with your network issues.

seanmavley commented 8 years ago

Thanks. Will be a great addition.

On Wed, Jan 6, 2016, 23:10 Przemyslaw Pluta notifications@github.com wrote:

@seanmavley https://github.com/seanmavley will deploy something tomorrow to npm. Enhancement will resume the download of the videos. It should help out with your network issues.

— Reply to this email directly or view it on GitHub https://github.com/przemyslawpluta/mongo-edu/issues/63#issuecomment-169491317 .

przemyslawpluta commented 8 years ago

@seanmavley in reality you might still get the same error msg but next download will start from the place you've left off hence you don't have to download entire file all over again.

seanmavley commented 8 years ago

That's even better. So, say, if I'm downloading 10 videos in a course, five succeeds before error, then on next re download, it begins download from the 6th file in line, when it learns 1 to 5 files are already in the directory.

On Wed, Jan 6, 2016, 23:14 Przemyslaw Pluta notifications@github.com wrote:

@seanmavley https://github.com/seanmavley in reality you might still get the same error msg but next download will start from the place you've left off hence you don't have to download entire file all over again.

— Reply to this email directly or view it on GitHub https://github.com/przemyslawpluta/mongo-edu/issues/63#issuecomment-169492181 .

przemyslawpluta commented 8 years ago

@seanmavley done. Just upgrade to latest version mongo-edu v0.2.40.

seanmavley commented 8 years ago

Works Great. Awesome! Thanks