diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-03-11 04:33:27 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-03-11 04:44:40 +0700 |
commit | cdc7baffca7759397f4842934aa09311f58e80b2 (patch) | |
tree | 4b54644e12e40b0d2d89d72e3a0cdd29ff6c3053 /youtube_dl | |
parent | 067aa17edf5a46a8cbc4d6b90864eddf051fa2bc (diff) |
[beeg] Add support for beeg.porn (closes #20306)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/beeg.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/youtube_dl/extractor/beeg.py b/youtube_dl/extractor/beeg.py index 1086d7632..192f11ea6 100644 --- a/youtube_dl/extractor/beeg.py +++ b/youtube_dl/extractor/beeg.py @@ -9,8 +9,8 @@ from ..utils import ( class BeegIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?beeg\.com/(?P<id>\d+)' - _TEST = { + _VALID_URL = r'https?://(?:www\.)?beeg\.(?:com|porn(?:/video)?)/(?P<id>\d+)' + _TESTS = [{ 'url': 'http://beeg.com/5416503', 'md5': 'a1a1b1a8bc70a89e49ccfd113aed0820', 'info_dict': { @@ -24,7 +24,13 @@ class BeegIE(InfoExtractor): 'tags': list, 'age_limit': 18, } - } + }, { + 'url': 'https://beeg.porn/video/5416503', + 'only_matching': True, + }, { + 'url': 'https://beeg.porn/5416503', + 'only_matching': True, + }] def _real_extract(self, url): video_id = self._match_id(url) |