XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Scraper Development

Scraper Development Developers forum for meta data scrapers. Scraper developers only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2009-02-25, 14:07   #1
hamp
Skilled Skinner
 
Join Date: Jul 2008
Posts: 56
hamp is on a distinguished road
Question Help!

Code:
<GetDetails>
			<RegExp input="$$1" output="&lt;url function=&quot;GMA&quot;&gt;http://api.themoviedb.org/2.0/Movie.search?title=\1&api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5+">
				<expression>&lt;span style=&quot;font-size:13px;color:#666&quot;&gt;([^&lt;]+)&lt;/span&gt;</expression>
			</RegExp>

			<RegExp input="$$1" output="&lt;url cache=&quot;KinoPoisk_opa.html&quot; function=&quot;GetFanart&quot;&gt;http://www.kinopoisk.ru/&lt;/url&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>

	</GetDetails>



	<GMA dest="10">
            <RegExp input="$$1" output="&lt;url function=&quot;GMFFS&quot;&gt;http://www.themoviedb.org/movie/\1/backdrops&lt;/url&gt;" dest="5+">
				<expression>&lt;id&gt;([^&quot;]+)&lt;/id&gt;</expression>
			</RegExp>
	</GMA>
    
	<GMFFS dest="7" clearbuffers="no">
		<RegExp input="$$1" output="&lt;thumb&gt;http://www.themoviedb.org/image/backdrops/\1&lt;/thumb&gt;" dest="6+">
			<expression repeat="yes" noclean="1">&lt;a href=&quot;/image/backdrops/([^&quot;]+)&quot;</expression>
		</RegExp>
	</GMFFS>


    <GetFanart dest="5">
		<RegExp input="$$6" output="&lt;details&gt;&lt;fanart&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<expression noclean="1"></expression>
		</RegExp>
	</GetFanart>
Not work! Why? Empty.
hamp is offline   Reply With Quote
Old 2009-02-25, 14:46   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

apart from the obvious errors; (missing tags, missing expressions);

you are writing xml so you have to escape special chars. in addition you are outputting xml so you have to escape chars yet another time; in particular
Code:
<RegExp input="$$1" output="&lt;url function=&quot;GMA&quot;&gt;http://api.themoviedb.org/2.0/Movie.search?title=\1&api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5+">
needs to read
Code:
<RegExp input="$$1" output="&lt;url function=&quot;GMA&quot;&gt;http://api.themoviedb.org/2.0/Movie.search?title=\1&amp;amp;api_key=57983e31fb435df4df77afb854740ea9&lt;/url&gt;" dest="5+">
the & -> &amp;amp;

hint; open the xml in e.g. firefox. it will tell you exactly where the error is at
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Last edited by spiff; 2009-02-25 at 14:51.
spiff is offline   Reply With Quote
Old 2009-02-25, 17:55   #3
hamp
Skilled Skinner
 
Join Date: Jul 2008
Posts: 56
hamp is on a distinguished road
Default

Thank you. It really works.
hamp is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:11.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project