diff --git a/README.md b/README.md index 84e3e0f..24bbf57 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,11 @@ Media BB Codes for XenForo, imported from [s9e\TextFormatter](https://github.com The New York Times Video http://www.nytimes.com/video/technology/personaltech/100000002907606/soylent-taste-test.html
http://www.nytimes.com/video/2012/12/17/business/100000001950744/how-wal-mart-conquered-teotihuacan.html + + podbean + Podbean + http://dialhforheroclix.podbean.com/e/dial-h-for-heroclix-episode-46-all-ya-need-is-love/ + rdio Rdio diff --git a/build/addon.xml b/build/addon.xml index 528757f..30660e5 100644 --- a/build/addon.xml +++ b/build/addon.xml @@ -1,5 +1,5 @@ - + !abcnews\.go\.com/[^/]+/video/[^/]+-(?'id'\d+)! @@ -147,6 +147,11 @@ !nytimes\.com/video/\d+/\d+/\d+/[a-z]+/(?'id'\d+)! ]]> + + !(?=.*?podbean\.com).*?podbean.com/site/player/index/pid/\d+/eid/(?'id'\d+)! +!(?'id')podbean.com/e/! + ]]> + !rd\.io/./(?'id'\w+)! !(?'id')rdio\.com/.*?(?:playlist|track)! diff --git a/build/upload/library/s9e/MediaBBCodes.php b/build/upload/library/s9e/MediaBBCodes.php index 9e2c41c..6989fdc 100755 --- a/build/upload/library/s9e/MediaBBCodes.php +++ b/build/upload/library/s9e/MediaBBCodes.php @@ -573,6 +573,19 @@ public static function matchMixcloud($url) return self::match($url, $regexps, $scrapes); } + public static function matchPodbean($url) + { + $regexps = array('!(?=.*?podbean\\.com).*?podbean.com/site/player/index/pid/\\d+/eid/(?\'id\'\\d+)!'); + $scrapes = array( + array( + 'match' => array('!podbean.com/e/!'), + 'extract' => array('!embed/postId/(?\'id\'\\d+)!') + ) + ); + + return self::match($url, $regexps, $scrapes); + } + public static function matchRdio($url) { $regexps = array('!rd\\.io/./(?\'id\'\\w+)!'); diff --git a/tests/Test.php b/tests/Test.php index 766af59..0cbc7f7 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -282,6 +282,11 @@ public function getMatchCallbackTests() 'http://www.kickstarter.com/projects/1869987317/wish-i-was-here-1/widget/video.html', 'id=1869987317%2Fwish-i-was-here-1;video=video' ), + array( + 'podbean', + 'http://wendyswordsofwisdom.podbean.com/e/tiffany-stevensons-words-of-wisdom/', + '5168723' + ), array( 'rdio', 'http://rd.io/x/QcD7oTdeWevg/', diff --git a/vendor/s9e/TextFormatter b/vendor/s9e/TextFormatter index e1edbbf..b70e231 160000 --- a/vendor/s9e/TextFormatter +++ b/vendor/s9e/TextFormatter @@ -1 +1 @@ -Subproject commit e1edbbfcde6f78cc5c77925535ad9293e386997c +Subproject commit b70e2318e4a9e2e082a868a7c0fab01f7389ee00 diff --git a/www/configure.html b/www/configure.html index 0222fd7..5608550 100644 --- a/www/configure.html +++ b/www/configure.html @@ -250,6 +250,12 @@ The New York Times Video http://www.nytimes.com/video/technology/personaltech/100000002907606/soylent-taste-test.html
http://www.nytimes.com/video/2012/12/17/business/100000001950744/how-wal-mart-conquered-teotihuacan.html + + + podbean + Podbean + http://dialhforheroclix.podbean.com/e/dial-h-for-heroclix-episode-46-all-ya-need-is-love/ + rdio @@ -374,7 +380,7 @@