- January 7, 2006
- 1,335
- 1,005
- Home Country
- Netherlands
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.
-Search support.
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.
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.
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>
Last edited: