Hi,
add these to your ofdb.xml and you'll get the Writers and (if available) the german certification
Here you go, have fun
Schenk
add these to your ofdb.xml and you'll get the Writers and (if available) the german certification
PHP:
<!-- Certification -->
<retrieve name="details_page" url="http://www.imdb.com/title/${movie.imdb_id}"/>
<parse name="certification" input="${details_page}" regex='>\s+Germany:((?:12)|(?:16)|(?:18)|(?:6)|(?:o.Al.))</a>'/>
<set name='movie.certification' value='${certification[0][0]:htmldecode}'/>
<!-- Writers -->
<retrieve name="details_page" url="http://www.imdb.com/title/${movie.imdb_id}"/>
<parse name="writers_block" input="${details_page}" regex='<div class="info">\s+<h5>Writer[s]?(?: <a href="[^"]+">\([^)]+\)</a>)?:</h5>.+?</div>'/>
<parse name='writers' input="${writers_block}" regex='<a href="/name/nm\d+/">([^<]+)</a>'/>
<set name='movie.writers' value=''/>
<loop name='currWriter' on='writers'>
<set name='movie.writers' value='${movie.writers}|${currWriter[0]:htmldecode}'/>
</loop>
Here you go, have fun
Schenk