diff --git a/build/addon.xml b/build/addon.xml index 071d218..1b99d8b 100644 --- a/build/addon.xml +++ b/build/addon.xml @@ -1,5 +1,5 @@ - + !bandcamp\.com/album/.! diff --git a/build/upload/library/s9e/MediaBBCodes.php b/build/upload/library/s9e/MediaBBCodes.php index c505e06..92cfcfc 100644 --- a/build/upload/library/s9e/MediaBBCodes.php +++ b/build/upload/library/s9e/MediaBBCodes.php @@ -216,6 +216,8 @@ protected static function getNamedCaptures($string, $regexps) public static function renderBandcamp($vars) { + $vars += array('album_id' => null, 'track_num' => null); + $html=''; return $html; @@ -341,7 +343,7 @@ public static function matchIndiegogo($url) public static function renderKickstarter($vars) { - $vars += array('id' => null); + $vars += array('id' => null, 'video' => null); $html='';if(isset($vars['video'])){$html.='';}else{$html.='';} @@ -384,6 +386,8 @@ public static function matchSlideshare($url) public static function renderSpotify($vars) { + $vars += array('path' => null, 'uri' => null); + $html=''; return $html; @@ -425,6 +429,8 @@ public static function matchTraileraddict($url) public static function renderTwitch($vars) { + $vars += array('archive_id' => null, 'channel' => null, 'chapter_id' => null); + $html=''; return $html; @@ -458,6 +464,8 @@ public static function matchVk($url) public static function renderYoutube($vars) { + $vars += array('id' => null, 't' => null); + $html=''; return $html; diff --git a/scripts/build.php b/scripts/build.php index 1cacbbf..87018e5 100755 --- a/scripts/build.php +++ b/scripts/build.php @@ -350,7 +350,7 @@ protected static function getNamedCaptures($string, $regexps) // Collect the name of all vars in use to initialize them with a null value $vars = []; - preg_match_all('(\\{@(\\w+)\\})', $template, $matches); + preg_match_all('(@(\\w+))', $template, $matches); foreach ($matches[1] as $varName) { $vars[$varName] = var_export($varName, true) . ' => null'; diff --git a/www/configure.html b/www/configure.html index 18f8a40..8aa94c3 100644 --- a/www/configure.html +++ b/www/configure.html @@ -238,7 +238,7 @@