]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[audioboom] Recognize /posts/ URLs (closes #11149)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 10 Nov 2016 06:52:34 +0000 (14:52 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 10 Nov 2016 06:52:34 +0000 (14:52 +0800)
ChangeLog
youtube_dl/extractor/audioboom.py

index 21b212e869190a12a05dd3b26fb0f2432bcda253..d97156e20a787c8cba8ef984a7f088cf1d6eeee9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
++ [audioboom] Recognize /posts/ URLs (#11149)
+
+
 version 2016.11.08.1
 
 Extractors
index 2ec2d7092aca0468d122d9ab658f1ef848da7f90..d7d1c6306443b77dd7161b3c07480ad16c14ffa5 100644 (file)
@@ -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)