[escapist] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Mon, 4 May 2015 13:01:08 +0000 (19:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 4 May 2015 13:01:08 +0000 (19:01 +0600)
youtube_dl/extractor/escapist.py

index daf859385a07d5c75832bea560558bfe9f0ffc7e..dadfaa6a5058303d2a134ae30f8c61eca1083631 100644 (file)
@@ -36,7 +36,7 @@ def _decrypt_config(key, string):
 
 
 class EscapistIE(InfoExtractor):
-    _VALID_URL = r'https?://?(www\.)?escapistmagazine\.com/videos/view/[^/?#]+/(?P<id>[0-9]+)-[^/?#]*(?:$|[?#])'
+    _VALID_URL = r'https?://?(?:www\.)?escapistmagazine\.com/videos/view/[^/?#]+/(?P<id>[0-9]+)-[^/?#]*(?:$|[?#])'
     _TESTS = [{
         'url': 'http://www.escapistmagazine.com/videos/view/the-escapist-presents/6618-Breaking-Down-Baldurs-Gate',
         'md5': 'ab3a706c681efca53f0a35f1415cf0d1',