Browse Source

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.
master
Filip B 10 years ago
parent
commit
7f9ced64cb
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/motherless.py

2
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',

Loading…
Cancel
Save