diff --git a/README.md b/README.md
index 5bd83e2..05b17e9 100644
--- a/README.md
+++ b/README.md
@@ -81,6 +81,11 @@ Media BB Codes for XenForo, imported from [s9e\TextFormatter](https://github.com
Gamespot |
http://www.gamespot.com/destiny/videos/destiny-the-moon-trailer-6415176/ http://www.gamespot.com/events/game-crib-tsm-snapdragon/gamecrib-extras-cooking-with-dan-dinh-6412922/ http://www.gamespot.com/videos/beat-the-pros-pax-prime-2013/2300-6414307/ |
+
+ gametrailers |
+ GameTrailers |
+ http://www.gametrailers.com/videos/jz8rt1/tom-clancy-s-the-division-vgx-2013--world-premiere-featurette- http://www.gametrailers.com/reviews/zalxz0/crimson-dragon-review http://www.gametrailers.com/full-episodes/zdzfok/pop-fiction-episode-40--jak-ii--sandover-village |
+
gist |
GitHub Gist |
diff --git a/build/addon.xml b/build/addon.xml
index 62c1f1f..5954210 100644
--- a/build/addon.xml
+++ b/build/addon.xml
@@ -1,5 +1,5 @@
-
+
!(?'id')bandcamp\.com/album/.!
@@ -59,6 +59,10 @@
!gamespot\.com.*?/(?:events|videos)/.*?-(?'id'\d+)/(?:[#?].*)?$!
]]>
+
+ !(?'id')gametrailers\.com/(?:full-episode|review|video)s/!
+ ]]>
+
!gist\.github\.com/(?'id'(?:\w+/)?[0-9]+(?:/[0-9a-f]+)?)!
]]>
diff --git a/build/upload/library/s9e/MediaBBCodes.php b/build/upload/library/s9e/MediaBBCodes.php
index 319c14e..17fab91 100644
--- a/build/upload/library/s9e/MediaBBCodes.php
+++ b/build/upload/library/s9e/MediaBBCodes.php
@@ -293,6 +293,19 @@ public static function matchDailyshow($url)
return self::match($url, $regexps, $scrapes);
}
+ public static function matchGametrailers($url)
+ {
+ $regexps = array();
+ $scrapes = array(
+ array(
+ 'match' => array('!gametrailers\\.com/(?:full-episode|review|video)s/!'),
+ 'extract' => array('!(?\'id\'mgid:arc:(?:episode|video):gametrailers\\.com:[-\\w]+)!')
+ )
+ );
+
+ return self::match($url, $regexps, $scrapes);
+ }
+
public static function renderGrooveshark($vars)
{
$vars += array('playlistid' => null, 'songid' => null);
diff --git a/tests/Test.php b/tests/Test.php
index c3067aa..ff2ab2b 100644
--- a/tests/Test.php
+++ b/tests/Test.php
@@ -90,6 +90,21 @@ public function getMatchCallbackTests()
'http://www.thedailyshow.com/watch/mon-july-16-2012/louis-c-k-',
'mgid:cms:video:thedailyshow.com:416478'
),
+ array(
+ 'gametrailers',
+ 'http://www.gametrailers.com/videos/jz8rt1/tom-clancy-s-the-division-vgx-2013--world-premiere-featurette',
+ 'mgid:arc:video:gametrailers.com:85dee3c3-60f6-4b80-8124-cf3ebd9d2a6c'
+ ),
+ array(
+ 'gametrailers',
+ 'http://www.gametrailers.com/reviews/zalxz0/crimson-dragon-review',
+ 'mgid:arc:video:gametrailers.com:31c93ab8-fe77-4db2-bfee-ff37837e6704'
+ ),
+ array(
+ 'gametrailers',
+ 'http://www.gametrailers.com/full-episodes/zdzfok/pop-fiction-episode-40--jak-ii--sandover-village',
+ 'mgid:arc:episode:gametrailers.com:1e287a4e-b795-4c7f-9d48-1926eafb5740'
+ ),
array(
'grooveshark',
'http://grooveshark.com/playlist/Purity+Ring+Shrines/74854761',
diff --git a/vendor/s9e/TextFormatter b/vendor/s9e/TextFormatter
index 2a10c61..b9b88c1 160000
--- a/vendor/s9e/TextFormatter
+++ b/vendor/s9e/TextFormatter
@@ -1 +1 @@
-Subproject commit 2a10c61106c749314b9be6806e6c5c9907a8baed
+Subproject commit b9b88c1c9e486a0653817b3dd8b488bc0f12d706
diff --git a/www/configure.html b/www/configure.html
index 3b6b755..a0f4d20 100644
--- a/www/configure.html
+++ b/www/configure.html
@@ -109,6 +109,12 @@
Gamespot |
http://www.gamespot.com/destiny/videos/destiny-the-moon-trailer-6415176/ http://www.gamespot.com/events/game-crib-tsm-snapdragon/gamecrib-extras-cooking-with-dan-dinh-6412922/ http://www.gamespot.com/videos/beat-the-pros-pax-prime-2013/2300-6414307/ |
+
+ |
+ gametrailers |
+ GameTrailers |
+ http://www.gametrailers.com/videos/jz8rt1/tom-clancy-s-the-division-vgx-2013--world-premiere-featurette- http://www.gametrailers.com/reviews/zalxz0/crimson-dragon-review http://www.gametrailers.com/full-episodes/zdzfok/pop-fiction-episode-40--jak-ii--sandover-village |
+
|
gist |
@@ -256,7 +262,7 @@