1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-12-14 03:19:58 +01:00

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.
This commit is contained in:
Filip B 2014-10-24 21:44:21 +04:00
parent 7608815cc2
commit 7f9ced64cb

View File

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