Browse Source

[gdcvault] Extend _VALID_URL (fixes #5236)

Yen Chi Hsuan 10 years ago
parent
commit
25f7d1beba
1 changed files with 5 additions and 1 deletions
  1. 5 1
      youtube_dl/extractor/gdcvault.py

+ 5 - 1
youtube_dl/extractor/gdcvault.py

@@ -11,7 +11,7 @@ from ..utils import remove_end
 
 
 
 
 class GDCVaultIE(InfoExtractor):
 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'
     _NETRC_MACHINE = 'gdcvault'
     _TESTS = [
     _TESTS = [
         {
         {
@@ -43,6 +43,10 @@ class GDCVaultIE(InfoExtractor):
                 'title': 'Thexder Meets Windows 95, or Writing Great Games in the Windows 95 Environment',
                 'title': 'Thexder Meets Windows 95, or Writing Great Games in the Windows 95 Environment',
             },
             },
             'skip': 'Requires login',
             'skip': 'Requires login',
+        },
+        {
+            'url': 'http://gdcvault.com/play/1020791/',
+            'only_matching': True,
         }
         }
     ]
     ]