Quick Scraper Question (Hope so:))

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #71
Code:
<GetPosterLinkURL dest="5">
        <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5+">
                        <RegExp input="$$1" output="&lt;url function=&quot;GetPosterURL&quot;&gt;http://www.moviemaze.de/filme/\1/\2&lt;/url&gt;" dest="2+">
                <expression>&lt;a href=&quot;/filme/([0-9]+)/([^&quot;]*)&quot;</expression>
            </RegExp>
            <expression noclean="1"/>
        </RegExp>
    </GetPosterLinkURL>

    <GetPosterURL dest="5">
        <RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetPoster&quot;&gt;http://www.moviemaze.de/media/poster/\1/\2&lt;/url&gt;&lt;/details&gt;" dest="5+">
            <expression>&lt;a href=&quot;/media/poster/([0-9]+)/([^&quot;]*)&quot;</expression>
        </RegExp>
    </GetPosterURL>

    <GetPoster clearbuffers="no" dest="5">
        <RegExp input="$$1" output=";&lt;thumb&gt;http://www.moviemaze.de/filme/\1/poster_lg\2.jpg&lt;/thumb&gt;;" dest="10+">
            <expression repeat="yes">/([0-9]+)/poster([0-9]+)</expression>
        </RegExp>
    </GetPoster>

        <GetThumbnailLink clearbuffers="no" dest="6">
               <RegExp input="$$7" output="&lt;details&gt;\1&lt;/details&gt;" dest="6">
                 <RegExp input="$$1" output="&lt;url function=&quot;GetThumbnail&quot;&gt;http://www.cinefacts.de/kino/film/\1&lt;/url&gt;" dest="7">
            <expression repeat="yes" noclean="1">&lt;a href=&quot;/kino/film/([^&quot;]+)&quot;&gt;[^&lt;]*&lt;img</expression>
                    </RegExp>
                    <RegExp input="" output="&lt;url function=&quot;CollectThumbnails&quot; cache=&quot;film.xml&quot;&gt;http://www.cinefacts.de/kino/datenbank.html&lt;/url&gt;" dest="7+">
                        <expression/>
            </RegExp>
                    <expression noclean="1"/>
               </RegExp>
        </GetThumbnailLink>

    <GetThumbnail clearbuffers="no" dest="5">
        <RegExp input="$$1" output="&lt;thumb&gt;http://www.cinefacts.de/kino/plakat/\1&lt;/thumb&gt;" dest="8+">
               <expression>href=&quot;/kino/plakat/([^&quot;]*)&quot;</expression>
                </RegExp>
                <RegExp input="" output="&lt;details&gt;&lt;/details&gt;" dest="5">
               <expression noclean="1"/>
        </RegExp>
    </GetThumbnail>

        <CollectThumbnails dest="2">
           <RegExp input="$$10$$8" output="&lt;details&gt;&lt;thumbs&gt;\1&lt;/thumbs&gt;&lt;/details&gt;" dest="2+">
             <expression noclean="1"/>
           </RegExp>
        </CollectThumbnails>

Hey spiff,

this almost works but i got one problem. let me explain: if there are covers on cinefacts and moviemaze, all covers are shown. If there is only a cover in cinefacts, this is shown. But when there's only a cover at moviemaze, none is shown. I think it has something to do with the $$10$$8 but i don't know exactly and really appreciate if you could help hereSmile

Thanks so much

Schenk
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #72
anyone could help with the above? Sad

thanks in advance

Schenk
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,178
Joined: Nov 2003
Reputation: 82
Post: #73
why are you concating to buffer 2 in the collectfunction?

i really do not have the time to help now, you do know that new builds log all the scraper output?

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.
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #74
Thanks for the answer spiff,

no i didn't know but upgraded now. it shows me the output when both moviemaze and cinefacts have covers. it shows nothing when only moviemaze got one.

for the collect section, that's what you gave me !
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,178
Joined: Nov 2003
Reputation: 82
Post: #75
maybe, but i never said that the code i give you are exactly correct. i only give pointers to point out the concepts.

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.
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #76
spiff Wrote:maybe, but i never said that the code i give you are exactly correct. i only give pointers to point out the concepts.

spiff, you added the script as a ticket Big Grin
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,178
Joined: Nov 2003
Reputation: 82
Post: #77
i'm not even having this discussion

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.
find quote
Post Reply