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

download link produces strangely deflated file #849

Closed
doj opened this issue May 22, 2013 · 1 comment
Closed

download link produces strangely deflated file #849

doj opened this issue May 22, 2013 · 1 comment

Comments

@doj
Copy link

@doj doj commented May 22, 2013

I tried to download the current version of youtube-dl from http://youtube-dl.org/downloads/2013.05.14/youtube-dl

however the file I retrieve now looks like:

!/usr/bin/env python

PK^C^D^T^@^@^@^H^@§H­B.u¡<98>¶+^@^@n«^@^@^^@^^@youtube_dl/FileDownloader.pyUT
.....

I guess somehow the web server is confused by downloading the python file unmodified?

@phihag
Copy link
Contributor

@phihag phihag commented May 22, 2013

That's completely fine. Since youtube-dl consists of many Python files, we pack all of these into one single zip file. Just execute this file, either directly with

chmod a+x ./youtube-dl
./youtube-dl

or

python youtube-dl

Note that youtube-dl (and the execution of zip files) requires Python 2.6, 2.7, or 3.3+.

If you are interested in looking into the source code, either check out this repository (with git clone git@github.com:rg3/youtube-dl.git) or remove the first 22 bytes and unpack it with an unzipper of your choice.

@phihag phihag closed this May 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.