New downloads page for git
parent
2840ae3a8f
commit
3bcc0a565c
@ -1,2 +1,2 @@
|
||||
*.kate-swp
|
||||
|
||||
downloads/*
|
||||
|
@ -1,6 +0,0 @@
|
||||
update:
|
||||
python ./generate-download
|
||||
python ./update-copyright
|
||||
|
||||
.PHONY: update
|
||||
|
@ -1,41 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>About youtube-dl</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">About the program</td>
|
||||
</tr></table>
|
||||
|
||||
<h1>What is it?</h1>
|
||||
|
||||
<p><em>youtube-dl</em> is a small command-line program to download videos from YouTube.com and a few more sites. It requires the <a href="http://www.python.org/">Python interpreter</a>, version 2.6+ (Python 3 support is planned), and it is not platform specific. It should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like. The project is currently being developed at <a href="https://github.com/rg3/youtube-dl/"><strong>github</strong></a>.</p>
|
||||
|
||||
<h1>Authors</h1>
|
||||
|
||||
<ul>
|
||||
<li>Ricardo Garcia Gonzalez: program core, YouTube.com InfoExtractor, metacafe.com InfoExtractor and YouTube playlist InfoExtractor.</li>
|
||||
<li>Danny Colligan: YouTube search InfoExtractor, ideas and patches.</li>
|
||||
<li>Benjamin Johnson: Google Video InfoExtractor, Photobucket InfoExtractor, Yahoo! Video InfoExtractor, generic InfoExtractor, ideas, patches, etc.</li>
|
||||
<li>Vasyl' Vavrychuk: DepositFiles InfoExtractor, ideas and patches.</li>
|
||||
<li>Witold Baryluk: Dailymotion InfoExtractor.</li>
|
||||
<li>Paweł Paprota: YouTube user videos InfoExtractor.</li>
|
||||
<li>Gergely Imreh: Facebook InfoExtractor, ideas and patches.</li>
|
||||
<li>Philipp Hagemeister: Maintainer since 2011, InfoExtractors for blip.tv, thedailyshow/colbertnation, The Escapist</li>
|
||||
<li>Sören Schulze: myvideo InfoExtractor.</li>
|
||||
<li>Filippo Valsorda: Developer, Windows build, testing.</li>
|
||||
<li>Many other people contributing patches, code, ideas and kind messages. Too many to be listed here. You know who you are. Thank you very much.</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2012 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
@ -1,33 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl: Download Page</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Download Page</td>
|
||||
</tr></table>
|
||||
|
||||
<p>Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called <em>Save Target As</em> or <em>Save Link As</em>, depending on the web browser you are using.</p>
|
||||
|
||||
<p>Remember <em>youtube-dl</em> requires <a href="http://www.python.org/">Python</a> version 2.x (x being at least 6) to work.</p>
|
||||
|
||||
<h2><a href="https://github.com/downloads/rg3/youtube-dl/youtube-dl">2012.12.11</a></h2>
|
||||
|
||||
<ul>
|
||||
<li><strong>MD5</strong>: a73e1d6f59e34d1231cf5788b31fa177</li>
|
||||
<li><strong>SHA1</strong>: aa45f8e32c637a2342674f32d1ca9e8f70bf695c</li>
|
||||
<li><strong>SHA256</strong>: e2109ac82b05f910828a12b2de0d8e5d3b29b0ed9e2daeb68badb1fce8c1ec7a</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2011 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
@ -1,33 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl: Download Page</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Download Page</td>
|
||||
</tr></table>
|
||||
|
||||
<p>Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called <em>Save Target As</em> or <em>Save Link As</em>, depending on the web browser you are using.</p>
|
||||
|
||||
<p>Remember <em>youtube-dl</em> requires <a href="http://www.python.org/">Python</a> version 2.x (x being at least 6) to work.</p>
|
||||
|
||||
<h2><a href="@PROGRAM_URL@">@PROGRAM_VERSION@</a></h2>
|
||||
|
||||
<ul>
|
||||
<li><strong>MD5</strong>: @PROGRAM_MD5SUM@</li>
|
||||
<li><strong>SHA1</strong>: @PROGRAM_SHA1SUM@</li>
|
||||
<li><strong>SHA256</strong>: @PROGRAM_SHA256SUM@</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2011 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
@ -1,90 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl: Frequently Asked Questions</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Frequently Asked Questions</td>
|
||||
</tr></table>
|
||||
|
||||
<div class="toc">
|
||||
<h1>Questions</h1>
|
||||
|
||||
<ul>
|
||||
<li><a href="#q-bugs">The program has stopped working / I want to suggest a feature.</a></li>
|
||||
<li><a href="#q-best-option">Can you please put the -b option back?</a></li>
|
||||
<li><a href="#q-http-402">I get HTTP error <code>402 Payment Required</code> when trying to download a video. What's this?</a></li>
|
||||
<li><a href="#q-play-video">I have downloaded a video but how can I play it?</a></li>
|
||||
<li><a href="#q-g-links">The links provided by youtube-dl -g are not working anymore</a></li>
|
||||
<li><a href="#q-no-fmt_url_map">ERROR: no fmt_url_map or conn information found in video info</a></li>
|
||||
<li><a href="#q-unable-to-download-video">ERROR: unable to download video</a></li>
|
||||
<li><a href="#q-syntax-error-non-ascii">SyntaxError:Non-ASCII character</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<h1 id="q-bugs">The program has stopped working / I want to suggest a feature.</h1>
|
||||
|
||||
<p>Please report the problem in the <a href="https://github.com/rg3/youtube-dl/issues">issuetracker</a>. Your bug report should include:</p>
|
||||
|
||||
<ul>
|
||||
<li>Your exact command line, like <code style="white-space: pre;">youtube-dl -t "http://www.youtube.com/watch?v=uHlDtZ6Oc3s&feature=channel_video_title"</code></li>
|
||||
<li>The output of <code>youtube-dl --version</code>. If you have made any changes, please provide it. In many cases, simply updating (with <code style="white-space: pre;">youtube-dl --update</code>) fixes the problem.</li>
|
||||
<li>The output of <code>python --version</code>. We support Python 2.6, 2.7, and 3.3+.</li>
|
||||
<li>The name and version of your Operating System ("Ubuntu 11.04 x64" or "Windows 7 x64" is usually enough).</li>
|
||||
</ul>
|
||||
|
||||
<p>If you're suggesting a feature, any details can help:</p>
|
||||
|
||||
<ul>
|
||||
<li>If it's an option: How would you call it? What should the help text be?</li>
|
||||
<li>If it's support for a new site: Mention an example video URL. If you can describe the download process, that's a huge plus. But don't worry if you can't - we love a good challenge ;).</li>
|
||||
<li>For programmers: Providing code that implements the change will speed up the integration process. <a href="https://github.com/rg3/youtube-dl/fork">Fork youtube-dl</a> on github, and <a href="http://help.github.com/send-pull-requests/">send us a pull request</a>.</li>
|
||||
</ul>
|
||||
|
||||
<h1 id="q-best-option">Can you please put the -b option back?</h1>
|
||||
|
||||
<p>Most people asking this question are not aware that youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be 1080p or 720p in some cases, so you no longer need the -b option. For some specific videos, maybe YouTube does not report them to be available in a specific high quality format you're interested in. In that case, simply request it with the -f option and youtube-dl will try to download it.</p>
|
||||
|
||||
<h1 id="q-http-402">I get HTTP error <code>402 Payment Required</code> when trying to download a video. What's this?</h1>
|
||||
|
||||
<p>Apparently YouTube requires you to pass a CAPTCHA test if you download too much. At this moment, there is no plan to solve this issue, as youtube-dl is a command line program that is many times used without X and in an unattended fashion, so there's no easy way of solving this, in my humble opinion. I have no plans to solve it at this moment, but let me know your ideas and code if you come up with something.</p>
|
||||
|
||||
<h1 id="#q-play-video">I have downloaded a video but how can I play it?</h1>
|
||||
|
||||
<p>If you used youtube-dl to download a video and it wrote the video file to your hard drive, finishing with a completion message of 100%, the video is downloaded, so youtube-dl has finished its job and usually it's not to blame for problems that happen later. Not every video player supports FLV or MP4 files and every codec out there needed to play YouTube videos. In Linux, for example, I am generally pleased with <a href="http://www.mplayerhq.hu/">MPlayer</a>. In Windows, I tend to use <a href="http://www.videolan.org/">VLC</a>. Those usually work flawlessly.</p>
|
||||
|
||||
<h1 id="q-g-links">The links provided by youtube-dl -g are not working anymore</h1>
|
||||
|
||||
<p>Due to changes in YouTube, youtube-dl is now forced to provide the final video URL directly instead of the ones it used to provide, which were based on the "get_video" resource. The new URLs are real and work too, but they need to be used in combination with the <code>--cookies</code> option to be useful for external applications. <a href="https://github.com/rg3/youtube-dl/issues/closed#issue/41">Issue 41</a> in the issue tracker contains a bit more information about the problem.</p>
|
||||
|
||||
<h1 id="q-no-fmt_url_map">ERROR: no fmt_url_map or conn information found in video info</h1>
|
||||
|
||||
<p>youtube has switched to a new video info format in July 2011 which is not supported by old versions of youtube-dl. You can update youtube-dl with <code style="white-space:pre;">sudo youtube-dl --update</code> (or <code>python youtube-dl --update</code>).
|
||||
</p>
|
||||
|
||||
<h1 id="q-unable-to-download-video">ERROR: unable to download video</h1>
|
||||
|
||||
<p>youtube requires an additional signature since September 2012 which is not supported by old versions of youtube-dl. You can update youtube-dl with <code style="white-space:pre;">sudo youtube-dl --update</code> (or <code>python youtube-dl --update</code>).</p>
|
||||
|
||||
<h1 id="q-syntax-error-non-ascii">SyntaxError:Non-ASCII character</h1>
|
||||
|
||||
<p>The error
|
||||
|
||||
<code style="white-space:pre; display: block; margin: 1em 2em;">File "youtube-dl", line 2
|
||||
SyntaxError: Non-ASCII character '\x93' ...</code>
|
||||
|
||||
means you're using an outdated version of Python. Please update to Python 2.6 or 2.7.</p>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2012 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
@ -1,33 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import hashlib
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import urllib.request
|
||||
|
||||
URL = 'https://github.com/downloads/rg3/youtube-dl/youtube-dl'
|
||||
|
||||
with tempfile.NamedTemporaryFile(suffix='youtube-dl', delete=True) as ytdl_file:
|
||||
with urllib.request.urlopen(URL) as dl:
|
||||
shutil.copyfileobj(dl, ytdl_file)
|
||||
|
||||
ytdl_file.seek(0)
|
||||
data = ytdl_file.read()
|
||||
|
||||
ytdl_file.flush()
|
||||
version = subprocess.check_output(['python3', ytdl_file.name, '--version']).decode('ascii').strip()
|
||||
|
||||
# Read template page
|
||||
with open('download.html.in', 'r', encoding='utf-8') as tmplf:
|
||||
template = tmplf.read()
|
||||
|
||||
md5sum = hashlib.md5(data).hexdigest()
|
||||
sha1sum = hashlib.sha1(data).hexdigest()
|
||||
sha256sum = hashlib.sha256(data).hexdigest()
|
||||
template = template.replace('@PROGRAM_VERSION@', version)
|
||||
template = template.replace('@PROGRAM_URL@', URL)
|
||||
template = template.replace('@PROGRAM_MD5SUM@', md5sum)
|
||||
template = template.replace('@PROGRAM_SHA1SUM@', sha1sum)
|
||||
template = template.replace('@PROGRAM_SHA256SUM@', sha256sum)
|
||||
with open('download.html', 'w', encoding='utf-8') as dlf:
|
||||
dlf.write(template)
|
Binary file not shown.
Before Width: | Height: | Size: 435 B |
Binary file not shown.
Before Width: | Height: | Size: 356 B |
Binary file not shown.
Before Width: | Height: | Size: 425 B |
Binary file not shown.
Before Width: | Height: | Size: 349 B |
Binary file not shown.
Before Width: | Height: | Size: 331 B |
@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Download videos from YouTube.com
|
||||
<span style="font-size: x-small; font-weight: normal;">(and mores sites...)</span></td>
|
||||
</tr></table>
|
||||
|
||||
<p><em>youtube-dl</em> is a small command-line program to download videos from YouTube.com and a few more sites. It requires the <a href="http://www.python.org/">Python interpreter</a> (2.6, 2.7, or 3.3+), and it is not platform specific. It should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.</p>
|
||||
|
||||
<table border="0" id="rgb">
|
||||
<tr><td><a class="button" id="r" href="documentation.html">Documentation</a></td></tr>
|
||||
<tr><td><a class="button" id="g" href="download.html">Download</a></td></tr>
|
||||
<tr><td><a class="button" id="main-support" href="https://github.com/rg3/youtube-dl/issues/new">Support</a></td></tr>
|
||||
<tr><td><a class="button" id="y" href="https://github.com/rg3/youtube-dl/">Develop</a></td></tr>
|
||||
<tr><td><a class="button" id="b" href="about.html">About</a></td></tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
You can also contact us on the irc channel <a href="irc://chat.freenode.net/#youtube-dl">#youtube-dl</a>(<a href="http://webchat.freenode.net/?randomnick=1&channels=youtube-dl">webchat</a>) on freenode.
|
||||
</p>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2012 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>youtube-dl downloads</h1>
|
||||
|
||||
<?php
|
||||
$DOWNLOAD_DIR = 'downloads';
|
||||
|
||||
$versions = array_filter(function($v) {return $v{0} != '.'}, scandir($DOWNLOAD_DIR));
|
||||
sort($versions);
|
||||
|
||||
$latest = end($versions);
|
||||
|
||||
echo '<div class="latest">';
|
||||
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
|
||||
echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
|
||||
echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
|
||||
echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz</a>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<ul>';
|
||||
foreach ($versions as $v) {
|
||||
echo '<li><a href="' . htmlspecialchars($version) . '">' . htmlspecialchars($version) . '</a></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<table border="0" id="rgb" style="float: right;">
|
||||
<tr><td><a class="button" id="main-homepage" href="http://rg3.github.com/youtube-dl/">Homepage</a></td></tr>
|
||||
<tr><td><a class="button" id="g" href="http://rg3.github.com/youtube-dl/download.html">Download instructions</a></td></tr>
|
||||
<tr><td><a class="button" id="r" href="http://rg3.github.com/youtube-dl/documentation.html">Documentation</a></td></tr>
|
||||
<tr><td><a class="button" id="main-support" href="https://github.com/rg3/youtube-dl/issues/new">Support</a></td></tr>
|
||||
<tr><td><a class="button" id="y" href="https://github.com/rg3/youtube-dl/">Develop</a></td></tr>
|
||||
<tr><td><a class="button" id="b" href="http://rg3.github.com/youtube-dl/about.html">About</a></td></tr>
|
||||
</table>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2012 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
@ -1,21 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
import datetime
|
||||
import glob
|
||||
import io # For Python 2 compatibilty
|
||||
import os
|
||||
import re
|
||||
|
||||
year = str(datetime.datetime.now().year)
|
||||
for fn in glob.glob('*.html'):
|
||||
with io.open(fn, encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
newc = re.sub(ur'(?P<copyright>Copyright © 2006-)(?P<year>[0-9]{4})', u'Copyright © 2006-' + year, content)
|
||||
if content != newc:
|
||||
tmpFn = fn + '.part'
|
||||
with io.open(tmpFn, 'wt', encoding='utf-8') as outf:
|
||||
outf.write(newc)
|
||||
os.rename(tmpFn, fn)
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl under Windows</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Running it under Windows</td>
|
||||
</tr></table>
|
||||
|
||||
<p>We now provide an <em>experimental</em> Windows build. Simply <a href="https://github.com/rg3/youtube-dl/raw/master/youtube-dl.exe">download it here</a>, copy it to a location of your choosing, and run it in the command line.</p>
|
||||
|
||||
<div class="note">
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
||||
<img alt="Creative Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
||||
Copyright © 2006-2012 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue