Added new version to the first post.
Version: 0.2.3
- Repaired retrieving Directors, Actors and Summary from CSFD
...
<!-- Retrieve details -->
<set name="movie.details_url" value="${site}${movie.site_id}" />
<retrieve name="details_page" url="${movie.details_url}" encoding="utf-8" retries="10" timeout_increment="3000" allow_unsafe_header="true" />
<!-- Set variable to prefer original name or czech name from CSFD DB values: cz, ori, firstori, firstcz -->
<set name="pref_title" value="firstori" />
<!-- Regular expressions for parsing og:title property from movie detail html page -->
<set name="rx_og_title">
<![CDATA[
<**** property="og:title" content="(.*?)" />
]]>
</set>
<set name="rx_parse_og_title">
<![CDATA[
content="(.*?) / (.*?)\(
]]>
</set>
<!-- OG **** property title -->
<parse name="og_title_all" input="${details_page}" regex="${rx_og_title}" />
<parse name="title_main" input="${og_title_all}" regex="${rx_parse_og_title}" />
<parse name="title_ori" input="${title_main[0][1]}" regex="(.+?)(?:, (The|A|An|Ein|El|Das|Die|Der|Les|Un|Une))?[ \t]*$" />
<!-- Accorging to pref_title variable, set movie title -->
<if test="${pref_title}=ori">
<if test="${title_ori[0][0]}=">
<set name="movie.title" value="${title_main[0][0]:htmldecode}" />
</if>
<if test="${title_ori[0][0]}!=">
<set name="movie.title" value="${title_ori[0][0]:htmldecode}" />
</if>
</if>
<if test="${pref_title}=cz">
<set name="movie.title" value="${title_main[0][0]:htmldecode}" />
</if>
<if test="${pref_title}=firstori">
<if test="${title_ori[0][0]}=">
<set name="movie.title" value="${title_main[0][0]:htmldecode}" />
</if>
<if test="${title_ori[0][0]}!=">
<if test="${title_ori[0][0]}=${title_main[0][0]}">
<set name="movie.title" value="${title_main[0][0]:htmldecode}" />
</if>
<if test="${title_ori[0][0]}!=${title_main[0][0]}">
<set name="movie.title" value="${title_ori[0][0]:htmldecode} ( ${title_main[0][0]:htmldecode} )" />
</if>
</if>
</if>
<if test="${pref_title}=firstcz">
<if test="${title_ori[0][0]}=">
<set name="movie.title" value="${title_main[0][0]:htmldecode}" />
</if>
<if test="${title_ori[0][0]}!=">
<if test="${title_ori[0][0]}=${title_main[0][0]}">
<set name="movie.title" value="${title_main[0][0]:htmldecode}" />
</if>
<if test="${title_ori[0][0]}!=${title_main[0][0]}">
<set name="movie.title" value="$${title_main[0][0]:htmldecode} ( ${title_ori[0][0]:htmldecode} )" />
</if>
</if>
</if>
<!-- Title ( original from Trottel, not used) -->
<!--
<parse name="titleaa" input="${details_page}" regex="<h1>(.+?)(?:, (The|A|An|Ein|El|Das|Der|Die|Les|Un|Une))?(?:\s<span.+?</span>)?.*?</h1>" />
<set name="movie.title" value="${titleaa[0][1]:htmldecode} ${titleaa[0][0]:htmldecode}" />
<replace name="movie.title" input="${movie.title}" pattern="( \(TV film\))" with="" />
-->
<!-- Alternate Titles -->
...