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
Moving Pictures
Help making Scraper
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="LRFalk01" data-source="post: 386737" data-attributes="member: 55551"><p>Try this out:</p><p></p><p>[CODE]</p><p><action name="search"></p><p> </p><p> <set name="offset" value="0" /></p><p> </p><p> <!-- Regular Expressions --></p><p></p><p> <set name="rx_search_results"></p><p> <![CDATA[</p><p> <a\shref="/kino/(?<movieID>[\d]+)[^<]+[^>]+>(?<movieTitle>[^<]+)[^\n]+\n[^O]+OT..(?<movieOT>[^<]+)[^\d]+(?<movieYear>\d{4})</p><p> ]]></p><p> </set></p><p></p><p> <!-- Retrieve results using Title --></p><p> <retrieve name="search_page" url="http://www.cinefacts.de/suche/suche.php?name=${search.title:safe}" /></p><p></p><p> <!-- if we got a details page, this is used. if not, regex does not match so we dont process the loop--></p><p> <parse name="details_page_block" input="${search_page}" regex="${rx_search_results}"/></p><p> <if test="details_page_block[0][0]!="></p><p> <loop name="item_return" on="details_page_block"></p><p> <add name="counter" value1="${count}" value2="${offset}" /></p><p> <set name="movie[${counter}].title" value="${item_return[1]:htmldecode}"/></p><p> <set name="movie[${counter}].alternate_titles" value="${item_return[2]:htmldecode}" /></p><p> <!-- tests the existance of a year before trying to put on in the movie info --></p><p> <if test="${item_return[3]}!="></p><p> <set name="movie[${counter}].year" value="${item_return[3]:htmldecode}"/></p><p> </if></p><p> <set name="movie[${counter}].site_id" value="${item_return[0]}"/></p><p> <set name="movie[${counter}].details_url" value="http://www.cinefacts.de/kino/${item_return[0]}/${item_return[1]}/filmdetails.html"/></p><p> <subtract name="movie[${counter}].popularity" value1="100" value2="${counter}"/></p><p> </loop></p><p> </if></p><p></p><p> </action></p><p> </p><p></ScriptableScraper></p><p></p><p>[/CODE]</p><p></p><p>Try not to use .+ or .* That is at least something that I try to avoid.</p><p></p><p>-LRFalk01</p></blockquote><p></p>
[QUOTE="LRFalk01, post: 386737, member: 55551"] Try this out: [CODE] <action name="search"> <set name="offset" value="0" /> <!-- Regular Expressions --> <set name="rx_search_results"> <![CDATA[ <a\shref="/kino/(?<movieID>[\d]+)[^<]+[^>]+>(?<movieTitle>[^<]+)[^\n]+\n[^O]+OT..(?<movieOT>[^<]+)[^\d]+(?<movieYear>\d{4}) ]]> </set> <!-- Retrieve results using Title --> <retrieve name="search_page" url="http://www.cinefacts.de/suche/suche.php?name=${search.title:safe}" /> <!-- if we got a details page, this is used. if not, regex does not match so we dont process the loop--> <parse name="details_page_block" input="${search_page}" regex="${rx_search_results}"/> <if test="details_page_block[0][0]!="> <loop name="item_return" on="details_page_block"> <add name="counter" value1="${count}" value2="${offset}" /> <set name="movie[${counter}].title" value="${item_return[1]:htmldecode}"/> <set name="movie[${counter}].alternate_titles" value="${item_return[2]:htmldecode}" /> <!-- tests the existance of a year before trying to put on in the movie info --> <if test="${item_return[3]}!="> <set name="movie[${counter}].year" value="${item_return[3]:htmldecode}"/> </if> <set name="movie[${counter}].site_id" value="${item_return[0]}"/> <set name="movie[${counter}].details_url" value="http://www.cinefacts.de/kino/${item_return[0]}/${item_return[1]}/filmdetails.html"/> <subtract name="movie[${counter}].popularity" value1="100" value2="${counter}"/> </loop> </if> </action> </ScriptableScraper> [/CODE] Try not to use .+ or .* That is at least something that I try to avoid. -LRFalk01 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Help making Scraper
Contact us
RSS
Top
Bottom