youtube: Add support for youtube-nookie.com

I get this kind of URL when copying the URL of "NoScripted" video embeds.
This commit is contained in:
Laurent Bachelier 2012-07-17 20:26:30 +02:00 committed by Romain Bignon
commit 460574785d

View file

@ -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