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

Downloaded videos are all 7579 bytes #9

Closed
bow opened this issue Apr 21, 2012 · 3 comments
Closed

Downloaded videos are all 7579 bytes #9

bow opened this issue Apr 21, 2012 · 3 comments

Comments

@bow
Copy link

bow commented Apr 21, 2012

I'm running Python2.7.3 on Arch Linux. Everything works fine, and I can download the other files (pdf, pptx), but the mp4 files are all unplayable.

Here's what the console is showing

ALGO_01_I._INTRODUCTION/01_Introduction_-_Why_Study_Algorithms_.mp4
Downloading https://class.coursera.org/algo/lecture/download.mp4?lecture_id=20 ->  ALGO_01_I._INTRODUCTION/01_Introduction_-_Why_Study_Algorithms_.mp4
7579 bytes read .
ALGO_01_I._INTRODUCTION/02_About_the_Course.mp4
Downloading https://class.coursera.org/algo/lecture/download.mp4?lecture_id=21 ->  ALGO_01_I._INTRODUCTION/02_About_the_Course.mp4
7579 bytes read .
ALGO_01_I._INTRODUCTION/03_Merge_Sort-_Motivation_and_Example.mp4
Downloading https://class.coursera.org/algo/lecture/download.mp4?lecture_id=1 ->   ALGO_01_I._INTRODUCTION/03_Merge_Sort-_Motivation_and_Example.mp4
7578 bytes read .
ALGO_01_I._INTRODUCTION/04_Merge_Sort-_Pseudocode.mp4
Downloading https://class.coursera.org/algo/lecture/download.mp4?lecture_id=2 ->     ALGO_01_I._INTRODUCTION/04_Merge_Sort-_Pseudocode.mp4
7578 bytes read .
ALGO_01_I._INTRODUCTION/05_Merge_Sort-_Analysis.mp4
Downloading https://class.coursera.org/algo/lecture/download.mp4?lecture_id=3 ->     ALGO_01_I._INTRODUCTION/05_Merge_Sort-_Analysis.mp4

They're all the same size, and I can't figure out why..

@jplehmann
Copy link
Contributor

That's very odd. I just downloaded a single video to test, and had no problems.
coursera-dl algo --cookies=../cookies.txt -f "mp4"
log:
ALGO_01_I._INTRODUCTION/01_Introduction_-_Why_Study_Algorithms_.mp4 20069479 bytes read .
file:
-rw-r--r-- 1 john john 20069479 2012-04-23 22:03 ALGO_01_I._INTRODUCTION/01_Introduction_-_Why_Study_Algorithms_.mp4

It's only reading the first 7578 or 7579 bytes of your videos before writing the files, according to the log.

@tomwolfe
Copy link

I had the same issue. Try deleting your old coursera cookies*, re-login, re-export your cookies file and try again. Those tiny files it's downloading are the coursera login page. Thus the previous steps fixed it for me. Hopefully it helps you.

*for chrome: https://support.google.com/chrome/bin/answer.py?hl=en&answer=95647&p=cpn_cookies

@rbrito
Copy link
Member

rbrito commented Jan 31, 2013

As the cookies thing doesn't seem to be working anymore, I guess that this bug is not relevant anymore.

Thus, I'm closing this issue, but feel free to open another issue if the problem persists.

@rbrito rbrito closed this as completed Jan 31, 2013
jonasdt pushed a commit to jonasdt/coursera that referenced this issue Dec 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants