]> Raphaël G. Git Repositories - youtubedl/blob - debian/patches/0001-Support-downloading-Youtube-videos-via-tube.majestyc.patch
39472d8fe3a6f5c555ed65c6883c86512dc83090
[youtubedl] / debian / patches / 0001-Support-downloading-Youtube-videos-via-tube.majestyc.patch
1 From 4db27f7baedb3896aa5f3b2d4e57d959c8eeeb50 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
3 Date: Sun, 5 Aug 2012 01:12:59 -0300
4 Subject: [PATCH] Support downloading Youtube videos via tube.majestyc.net
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 A user requested (in Debian's bug tracking system) that support for
10 tube.majestyc.net, a frontend for Youtube with accessibility functions
11 (and other support for other assistive technologies), be added.
12
13 This patch adds support for this.
14
15 Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
16 ---
17 youtube_dl/InfoExtractors.py | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
21 index ddb4aa1..9843215 100644
22 --- a/youtube_dl/InfoExtractors.py
23 +++ b/youtube_dl/InfoExtractors.py
24 @@ -95,7 +95,7 @@ class InfoExtractor(object):
25 class YoutubeIE(InfoExtractor):
26 """Information extractor for youtube.com."""
27
28 - _VALID_URL = r'^((?:https?://)?(?:youtu\.be/|(?:\w+\.)?youtube(?:-nocookie)?\.com/)(?!view_play_list|my_playlists|artist|playlist)(?:(?:(?:v|embed|e)/)|(?:(?:watch(?:_popup)?(?:\.php)?)?(?:\?|#!?)(?:.+&)?v=))?)?([0-9A-Za-z_-]+)(?(1).+)?$'
29 + _VALID_URL = r'^((?:https?://)?(?:youtu\.be/|(?:\w+\.)?youtube(?:-nocookie)?\.com|tube.majestyc.net/)(?!view_play_list|my_playlists|artist|playlist)(?:(?:(?:v|embed|e)/)|(?:(?:watch(?:_popup)?(?:\.php)?)?(?:\?|#!?)(?:.+&)?v=))?)?([0-9A-Za-z_-]+)(?(1).+)?$'
30 _LANG_URL = r'http://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1'
31 _LOGIN_URL = 'https://www.youtube.com/signup?next=/&gl=US&hl=en'
32 _AGE_URL = 'http://www.youtube.com/verify_age?next_url=/&gl=US&hl=en'
33 --
34 1.7.10.4
35