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: 879100" data-attributes="member: 17766"><p>Currently working on a new version since Gametrailers 2.0 launched and messed everything up, hoping to have it done in a few days tops.</p><p> </p><p>/Edit:</p><p> </p><p>My draft so far is listed below, know how to get it working but stuck at the PlaylistUrlRegexp step because Online Videos doesn't seem to allow more then 1 named regex group in the PlaylistUrl step.</p><p> </p><p>For Gametrailers I need to retrieve 2 strings from the html source (token / video_id) and got both matched but can't parse them for the next step (FileUrl) <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p>Anyone know of a solution for this besides making a custom util?</p><p> </p><p>[HTML]<Site name="GT 2.0" util="GenericSite" agecheck="false" enabled="true" lang="English"></p><p> <Description>-</Description></p><p> <Configuration></p><p> <item key="videoListRegEx"><![CDATA[<meta\sitemprop="url"\scontent="(?<VideoUrl>[^"]*)"/>\s*<meta\sitemprop="name"\scontent="(?<Title>[^"]*)"/>\s*<meta\sitemprop="thumbnail"\scontent="(?<ImageUrl>[^"]*)"/>\s*<meta\sitemprop="description"\scontent="(?<Description>[^"]*)"/>\s*<meta\sitemprop="uploadDate"\scontent="(?<Airdate>[^"]*)"/>\s*<meta\sitemprop="duration"\scontent="(?<Duration>[^"]*)"/>]]></item></p><p> <item key="videoListUrlDecoding"><![CDATA[HtmlDecode]]></item></p><p> <item key="nextPageRegEx"><![CDATA[<li\sclass="next"><a\sclass="override_nav_background_color\soverride_nav_text_color"\srel="next"\shref="(?<url>[^"]*)">&rarr;</a></li></ul></div>]]></item></p><p> <item key="nextPageRegExUrlDecoding"><![CDATA[HtmlDecode]]></item></p><p> <item key="playlistUrlRegEx"><![CDATA[\s*data-contentId='(?<url>[^']*)'*.*data-token="(?<token>[^"]*)"]]></item></p><p> <item key="playlistUrlFormatString"><![CDATA[[URL][URL][URL][URL][URL][URL]http://www.gametrailers.com/feeds/video_download/[/URL][/URL][/URL][/URL][/URL][/URL]{0}/{1}]]></item></p><p> <item key="baseUrl"><![CDATA[[URL][URL][URL][URL][URL][URL]http://www.gametrailers.com[/URL][/URL][/URL][/URL][/URL][/URL]]]></item></p><p> <item key="videoThumbFormatString"><![CDATA[<meta\sitemprop="thumbnail"\scontent="(?<ImageUrl>[^"]*)"/>]]></item></p><p> </Configuration></p><p> <Categories></p><p> <Category xsi:type="RssLink" name="Xbox">[URL][URL][URL][URL][URL][URL]http://www.gametrailers.com/xbox-360/videos-trailers[/URL][/URL][/URL][/URL][/URL][/URL]</Category></p><p> </Categories></p><p></Site>[/HTML]</p><p> </p><p>/Edit 2:</p><p> </p><p>See that OffByOne has already made a siteutil for this one, will update it with the new regex and search code if he doesn't mind <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Rick164, post: 879100, member: 17766"] Currently working on a new version since Gametrailers 2.0 launched and messed everything up, hoping to have it done in a few days tops. /Edit: My draft so far is listed below, know how to get it working but stuck at the PlaylistUrlRegexp step because Online Videos doesn't seem to allow more then 1 named regex group in the PlaylistUrl step. For Gametrailers I need to retrieve 2 strings from the html source (token / video_id) and got both matched but can't parse them for the next step (FileUrl) :( Anyone know of a solution for this besides making a custom util? [HTML]<Site name="GT 2.0" util="GenericSite" agecheck="false" enabled="true" lang="English"> <Description>-</Description> <Configuration> <item key="videoListRegEx"><![CDATA[<meta\sitemprop="url"\scontent="(?<VideoUrl>[^"]*)"/>\s*<meta\sitemprop="name"\scontent="(?<Title>[^"]*)"/>\s*<meta\sitemprop="thumbnail"\scontent="(?<ImageUrl>[^"]*)"/>\s*<meta\sitemprop="description"\scontent="(?<Description>[^"]*)"/>\s*<meta\sitemprop="uploadDate"\scontent="(?<Airdate>[^"]*)"/>\s*<meta\sitemprop="duration"\scontent="(?<Duration>[^"]*)"/>]]></item> <item key="videoListUrlDecoding"><![CDATA[HtmlDecode]]></item> <item key="nextPageRegEx"><![CDATA[<li\sclass="next"><a\sclass="override_nav_background_color\soverride_nav_text_color"\srel="next"\shref="(?<url>[^"]*)">→</a></li></ul></div>]]></item> <item key="nextPageRegExUrlDecoding"><![CDATA[HtmlDecode]]></item> <item key="playlistUrlRegEx"><![CDATA[\s*data-contentId='(?<url>[^']*)'*.*data-token="(?<token>[^"]*)"]]></item> <item key="playlistUrlFormatString"><![CDATA[[URL][URL][URL][URL][URL][URL]http://www.gametrailers.com/feeds/video_download/[/URL][/URL][/URL][/URL][/URL][/URL]{0}/{1}]]></item> <item key="baseUrl"><![CDATA[[URL][URL][URL][URL][URL][URL]http://www.gametrailers.com[/URL][/URL][/URL][/URL][/URL][/URL]]]></item> <item key="videoThumbFormatString"><![CDATA[<meta\sitemprop="thumbnail"\scontent="(?<ImageUrl>[^"]*)"/>]]></item> </Configuration> <Categories> <Category xsi:type="RssLink" name="Xbox">[URL][URL][URL][URL][URL][URL]http://www.gametrailers.com/xbox-360/videos-trailers[/URL][/URL][/URL][/URL][/URL][/URL]</Category> </Categories> </Site>[/HTML] /Edit 2: See that OffByOne has already made a siteutil for this one, will update it with the new regex and search code if he doesn't mind :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Gametrailers - support thread
Contact us
RSS
Top
Bottom