home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Gametrailers - support thread
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Rick164" data-source="post: 756167" data-attributes="member: 17766"><p>Hi,</p><p></p><p>The current Gametrailers.com provider didn't allow for much since it relied only on the RSS feeds, rewrote it and now supports the following:</p><p></p><p>- (Sub)categories.</p><p>- Multi page.</p><p>- Less cluttered with description on the left and game name as title.</p><p></p><p>To do:</p><p></p><p>-Add SD support but need to look at the online videos documentation to figure out how to do this properly, so currently it only retrieves HD movies.</p><p>-Add Special videos support (like bonus round), can't be retrieved with generic site util as it requires more checks and different means of getting the video url.</p><p><s>-Search support.</s></p><p></p><p>Here is the code for anyone who wants to use it, it's already an improvement over the current version but still needs some work done.</p><p></p><p>[code]</p><p><Site name="Gametrailers" util="GenericSite" agecheck="false" enabled="true" lang="en" lastUpdated="2011-06-12T00:00:00.0654986+02:00"></p><p> <Configuration></p><p> <item key="dynamicCategoriesRegEx"></item></p><p> <item key="videoListRegEx"><![CDATA[<div\sclass="gamepage_content_row_thumb">.*?<img\ssrc="(?<ImageUrl>[^"]*)"\sclass="gamepage_content_row_image"\salt="">.*?<a\shref=".*?(?<VideoUrl>[0-9]*)"><img\sborder="0"\ssrc="http://gametrailers\.mtvnimages\.com/images/sitewide/HDupper\.gif">.*?gamepage_content_row_title">(?<Title>[^<]*)</a>.*?bold;">(?<Description>.*?)</div>]]></item></p><p> <item key="videoListRegExFormatString"><![CDATA[http://mosii.gametrailers.com/getmediainfo4.php?hd=1&mid={0}]]></item></p><p> <item key="videoUrlRegEx"><![CDATA[umfilename=(?<url>[^&]*)]]></item></p><p> <item key="videoUrlFormatString"><![CDATA[http://trailers.gametrailers.com/gt_vault/{0}.flv]]></item></p><p> <item key="nextPageRegEx"><![CDATA[<a\shref="(?<url>[^"]*)"\sclass="Page">Next\s&raquo;</a>]]></item></p><p> <item key="playlistUrlFormatString"><![CDATA[http://trailers.gametrailers.com/gt_vault/{0}.flv]]></item></p><p> <item key="fileUrlRegEx"><![CDATA[umfilename=(?<m0>[^&]*)]]></item></p><p> <item key="fileUrlFormatString"><![CDATA[http://trailers.gametrailers.com/gt_vault/{0}.flv]]></item></p><p> <item key="baseUrl"><![CDATA[http://www.gametrailers.com]]></item></p><p> <item key="videoThumbFormatString"><![CDATA[{0}]]></item></p><p> </Configuration></p><p> <Categories></p><p> <Category xsi:type="RssLink" name="PC" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://pc.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://pc.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://pc.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://pc.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://pc.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://pc.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://pc.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://pc.gametrailers.com/</Category></p><p> <Category xsi:type="RssLink" name="PS3" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://PS3.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://PS3.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://PS3.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://PS3.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://PS3.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://PS3.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://PS3.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://PS3.gametrailers.com/</Category></p><p> <Category xsi:type="RssLink" name="Xbox360" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://xbox360.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://xbox360.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://xbox360.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://xbox360.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://xbox360.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://xbox360.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://xbox360.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://xbox360.gametrailers.com/</Category></p><p> <Category xsi:type="RssLink" name="Wii" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://wii.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://wii.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://wii.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://wii.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://wii.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://wii.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://wii.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://wii.gametrailers.com/</Category></p><p> <Category xsi:type="RssLink" name="PSP" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://psp.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://psp.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://psp.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://psp.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://psp.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://psp.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://psp.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://psp.gametrailers.com/</Category></p><p> <Category xsi:type="RssLink" name="3DS" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://3ds.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://3ds.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://3ds.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://3ds.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://3ds.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://3ds.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://3ds.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://3ds.gametrailers.com/</Category></p><p> <Category xsi:type="RssLink" name="Mobile" thumb="" desc=""></p><p> <SubCategories></p><p> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://mobile.gametrailers.com/#Content</Category></p><p> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://mobile.gametrailers.com/?show=Trailers#Content</Category></p><p> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://mobile.gametrailers.com/?show=Features#Content</Category></p><p> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://mobile.gametrailers.com/?show=Previews#Content</Category></p><p> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://mobile.gametrailers.com/?show=Reviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://mobile.gametrailers.com/?show=Interviews#Content</Category></p><p> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://mobile.gametrailers.com/?show=Gameplay#Content</Category></p><p> </SubCategories>http://mobile.gametrailers.com/</Category></p><p> </Categories></p><p></Site></p><p>[/code]</p></blockquote><p></p>
[QUOTE="Rick164, post: 756167, member: 17766"] Hi, The current Gametrailers.com provider didn't allow for much since it relied only on the RSS feeds, rewrote it and now supports the following: - (Sub)categories. - Multi page. - Less cluttered with description on the left and game name as title. To do: -Add SD support but need to look at the online videos documentation to figure out how to do this properly, so currently it only retrieves HD movies. -Add Special videos support (like bonus round), can't be retrieved with generic site util as it requires more checks and different means of getting the video url. [S]-Search support.[/S] Here is the code for anyone who wants to use it, it's already an improvement over the current version but still needs some work done. [code] <Site name="Gametrailers" util="GenericSite" agecheck="false" enabled="true" lang="en" lastUpdated="2011-06-12T00:00:00.0654986+02:00"> <Configuration> <item key="dynamicCategoriesRegEx"></item> <item key="videoListRegEx"><![CDATA[<div\sclass="gamepage_content_row_thumb">.*?<img\ssrc="(?<ImageUrl>[^"]*)"\sclass="gamepage_content_row_image"\salt="">.*?<a\shref=".*?(?<VideoUrl>[0-9]*)"><img\sborder="0"\ssrc="http://gametrailers\.mtvnimages\.com/images/sitewide/HDupper\.gif">.*?gamepage_content_row_title">(?<Title>[^<]*)</a>.*?bold;">(?<Description>.*?)</div>]]></item> <item key="videoListRegExFormatString"><![CDATA[http://mosii.gametrailers.com/getmediainfo4.php?hd=1&mid={0}]]></item> <item key="videoUrlRegEx"><![CDATA[umfilename=(?<url>[^&]*)]]></item> <item key="videoUrlFormatString"><![CDATA[http://trailers.gametrailers.com/gt_vault/{0}.flv]]></item> <item key="nextPageRegEx"><![CDATA[<a\shref="(?<url>[^"]*)"\sclass="Page">Next\s»</a>]]></item> <item key="playlistUrlFormatString"><![CDATA[http://trailers.gametrailers.com/gt_vault/{0}.flv]]></item> <item key="fileUrlRegEx"><![CDATA[umfilename=(?<m0>[^&]*)]]></item> <item key="fileUrlFormatString"><![CDATA[http://trailers.gametrailers.com/gt_vault/{0}.flv]]></item> <item key="baseUrl"><![CDATA[http://www.gametrailers.com]]></item> <item key="videoThumbFormatString"><![CDATA[{0}]]></item> </Configuration> <Categories> <Category xsi:type="RssLink" name="PC" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://pc.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://pc.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://pc.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://pc.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://pc.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://pc.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://pc.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://pc.gametrailers.com/</Category> <Category xsi:type="RssLink" name="PS3" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://PS3.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://PS3.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://PS3.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://PS3.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://PS3.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://PS3.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://PS3.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://PS3.gametrailers.com/</Category> <Category xsi:type="RssLink" name="Xbox360" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://xbox360.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://xbox360.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://xbox360.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://xbox360.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://xbox360.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://xbox360.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://xbox360.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://xbox360.gametrailers.com/</Category> <Category xsi:type="RssLink" name="Wii" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://wii.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://wii.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://wii.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://wii.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://wii.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://wii.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://wii.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://wii.gametrailers.com/</Category> <Category xsi:type="RssLink" name="PSP" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://psp.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://psp.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://psp.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://psp.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://psp.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://psp.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://psp.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://psp.gametrailers.com/</Category> <Category xsi:type="RssLink" name="3DS" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://3ds.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://3ds.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://3ds.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://3ds.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://3ds.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://3ds.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://3ds.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://3ds.gametrailers.com/</Category> <Category xsi:type="RssLink" name="Mobile" thumb="" desc=""> <SubCategories> <Category xsi:type="RssLink" name="Newest Media" thumb="" desc="">http://mobile.gametrailers.com/#Content</Category> <Category xsi:type="RssLink" name="Trailers" thumb="" desc="">http://mobile.gametrailers.com/?show=Trailers#Content</Category> <Category xsi:type="RssLink" name="Features" thumb="" desc="">http://mobile.gametrailers.com/?show=Features#Content</Category> <Category xsi:type="RssLink" name="Previews" thumb="" desc="">http://mobile.gametrailers.com/?show=Previews#Content</Category> <Category xsi:type="RssLink" name="Reviews" thumb="" desc="">http://mobile.gametrailers.com/?show=Reviews#Content</Category> <Category xsi:type="RssLink" name="Interviews" thumb="" desc="">http://mobile.gametrailers.com/?show=Interviews#Content</Category> <Category xsi:type="RssLink" name="Gameplay" thumb="" desc="">http://mobile.gametrailers.com/?show=Gameplay#Content</Category> </SubCategories>http://mobile.gametrailers.com/</Category> </Categories> </Site> [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Gametrailers - support thread
Contact us
RSS
Top
Bottom