2009-07-28, 21:48
spiff Wrote:hard/impossible to say without seeing what you did
Quite understandable. That's why I put my code in pastebin. Too bad I forgot to put the link here
![Oo Oo](https://forum.kodi.tv/images/smilies/oo7dt.gif)
Here goes: http://pastebin.com/m5c9b93da
/Daniel
spiff Wrote:hard/impossible to say without seeing what you did
Daniel Malmgren Wrote:Oh. About the newlines. Maybe I should mention that I always run my xml through a "xmllint --format" before copying them to pastebin (since the editor just outputs a big block of text without any newlines). Don't know if this is relevant here though...
Daniel Malmgren Wrote:1. CreateSearchUrl saves the year into buffer 9 (and doesn't empty the buffers upon completion)
...........
edit2: Ok. One side effect seems to be that if I for example searches for "Sagan om ringen (2001)" which should put "2001" into buffer 9, the buffer ends up containing "20" in xbmc. Can't really understand why...
[b]createsearchurl[/b] for movie processs $$1 = urlencoded title $$2 = year (which is where the new urlencode button on ScraperXML Editor comes in handy)
[b]getsearchresults[/b] buffers for movie process $$1 html
[b]getdetails[/b] for movies $$1=the html, $$2= id $$3=the url for the html
<RegExp input="$$2 output="\1" dest="9">
<expression>(.+)</expression>
</RegExp>
Nicezia Wrote:the year goes into buffer $$2 when running CreateSearchUrl not $$1
Code:[b]createsearchurl[/b] for movie processs $$1 = urlencoded title $$2 = year (which is where the new urlencode button on ScraperXML Editor comes in handy)
[b]getsearchresults[/b] buffers for movie process $$1 html
[b]getdetails[/b] for movies $$1=the html, $$2= id $$3=the url for the html
spiff Wrote:trac it please. xbmc.org/trac (for bookkeeping among other things)
vdrfan Wrote:Added to SVN, thanks!
vdrfan Wrote:Added to SVN, thanks!