From d929dd31d1d7c1a7a59de0d67ab24dc78c903953 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 10 May 2013 02:09:39 +0200 Subject: [PATCH 01/49] IP check --- .htaccess | 2 ++ ip.php | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 .htaccess create mode 100644 ip.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..b1dd42786 --- /dev/null +++ b/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^ip/?$ ip.php diff --git a/ip.php b/ip.php new file mode 100644 index 000000000..46b186613 --- /dev/null +++ b/ip.php @@ -0,0 +1,3 @@ + Date: Fri, 10 May 2013 02:09:43 +0200 Subject: [PATCH 02/49] Update gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 4cb06562c..17dfe30db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.kate-swp downloads/* +updates_key.pem +youtube_dl.egg-info + From 420cf88aeb8e8e5c459b4c2fbccbe04e78f5f94c Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 17:28:55 +0200 Subject: [PATCH 03/49] Remove copyright note (this page is trivial) --- index.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/index.php b/index.php index 129bfab25..3d104749b 100644 --- a/index.php +++ b/index.php @@ -42,10 +42,5 @@ echo ''; About -
- -Creative Commons License
-Copyright © 2006-2012 Ricardo Garcia Gonzalez
From d185f034551860d1ebfb20ff9646d2c8fcee21e9 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 17:33:24 +0200 Subject: [PATCH 04/49] Record changes to download server --- .htaccess | 2 ++ tmp/.git_dont_delete | 0 2 files changed, 2 insertions(+) create mode 100644 tmp/.git_dont_delete diff --git a/.htaccess b/.htaccess index b1dd42786..f0bdfbd9f 100644 --- a/.htaccess +++ b/.htaccess @@ -1,2 +1,4 @@ RewriteEngine On RewriteRule ^ip/?$ ip.php + +RewriteRule ^bugs?/? http://github.com/rg3/youtube-dl/issues [R=302,L] diff --git a/tmp/.git_dont_delete b/tmp/.git_dont_delete new file mode 100644 index 000000000..e69de29bb From 8005b349a40e57b4abc456b349789391af94b4ae Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 18:00:37 +0200 Subject: [PATCH 05/49] Add latest/ directory --- latest/.git_dont_delete | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 latest/.git_dont_delete diff --git a/latest/.git_dont_delete b/latest/.git_dont_delete new file mode 100644 index 000000000..e69de29bb From 110c975154feee845039bcb9bfa4bca565362829 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 18:29:07 +0200 Subject: [PATCH 06/49] Script to update the latest/ directory (#925) --- update_latest.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 update_latest.sh diff --git a/update_latest.sh b/update_latest.sh new file mode 100755 index 000000000..66a3e9999 --- /dev/null +++ b/update_latest.sh @@ -0,0 +1,9 @@ +#/bins/sh +set -e + +version="$1" + +ln -sf ../downloads/$version latest/directory +for f in $(ls "downloads/$version/"); do \ + ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") +done From 0669b923c0ae82408112864c47667908e34d346a Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 18:32:45 +0200 Subject: [PATCH 07/49] Allow listing latest/ --- latest/.htaccess | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 latest/.htaccess diff --git a/latest/.htaccess b/latest/.htaccess new file mode 100644 index 000000000..7e3206c18 --- /dev/null +++ b/latest/.htaccess @@ -0,0 +1,3 @@ + +Options +Indexes + From c052029267ba4988e50bd45a85a27dd5f1fb01de Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 19:04:30 +0200 Subject: [PATCH 08/49] Add an error message if number of arguments is incorrect --- update_latest.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_latest.sh b/update_latest.sh index 66a3e9999..2b1c597ec 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -3,6 +3,11 @@ set -e version="$1" +if [ -z "$version" ]; then + echo "Usage: $0 version" + exit 1 +fi + ln -sf ../downloads/$version latest/directory for f in $(ls "downloads/$version/"); do \ ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") From abb88dcb2fbda373b4923f17183bbfc3f49d01e8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 19:13:59 +0200 Subject: [PATCH 09/49] Allow latest to be called from everywhere --- .gitignore | 2 +- update_latest.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 17dfe30db..e18211d57 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ downloads/* updates_key.pem youtube_dl.egg-info - +latest/* \ No newline at end of file diff --git a/update_latest.sh b/update_latest.sh index 2b1c597ec..05c2f17e1 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -8,6 +8,8 @@ if [ -z "$version" ]; then exit 1 fi +cd "$(dirname $(readlink -f $0))" + ln -sf ../downloads/$version latest/directory for f in $(ls "downloads/$version/"); do \ ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") From 005caca467e62c7d0ac9ca50aa7b73198f36084d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 20:51:29 +0200 Subject: [PATCH 10/49] Disable automatic directory detection --- update_latest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_latest.sh b/update_latest.sh index 05c2f17e1..447f171c2 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -10,7 +10,7 @@ fi cd "$(dirname $(readlink -f $0))" -ln -sf ../downloads/$version latest/directory +ln -sf --no-target-directory ../downloads/$version latest/directory for f in $(ls "downloads/$version/"); do \ - ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") + ln -sf --no-target-directory "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") done From c20b2894ff596d9dd85d4d22c9b52742f5714889 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 20:53:54 +0200 Subject: [PATCH 11/49] Linkify latest --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 3d104749b..f6ae0db23 100644 --- a/index.php +++ b/index.php @@ -18,7 +18,7 @@ sort($versions); $latest = end($versions); echo '
'; -echo '
Latest (v' . htmlspecialchars($latest) . ') downloads:
'; +echo '
Latest (v' . htmlspecialchars($latest) . ') downloads:
'; echo 'youtube-dl '; echo 'youtube-dl.exe '; echo 'youtube-dl-' . htmlspecialchars($latest) . '.tar.gz'; From c74d3d5d8051bd432570aa6e534a39870adcc5ef Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 25 Jun 2013 20:54:43 +0200 Subject: [PATCH 12/49] echo latest version, too --- update_latest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update_latest.sh b/update_latest.sh index 447f171c2..355a22a6d 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -14,3 +14,5 @@ ln -sf --no-target-directory ../downloads/$version latest/directory for f in $(ls "downloads/$version/"); do \ ln -sf --no-target-directory "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") done +echo -n "$version" > latest/version + From a5bd123ec08b03646166cdcdbfd2ded8ab6d005a Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 19 Apr 2014 14:54:58 +0200 Subject: [PATCH 13/49] Shorten bug reporting URL (Suggested by @AGSPhoenix) --- .htaccess | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index f0bdfbd9f..ae18d0114 100644 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,5 @@ RewriteEngine On RewriteRule ^ip/?$ ip.php -RewriteRule ^bugs?/? http://github.com/rg3/youtube-dl/issues [R=302,L] +RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] +RewriteRule ^bug-tips/? https://github.com/rg3/youtube-dl#bugs [R=302,L] From 2f0e8ad0a6e3b8fdaaf1c8efa5b737810dd3f84d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 19 Apr 2014 14:57:02 +0200 Subject: [PATCH 14/49] Rename reporting shortener --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index ae18d0114..4b6f82faf 100644 --- a/.htaccess +++ b/.htaccess @@ -2,4 +2,4 @@ RewriteEngine On RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] -RewriteRule ^bug-tips/? https://github.com/rg3/youtube-dl#bugs [R=302,L] +RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L] From 809987a65c4e4af438bdafc940c53a04cd9abaa8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 19 Apr 2014 15:00:04 +0200 Subject: [PATCH 15/49] Do not escape redirect URL --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 4b6f82faf..0209de9b1 100644 --- a/.htaccess +++ b/.htaccess @@ -2,4 +2,4 @@ RewriteEngine On RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] -RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L] +RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] From 17e311adf0e53fe486c1449c3ea5342a9f2560b2 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 30 Apr 2014 10:21:09 +0200 Subject: [PATCH 16/49] Add latest symlink in downloads (Fixes #2835) --- update_latest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update_latest.sh b/update_latest.sh index 355a22a6d..a39c90144 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -14,5 +14,6 @@ ln -sf --no-target-directory ../downloads/$version latest/directory for f in $(ls "downloads/$version/"); do \ ln -sf --no-target-directory "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") done +ln -sf --no-target-directory "downloads/$version" "downloads/latest" echo -n "$version" > latest/version From 0b33704b432fc6a0da56a0b38831a8533e96aba5 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 30 Apr 2014 10:34:58 +0200 Subject: [PATCH 17/49] Re-add +Indexes --- .htaccess | 4 +++- update_latest.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 0209de9b1..1d524d1c2 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,7 @@ +Options +Indexes + RewriteEngine On RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] -RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] +RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] \ No newline at end of file diff --git a/update_latest.sh b/update_latest.sh index a39c90144..45122a68d 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -14,6 +14,7 @@ ln -sf --no-target-directory ../downloads/$version latest/directory for f in $(ls "downloads/$version/"); do \ ln -sf --no-target-directory "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") done -ln -sf --no-target-directory "downloads/$version" "downloads/latest" + +ln -sf --no-target-directory "$version" "downloads/latest" echo -n "$version" > latest/version From 54a1852f0802347277a0f7eb0613591da0660479 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 30 Apr 2014 10:39:23 +0200 Subject: [PATCH 18/49] Add a redirect for downloads/latest --- update_latest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update_latest.sh b/update_latest.sh index 45122a68d..834f8f814 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -16,5 +16,7 @@ for f in $(ls "downloads/$version/"); do \ done ln -sf --no-target-directory "$version" "downloads/latest" +/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > .htaccess + echo -n "$version" > latest/version From 644f92f6a5ad4590d9c0b108393362d91cb86747 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 30 Apr 2014 10:40:14 +0200 Subject: [PATCH 19/49] Write downloads .htaccess, not main one --- update_latest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_latest.sh b/update_latest.sh index 834f8f814..fd12fbcdc 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -16,7 +16,7 @@ for f in $(ls "downloads/$version/"); do \ done ln -sf --no-target-directory "$version" "downloads/latest" -/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > .htaccess +/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > downloads/.htaccess echo -n "$version" > latest/version From 52f8db8b79125d9a937034cde287f7e677dbfa98 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 1 Jun 2014 10:27:01 +0200 Subject: [PATCH 20/49] Filter string latest in list of latest versions --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index f6ae0db23..949a768f4 100644 --- a/index.php +++ b/index.php @@ -12,7 +12,7 @@ Date: Thu, 13 Nov 2014 22:41:21 +0100 Subject: [PATCH 21/49] Ignore test from master branch --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e18211d57..037bbc777 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ downloads/* updates_key.pem youtube_dl.egg-info -latest/* \ No newline at end of file +latest/* +test From b2ee8bf786c9ed39621503236df3f04b80f59d93 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 13 Nov 2014 22:42:59 +0100 Subject: [PATCH 22/49] add /update 302 --- .htaccess | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 1d524d1c2..0c0d5ab13 100644 --- a/.htaccess +++ b/.htaccess @@ -4,4 +4,7 @@ RewriteEngine On RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] -RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] \ No newline at end of file +RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] +RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L] + + From 5e4ecfe2254d6cb649e71a82a3fd6105f6d7b2fa Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 13 Nov 2014 23:37:57 +0100 Subject: [PATCH 23/49] [/latest] Correct content type and prevent caching --- latest/.htaccess | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/latest/.htaccess b/latest/.htaccess index 7e3206c18..cec48e4e4 100644 --- a/latest/.htaccess +++ b/latest/.htaccess @@ -1,3 +1,12 @@ +RewriteEngine on +RewriteRule version - [T=text/plain] + +FileETag None + + Header unset ETag + Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" + Header set Pragma "no-cache" + Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" + Options +Indexes - From 29a8bfbaa9bf9731d6c9d47912f69d460a8e9af6 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 14 Nov 2014 00:41:41 +0100 Subject: [PATCH 24/49] [/update] Fix hash --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 0c0d5ab13..280a81688 100644 --- a/.htaccess +++ b/.htaccess @@ -5,6 +5,6 @@ RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] -RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L] +RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] From a29e9ec53c3793fb75469bb82c34190d36063757 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 16 Dec 2014 00:27:34 +0100 Subject: [PATCH 25/49] Change link to support on yt-dl.org (#4484) --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 949a768f4..38dc4e492 100644 --- a/index.php +++ b/index.php @@ -37,7 +37,7 @@ echo ''; Homepage Download instructions Documentation - Support + Support Develop About From caae7db812f6f4eebfebdc77fa9f3b1b05da73d8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 4 Jan 2015 02:41:24 +0100 Subject: [PATCH 26/49] [.htaccess] Add short URL yt-dl.org/donate --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 280a81688..251bd91b2 100644 --- a/.htaccess +++ b/.htaccess @@ -6,5 +6,6 @@ RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] +RewriteRule ^donat(e|ions)$ http://rg3.github.io/youtube-dl/donations.html [R=302,L] From da9084a06108b7496eb7cbdb18f799d0d83e9c54 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 4 Jan 2015 02:43:34 +0100 Subject: [PATCH 27/49] [.htaccess] Link to https --- .htaccess | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 251bd91b2..a0526ad57 100644 --- a/.htaccess +++ b/.htaccess @@ -6,6 +6,4 @@ RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] -RewriteRule ^donat(e|ions)$ http://rg3.github.io/youtube-dl/donations.html [R=302,L] - - +RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] From 9c49a1a8bd05b00117c41e8f39fdde27171ab6bc Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 3 Feb 2015 14:20:54 +0100 Subject: [PATCH 28/49] Add a redirect for anime/illegal sites --- .htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.htaccess b/.htaccess index a0526ad57..67821edbf 100644 --- a/.htaccess +++ b/.htaccess @@ -7,3 +7,6 @@ RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] +RewriteRule ^faq-anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L] + + From 843060b2e02784b3d720a994f750c6d5601f411f Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 3 Feb 2015 14:22:45 +0100 Subject: [PATCH 29/49] Correct htaccess --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 67821edbf..d788bf4a8 100644 --- a/.htaccess +++ b/.htaccess @@ -7,6 +7,6 @@ RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] -RewriteRule ^faq-anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L] +RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] From 31326e87399940ebbe8109f7566c78229396502f Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 11 Feb 2015 20:30:16 +0100 Subject: [PATCH 30/49] FAQ for -citw --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index d788bf4a8..cf7b09243 100644 --- a/.htaccess +++ b/.htaccess @@ -8,5 +8,6 @@ RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] +RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] From 1d97efec15742fc438d8374751f2b2c77d40153f Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 18 Feb 2015 10:32:26 +0100 Subject: [PATCH 31/49] [htaccess] Add a shortcut for missing example URLs --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index cf7b09243..439b6d734 100644 --- a/.htaccess +++ b/.htaccess @@ -9,5 +9,6 @@ RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] +RewriteRule ^example-url$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] From 86d55e2f99c5521b3067b731b17ce1656f5a9b9b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 30 Dec 2015 13:13:04 +0100 Subject: [PATCH 32/49] Add shortcut URL for 403 errors when used in webbrowser --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 439b6d734..3de1fb372 100644 --- a/.htaccess +++ b/.htaccess @@ -10,5 +10,6 @@ RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=3 RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] RewriteRule ^example-url$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] +RewriteRule ^g403$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-webbrowser [R=302,L,NE] From 1a93d2ce6ec15f854e62832780e4048b92e9566b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 10:08:23 +0200 Subject: [PATCH 33/49] Redirect current version to GitHub releases Our hoster uberspace noted that we're by far exceeding our traffic limit. For now, redirect everything to GitHub releases. --- downloads/.htaccess | 5 +++++ downloads/2016.06.03/.htaccess | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 downloads/.htaccess create mode 100644 downloads/2016.06.03/.htaccess diff --git a/downloads/.htaccess b/downloads/.htaccess new file mode 100644 index 000000000..74ea14415 --- /dev/null +++ b/downloads/.htaccess @@ -0,0 +1,5 @@ +RewriteEngine On + +RewriteRule ^$ https://github.com/rg3/youtube-dl/releases +RewriteRule latest(.*) /downloads/2016.06.03$1 [L,R=302] + diff --git a/downloads/2016.06.03/.htaccess b/downloads/2016.06.03/.htaccess new file mode 100644 index 000000000..e7f302cad --- /dev/null +++ b/downloads/2016.06.03/.htaccess @@ -0,0 +1,5 @@ +RewriteEngine On + +RewriteRule ^$ https://github.com/rg3/youtube-dl/releases/tag/2016.06.03_tmp [R=302,L] +RewriteRule ^(.+)$ https://github.com/rg3/youtube-dl/releases/download/2016.06.03_tmp/$1 [R=302,L] + From 386cc2f23e33391d610616019196189752cfc48b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 10:18:57 +0200 Subject: [PATCH 34/49] update latest etc. --- .gitignore | 8 +++++++- latest/.git_dont_delete | 0 latest/.htaccess | 12 ------------ update_latest.sh | 12 ++---------- 4 files changed, 9 insertions(+), 23 deletions(-) delete mode 100644 latest/.git_dont_delete delete mode 100644 latest/.htaccess diff --git a/.gitignore b/.gitignore index 037bbc777..4fe91205e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,11 @@ downloads/* updates_key.pem youtube_dl.egg-info -latest/* test +build/ +dist/ +youtube-dl.1 +youtube-dl.fish +youtube-dl.zsh +README.txt +youtube-dl.bash-completion diff --git a/latest/.git_dont_delete b/latest/.git_dont_delete deleted file mode 100644 index e69de29bb..000000000 diff --git a/latest/.htaccess b/latest/.htaccess deleted file mode 100644 index cec48e4e4..000000000 --- a/latest/.htaccess +++ /dev/null @@ -1,12 +0,0 @@ -RewriteEngine on -RewriteRule version - [T=text/plain] - -FileETag None - - Header unset ETag - Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" - Header set Pragma "no-cache" - Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" - - -Options +Indexes diff --git a/update_latest.sh b/update_latest.sh index fd12fbcdc..b2382aa6a 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -10,13 +10,5 @@ fi cd "$(dirname $(readlink -f $0))" -ln -sf --no-target-directory ../downloads/$version latest/directory -for f in $(ls "downloads/$version/"); do \ - ln -sf --no-target-directory "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@") -done - -ln -sf --no-target-directory "$version" "downloads/latest" -/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > downloads/.htaccess - -echo -n "$version" > latest/version - +echo -n "$version" > latest_version +/bin/echo -e "RewriteEngine On\nRewriteRule ^(.*)$ /downloads/latest/$1 [L,R=302]" > latest/.htaccess From c0716886d8de04c05abd07c89d3b3bb460da1db7 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 10:20:14 +0200 Subject: [PATCH 35/49] readd /latest directory --- latest/.git_dont_delete | 0 latest/.gitignore | 1 + 2 files changed, 1 insertion(+) create mode 100644 latest/.git_dont_delete create mode 100644 latest/.gitignore diff --git a/latest/.git_dont_delete b/latest/.git_dont_delete new file mode 100644 index 000000000..e69de29bb diff --git a/latest/.gitignore b/latest/.gitignore new file mode 100644 index 000000000..03c88fd7a --- /dev/null +++ b/latest/.gitignore @@ -0,0 +1 @@ +.htaccess From 00221fad40b931bbab7d3f8b15731453c671fff0 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 11:39:40 +0200 Subject: [PATCH 36/49] add better rewrite rules --- .htaccess | 4 ++++ latest/.git_dont_delete | 0 latest/.gitignore | 1 - update_latest.sh | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 latest/.git_dont_delete delete mode 100644 latest/.gitignore diff --git a/.htaccess b/.htaccess index 3de1fb372..5b9647118 100644 --- a/.htaccess +++ b/.htaccess @@ -11,5 +11,9 @@ RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README. RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] RewriteRule ^example-url$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] RewriteRule ^g403$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-webbrowser [R=302,L,NE] + +RewriteRule ^latest/version$ latest_version [L,T=text/plain] +RewriteRule ^latest_version$ - [T=text/plain] +RewriteRule ^latest/(.*)$ /downloads/latest/$1 [R=302,L] diff --git a/latest/.git_dont_delete b/latest/.git_dont_delete deleted file mode 100644 index e69de29bb..000000000 diff --git a/latest/.gitignore b/latest/.gitignore deleted file mode 100644 index 03c88fd7a..000000000 --- a/latest/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.htaccess diff --git a/update_latest.sh b/update_latest.sh index b2382aa6a..0144c7c44 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -11,4 +11,5 @@ fi cd "$(dirname $(readlink -f $0))" echo -n "$version" > latest_version -/bin/echo -e "RewriteEngine On\nRewriteRule ^(.*)$ /downloads/latest/$1 [L,R=302]" > latest/.htaccess +ln -sf downloads/latest downloads/$1 + From 774e0d72cdc3f9e033ac14529b3107105d147b06 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 11:41:04 +0200 Subject: [PATCH 37/49] modify index --- index.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/index.php b/index.php index 38dc4e492..ee5af0c20 100644 --- a/index.php +++ b/index.php @@ -10,12 +10,7 @@

youtube-dl downloads

'; echo '
Latest (v' . htmlspecialchars($latest) . ') downloads:
'; @@ -24,14 +19,9 @@ echo 'youtu echo 'youtube-dl-' . htmlspecialchars($latest) . '.tar.gz'; echo '
'; -echo ''; - ?> +See the right for more resources. From 6a6bbc01f53d90f9a6543230944a4abb7a1bc28d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 11:41:53 +0200 Subject: [PATCH 38/49] ignore latest_version file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4fe91205e..0a5000f82 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ youtube-dl.fish youtube-dl.zsh README.txt youtube-dl.bash-completion +latest_version From 7fc3fe2b545cbae66b656899e40df4b4cd730417 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sat, 4 Jun 2016 11:57:57 +0200 Subject: [PATCH 39/49] save traffic on 302 --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 5b9647118..784c25b7a 100644 --- a/.htaccess +++ b/.htaccess @@ -16,4 +16,5 @@ RewriteRule ^latest/version$ latest_version [L,T=text/plain] RewriteRule ^latest_version$ - [T=text/plain] RewriteRule ^latest/(.*)$ /downloads/latest/$1 [R=302,L] +ErrorDocument 302 "302" From 8c6f08911f366b2b2c1a8c2929206f1666beeba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 11 Jun 2016 02:20:39 +0700 Subject: [PATCH 40/49] [update_latest.sh] Redirect all releases to GitHub --- update_latest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update_latest.sh b/update_latest.sh index 0144c7c44..6370aa7d7 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -11,5 +11,8 @@ fi cd "$(dirname $(readlink -f $0))" echo -n "$version" > latest_version -ln -sf downloads/latest downloads/$1 +echo -e "RewriteEngine On" > downloads/.htaccess +echo -e "RewriteRule ^$ https://github.com/rg3/youtube-dl/releases" >> downloads/.htaccess +echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}.*)$ https://github.com/rg3/youtube-dl/releases/tag/\$1" >> downloads/.htaccess +echo -e "RewriteRule latest(.*) /downloads/$1 [L,R=302]" >> downloads/.htaccess From b0035c3448a5c95f0748fcb9b0af983ecd8ba21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 11 Jun 2016 02:25:05 +0700 Subject: [PATCH 41/49] Allow latest without trailing slash --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 784c25b7a..6ac7910b2 100644 --- a/.htaccess +++ b/.htaccess @@ -14,7 +14,7 @@ RewriteRule ^g403$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-ext RewriteRule ^latest/version$ latest_version [L,T=text/plain] RewriteRule ^latest_version$ - [T=text/plain] -RewriteRule ^latest/(.*)$ /downloads/latest/$1 [R=302,L] +RewriteRule ^latest(?:/(.*))?$ /downloads/latest/$1 [R=302,L] ErrorDocument 302 "302" From 1df8afcc18723110b010c29d47f46aa4c51bd740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 11 Jun 2016 02:56:11 +0700 Subject: [PATCH 42/49] [update_latest.sh] Fix download links redirection --- update_latest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update_latest.sh b/update_latest.sh index 6370aa7d7..4aa6e4348 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -14,5 +14,8 @@ echo -n "$version" > latest_version echo -e "RewriteEngine On" > downloads/.htaccess echo -e "RewriteRule ^$ https://github.com/rg3/youtube-dl/releases" >> downloads/.htaccess -echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}.*)$ https://github.com/rg3/youtube-dl/releases/tag/\$1" >> downloads/.htaccess +echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2})/?$ https://github.com/rg3/youtube-dl/releases/tag/\$1" >> downloads/.htaccess +echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}.*)$ https://github.com/rg3/youtube-dl/releases/download/\$1" >> downloads/.htaccess echo -e "RewriteRule latest(.*) /downloads/$1 [L,R=302]" >> downloads/.htaccess + + From 8afb663891fad5eddd91dbfa3c5b984795d8f8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 11 Jun 2016 03:19:16 +0700 Subject: [PATCH 43/49] [update_latest.sh] Fix download links redirection (2) --- update_latest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_latest.sh b/update_latest.sh index 4aa6e4348..12c4f8cff 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -14,8 +14,8 @@ echo -n "$version" > latest_version echo -e "RewriteEngine On" > downloads/.htaccess echo -e "RewriteRule ^$ https://github.com/rg3/youtube-dl/releases" >> downloads/.htaccess -echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2})/?$ https://github.com/rg3/youtube-dl/releases/tag/\$1" >> downloads/.htaccess -echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}.*)$ https://github.com/rg3/youtube-dl/releases/download/\$1" >> downloads/.htaccess +echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}(?:\.\d+)?/?)$ https://github.com/rg3/youtube-dl/releases/tag/\$1" >> downloads/.htaccess +echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}(?:\.\d+)?/.+)$ https://github.com/rg3/youtube-dl/releases/download/\$1" >> downloads/.htaccess echo -e "RewriteRule latest(.*) /downloads/$1 [L,R=302]" >> downloads/.htaccess From e275a2f1abaa6c854e9b45cc4b01809eac0ba516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 11 Jun 2016 03:55:38 +0700 Subject: [PATCH 44/49] [update_latest.sh] Fix root latest redirection --- update_latest.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/update_latest.sh b/update_latest.sh index 12c4f8cff..4f5ac56fc 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -16,6 +16,4 @@ echo -e "RewriteEngine On" > downloads/.htaccess echo -e "RewriteRule ^$ https://github.com/rg3/youtube-dl/releases" >> downloads/.htaccess echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}(?:\.\d+)?/?)$ https://github.com/rg3/youtube-dl/releases/tag/\$1" >> downloads/.htaccess echo -e "RewriteRule ^(\d{4}\.\d{2}\.\d{2}(?:\.\d+)?/.+)$ https://github.com/rg3/youtube-dl/releases/download/\$1" >> downloads/.htaccess -echo -e "RewriteRule latest(.*) /downloads/$1 [L,R=302]" >> downloads/.htaccess - - +echo -e "RewriteRule latest(.*) /downloads/$1\$1 [L,R=302]" >> downloads/.htaccess From 6a020a3218f231c708c07ae9e2e3b17b7e2c5b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 26 Jun 2016 02:00:20 +0700 Subject: [PATCH 45/49] Add yt-dl.org/questions shortcut --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 6ac7910b2..32706a2f6 100644 --- a/.htaccess +++ b/.htaccess @@ -9,7 +9,7 @@ RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] -RewriteRule ^example-url$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] +RewriteRule ^(?:example-url|questions)$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] RewriteRule ^g403$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-webbrowser [R=302,L,NE] RewriteRule ^latest/version$ latest_version [L,T=text/plain] From 40f283d1590e41c179437e13ec5aeb2256994598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 26 Jun 2016 02:20:59 +0700 Subject: [PATCH 46/49] Add some more shortcuts --- .htaccess | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.htaccess b/.htaccess index 32706a2f6..65b314e7e 100644 --- a/.htaccess +++ b/.htaccess @@ -5,15 +5,17 @@ RewriteRule ^ip/?$ ip.php RewriteRule ^bugs?/? https://github.com/rg3/youtube-dl/issues [R=302,L] RewriteRule ^reporting/? https://github.com/rg3/youtube-dl/blob/master/README.md#bugs [R=302,L,NE] -RewriteRule ^update$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] -RewriteRule ^donat(e|ions)$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] -RewriteRule ^(faq-)?anime$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] -RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] -RewriteRule ^(?:example-url|questions)$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] -RewriteRule ^g403$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-webbrowser [R=302,L,NE] +RewriteRule ^update/?$ https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl [R=302,L,NE] +RewriteRule ^donat(e|ions)/?$ https://rg3.github.io/youtube-dl/donations.html [R=302,L] +RewriteRule ^(faq-)?anime/?$ https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free [R=302,L,NE] +RewriteRule ^(faq-)?citw/?$ https://github.com/rg3/youtube-dl/blob/master/README.md#do-i-always-have-to-pass-in---max-quality-format-or--citw [R=302,L,NE] +RewriteRule ^(?:example-url|questions)/?$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE] +RewriteRule ^g403/?$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-webbrowser [R=302,L,NE] +RewriteRule ^format-selection/?$ https://github.com/rg3/youtube-dl#format-selection [R=302,L,NE] +RewriteRule ^output-template/?$ https://github.com/rg3/youtube-dl#output-template [R=302,L,NE] -RewriteRule ^latest/version$ latest_version [L,T=text/plain] -RewriteRule ^latest_version$ - [T=text/plain] +RewriteRule ^latest/version/?$ latest_version [L,T=text/plain] +RewriteRule ^latest_version/?$ - [T=text/plain] RewriteRule ^latest(?:/(.*))?$ /downloads/latest/$1 [R=302,L] ErrorDocument 302 "302" From 167e13273ee8fa59402b504c0d0f4e5676b82076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 17 Jul 2016 18:45:31 +0700 Subject: [PATCH 47/49] Use latest in download URLs --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index ee5af0c20..c4ccc7802 100644 --- a/index.php +++ b/index.php @@ -14,9 +14,9 @@ $latest = file_get_contents('latest_version'); echo '
'; echo '
Latest (v' . htmlspecialchars($latest) . ') downloads:
'; -echo 'youtube-dl '; -echo 'youtube-dl.exe '; -echo 'youtube-dl-' . htmlspecialchars($latest) . '.tar.gz'; +echo 'youtube-dl '; +echo 'youtube-dl.exe '; +echo 'youtube-dl-' . htmlspecialchars($latest) . '.tar.gz'; echo '
'; ?> From d2e9088ee464ff465a3a48aeb09710625c0755fb Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 3 Feb 2017 22:00:33 +0100 Subject: [PATCH 48/49] prevent access to .git The repository wasn't secret per se, but there's no reason to allow access to the git files. Thanks to Ben Stock and CISPA for notifying us. --- .htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.htaccess b/.htaccess index 65b314e7e..0e8591d26 100644 --- a/.htaccess +++ b/.htaccess @@ -17,6 +17,8 @@ RewriteRule ^output-template/?$ https://github.com/rg3/youtube-dl#output-templat RewriteRule ^latest/version/?$ latest_version [L,T=text/plain] RewriteRule ^latest_version/?$ - [T=text/plain] RewriteRule ^latest(?:/(.*))?$ /downloads/latest/$1 [R=302,L] +RewriteRule ^\.git - [F] ErrorDocument 302 "302" + From a432006c11f47ed26c07178aa237ae7f5e548309 Mon Sep 17 00:00:00 2001 From: Merco Date: Mon, 4 Dec 2017 08:48:10 -0800 Subject: [PATCH 49/49] Fixed parsing --- ip.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ip.php b/ip.php index 46b186613..5aba0438c 100644 --- a/ip.php +++ b/ip.php @@ -1,3 +1,4 @@
Homepage