Explorar el Código

[README] Fix VALID_URL in extractor example

Philipp Hagemeister hace 11 años
padre
commit
52a180684f
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -384,10 +384,10 @@ If you want to add support for a new site, you can follow this quick list (assum
         import re
 
         from .common import InfoExtractor
-
-
+        
+        
         class YourExtractorIE(InfoExtractor):
-            _VALID_URL = r'https?://(?:www\.)yourextractor\.com/watch/(?P<id>[0-9]+)'
+            _VALID_URL = r'https?://(?:www\.)?yourextractor\.com/watch/(?P<id>[0-9]+)'
             _TEST = {
                 'url': 'http://yourextractor.com/watch/42',
                 'md5': 'TODO: md5 sum of the first 10KiB of the video file',