2009-03-21, 22:03
Hi
Im have installed apache/mysql/php on my media server (192.168.0.10), and have a script that responds to (for example)
http://192.168.0.10/search.php?videoID=tt4638525
with an xml like this
This is how far i have got with the scraper - but i dont think its right - I cant get my head around RegEx's at all.
any help appreciated please
Im have installed apache/mysql/php on my media server (192.168.0.10), and have a script that responds to (for example)
http://192.168.0.10/search.php?videoID=tt4638525
with an xml like this
Code:
<?xml version="1.0" encoding="UTF-8"?>
<movie>
<details>
<title></title>
<year></year>
<director></director>
<top250></top250>
<mpaa></mpaa>
<tagline></tagline>
<runtime></runtime>
<thumb></thumb>
<credits></credits>
<rating></rating>
<votes></votes>
<genre></genre>
<actor>
<name></name>
<role></role>
</actor>
<outline></outline>
<plot></plot>
</details>
</movie>
This is how far i have got with the scraper - but i dont think its right - I cant get my head around RegEx's at all.
Code:
<scraper name="LocalMedia" content="movies" thumb="LocalMedia.gif">
<NfoUrl dest="3">
<RegExp input="$$1" output="http://192.168.0.10/search.php?videoID=/1" dest="3">
<expression noclean="1">192.168.0.10/(.*)</expression>
</RegExp>
</NfoUrl>
<CreateSearchUrl>
<RegExp>
<expression></expression>
</RegExp>
</CreateSearchUrl>
<GetSearchResults>
<RegExp>
<expression></expression>
</RegExp>
</GetSearchResults>
<GetDetails>
<RegExp>
<expression></expression>
</RegExp>
</GetDetails>
</scraper>
any help appreciated please