Normal
Hi LRFalk01,thanky you very much for your help, your my new hero. This is working now but i got a little problem now, which i don't know to change.[CODE] <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]}/[COLOR="Red"]${item_return[1]}/[/COLOR]filmdetails.html"/>[/CODE]The red is filled thru the regex with for example Zeiten des Aufruhrs, but the link needs zeiten_des_aufruhrs !!!Don't know how to set this up because i need this now for the <action>get details retrieve url.Maybe you could help me out there too.Thanks so much againSchenk
Hi LRFalk01,
thanky you very much for your help, your my new hero. This is working now but i got a little problem now, which i don't know to change.
[CODE] <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]}/[COLOR="Red"]${item_return[1]}/[/COLOR]filmdetails.html"/>[/CODE]
The red is filled thru the regex with for example Zeiten des Aufruhrs, but the link needs zeiten_des_aufruhrs !!!
Don't know how to set this up because i need this now for the <action>get details retrieve url.
Maybe you could help me out there too.
Thanks so much again
Schenk