diff options
author | Filip B <b_filip@zoho.com> | 2014-10-24 21:44:21 +0400 |
---|---|---|
committer | Filip B <b_filip@zoho.com> | 2014-10-24 21:44:21 +0400 |
commit | 7f9ced64cbd33e597287de2f67b7862af123bb7b (patch) | |
tree | ea2ebc8e680aa7828a16fe53c284dd35c478a87b | |
parent | 7608815cc24e96d3f4895f7c056ee8d769b678d2 (diff) |
Add group videos support for motherless
Modified motherless regular expression.
Previously it matched only URLs like this:
motherless.com/ID
Now it also matches this:
motherless.com/g/group_name/ID
All tests including the newly added one passed.
-rw-r--r-- | youtube_dl/extractor/motherless.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/motherless.py b/youtube_dl/extractor/motherless.py index 9ce080a30..50083bd4a 100644 --- a/youtube_dl/extractor/motherless.py +++ b/youtube_dl/extractor/motherless.py @@ -11,7 +11,7 @@ from ..utils import ( class MotherlessIE(InfoExtractor): - _VALID_URL = r'http://(?:www\.)?motherless\.com/(?P<id>[A-Z0-9]+)' + _VALID_URL = r'http://(?:www\.)?motherless\.com/(?:g/[a-z0-9_]+/)?(?P<id>[A-Z0-9]+)' _TESTS = [ { 'url': 'http://motherless.com/AC3FFE1', |