[mooshare] Add support for URLs starting with 'www'
authorSergey M․ <dstftw@gmail.com>
Thu, 27 Mar 2014 12:08:02 +0000 (19:08 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 27 Mar 2014 12:08:35 +0000 (19:08 +0700)
youtube_dl/extractor/mooshare.py

index f1875add5ff0626750827276935d861c25e4d7e3..7d21ea18f1bec57a83a49478d43f000b8039041f 100644 (file)
@@ -14,7 +14,7 @@ from ..utils import (
 class MooshareIE(InfoExtractor):
     IE_NAME = 'mooshare'
     IE_DESC = 'Mooshare.biz'
-    _VALID_URL = r'http://mooshare\.biz/(?P<id>[\da-z]{12})'
+    _VALID_URL = r'http://(?:www\.)?mooshare\.biz/(?P<id>[\da-z]{12})'
 
     _TESTS = [
         {