]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[gdcvault] Extend _VALID_URL (fixes #5236)
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 24 Apr 2015 14:25:34 +0000 (22:25 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 24 Apr 2015 14:33:35 +0000 (22:33 +0800)
youtube_dl/extractor/gdcvault.py

index 51796f3a40310f484cf1a49fc6e11468264dbe3a..f634e62856619fca0a45382a9d24d035376542ec 100644 (file)
@@ -11,7 +11,7 @@ from ..utils import remove_end
 
 
 class GDCVaultIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?gdcvault\.com/play/(?P<id>\d+)/(?P<name>(\w|-)+)'
+    _VALID_URL = r'https?://(?:www\.)?gdcvault\.com/play/(?P<id>\d+)/(?P<name>(\w|-)+)?'
     _NETRC_MACHINE = 'gdcvault'
     _TESTS = [
         {
@@ -43,6 +43,10 @@ class GDCVaultIE(InfoExtractor):
                 'title': 'Thexder Meets Windows 95, or Writing Great Games in the Windows 95 Environment',
             },
             'skip': 'Requires login',
+        },
+        {
+            'url': 'http://gdcvault.com/play/1020791/',
+            'only_matching': True,
         }
     ]