From 460574785d2b3696acc650ddf75cd011b5072e2d Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Tue, 17 Jul 2012 20:26:30 +0200 Subject: [PATCH] youtube: Add support for youtube-nookie.com I get this kind of URL when copying the URL of "NoScripted" video embeds. --- modules/youtube/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/youtube/backend.py b/modules/youtube/backend.py index 3005fef0..477b8464 100644 --- a/modules/youtube/backend.py +++ b/modules/youtube/backend.py @@ -51,7 +51,7 @@ class YoutubeBackend(BaseBackend, ICapVideo, ICapCollection): CONFIG = BackendConfig(Value('username', label='Email address', default=''), ValueBackendPassword('password', label='Password', default='')) - URL_RE = re.compile(r'^https?://(?:\w*\.?youtube\.com/(?:watch\?v=|v/)|youtu\.be\/|\w*\.?youtube\.com\/user\/\w+#p\/u\/\d+\/)([^\?&]+)') + URL_RE = re.compile(r'^https?://(?:\w*\.?youtube(?:|-nocookie)\.com/(?:watch\?v=|v/)|youtu\.be\/|\w*\.?youtube\.com\/user\/\w+#p\/u\/\d+\/)([^\?&]+)') def create_default_browser(self): password = None