Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Does the script overwrite already downloaded video? #52

Closed
dipen opened this issue Jan 30, 2013 · 6 comments
Closed

[Question] Does the script overwrite already downloaded video? #52

dipen opened this issue Jan 30, 2013 · 6 comments
Labels

Comments

@dipen
Copy link

dipen commented Jan 30, 2013

Hi,

I might be using the script multiple times on the same course, for instance when a new week of videos are put online. Will the script skip already downloaded sections or will it try to download from the start?

Script worked great to get me proglang videos :) Thanks a ton.

@dipen dipen closed this as completed Jan 30, 2013
@dipen dipen reopened this Jan 30, 2013
@rbrito
Copy link
Member

rbrito commented Jan 31, 2013

Hi.

On Wed, Jan 30, 2013 at 9:33 PM, dipen notifications@github.com wrote:

I might be using the script multiple times on the same course, for instance when a new week of videos are put online. Will the script skip already downloaded sections or will it try to download from the start?

No, it won't overwrite the files. I use it myself to only download the
missing videos for a given course.

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org/blog : Projects : https://github.com/rbrito/
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

@rbrito rbrito closed this as completed Jan 31, 2013
@dipen
Copy link
Author

dipen commented Jan 31, 2013

Thanks!

@dipen
Copy link
Author

dipen commented Feb 5, 2013

As far as I can tell, its downloading the videos (the ones downloaded in first run) again on the second run.

I downloaded the course yesterday and then I was showing a friend this utility, it started downloaded ( heavy download internet traffic ) the videos again. I really like it, but this is kind of a bummer :(

@dipen
Copy link
Author

dipen commented Feb 5, 2013

Actually, I think I'll need to look at code to be sure, its skipped many but then downloaded some which I'm sure were there yesterday. Here is the output log

https://gist.github.com/dipen/4714437

@jplehmann
Copy link
Contributor

Are you sure that all of those files were already there? Kind of strange for it to skip some but not all which were already downloaded.

What happens if you let it run to completion (that is, it downloads eveything available), and then run the command again? It should skip everything in this case. This should be easy to verify.

@rbrito
Copy link
Member

rbrito commented Feb 5, 2013

Hi.

On Tue, Feb 5, 2013 at 11:31 AM, John Lehmann notifications@github.com wrote:

Are you sure that all of those files were already there? Kind of strange for it to skip some but not all which were already downloaded.

Something that I have seen happen is that:

  • Coursera uploads some (but not all) material for a given week to
    Amazon. Then, they update the things remaining (e.g., missing PDFs
    etc).
  • Some files are uploaded to Amazon, but, for some reason, Amazon
    gives us a 403 (forbidden) or 500 (server error) when serving them.
    Then, in a second run (after a few hours), the files become available
    again.

I see this when downloading with aria2c (which usually has very
verbose output and, now, it has colors :) ) and I have, therefore,
learnt to not worry in such cases, as the problem is not with
coursera-dl, but out of our hands.

To the original poster: can you verify that you're not hitting one of
the cases that I mentioned above?

It would help a lot if you could use an external downloader (say,
wget) and stare at its output when downloading stuff.

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org/blog : Projects : https://github.com/rbrito/
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants