aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/audioboom.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-11-10 14:52:34 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-11-10 14:52:34 +0800
commit3eaaa8abace00d22a85a8b0b2c8ae1d6c4d52781 (patch)
treee0ecb911650375f9f4010e51713f41883a0f89a6 /youtube_dl/extractor/audioboom.py
parentdb3367f43ee607364da493191acd745da889e3ef (diff)
[audioboom] Recognize /posts/ URLs (closes #11149)
Diffstat (limited to 'youtube_dl/extractor/audioboom.py')
-rw-r--r--youtube_dl/extractor/audioboom.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/audioboom.py b/youtube_dl/extractor/audioboom.py
index 2ec2d7092..d7d1c6306 100644
--- a/youtube_dl/extractor/audioboom.py
+++ b/youtube_dl/extractor/audioboom.py
@@ -6,8 +6,8 @@ from ..utils import float_or_none
class AudioBoomIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?audioboom\.com/boos/(?P<id>[0-9]+)'
- _TEST = {
+ _VALID_URL = r'https?://(?:www\.)?audioboom\.com/(?:boos|posts)/(?P<id>[0-9]+)'
+ _TESTS = [{
'url': 'https://audioboom.com/boos/4279833-3-09-2016-czaban-hour-3?t=0',
'md5': '63a8d73a055c6ed0f1e51921a10a5a76',
'info_dict': {
@@ -19,7 +19,10 @@ class AudioBoomIE(InfoExtractor):
'uploader': 'Steve Czaban',
'uploader_url': 're:https?://(?:www\.)?audioboom\.com/channel/steveczabanyahoosportsradio',
}
- }
+ }, {
+ 'url': 'https://audioboom.com/posts/4279833-3-09-2016-czaban-hour-3?t=0',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)