Is it possible for the themoviedb scraper to ignore a prefix?
#16
Hi,

After an update I'm afraid I lost my earlier edit to tmdb.xml somehow.

I just wanted to try to redo the edit, but it seems the file has slightly changed and I'm failing to get it working...

This is what I tried:
xml:
    <CreateSearchUrl dest="3">
        <RegExp input="$$7" output="\1" dest="7">
          <expression noclean="1">%5b[0-9]+%5d%20(.*)</expression>
        </RegExp>

        <RegExp input="$$7" output="<url>https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e0468&query=\1&year=$$4&language=$INFO[language]</url>" dest="3">
            <RegExp input="$$2" output="\1" dest="4">
                <expression clear="yes">(.+)</expression>
            </RegExp>
            <RegExp input="$$1" output="\1" dest="7">
                <expression clear="yes">(.+)</expression>
            </RegExp>
            <RegExp input="$$1" output="\1" dest="6">
                <expression noclean="1">(.+)(?:%20the$|%20an$|%20a$|%2Cthe$|%2Can$|%2Ca$)</expression>
            </RegExp>
            <RegExp input="$$6" output="\1" dest="7">
                <expression>(.+)</expression>
            </RegExp>
            <expression noclean="1" />
        </RegExp>
    </CreateSearchUrl>

The xml file in 2014 had
xml:
<RegExp input="$$1" output="<url>http://api.tmdb.org/3/search/movie?api_key=57983e31fb435df477afb854740ea9&amp;query=\1&amp;year=$$4&amp;language=$INFO[language]</url>" dest="3">
While the new xml file has
xml:
<RegExp input="$$7" output="<url>https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf23b605d3e3e0468&query=\1&year=$$4&language=$INFO[language]</url>" dest="3">
Notice that it now says input="$$7" in the new xml file instead of input="$$1" in the old xml file
​​​​​​​
So I tried all kinds of combinations of input / output / dest in my added code
xml:
<RegExp input="$$1" output="\1" dest="1">
<RegExp input="$$7" output="\7" dest="7">
<RegExp input="$$7" output="\1" dest="7">
<RegExp input="$$1" output="\1" dest="7">

But nothing seems to work. I think my added code is never used (not sure how to check this either, except that I notice that it doesn't work)
Reply
#17
Are there perhaps any tricks I can do to debug this? Like adding an "echo" somewhere?
Reply
#18
Anyone still here?

Or should I try to use the Python scraper instead? (Also there I could use a small example to get started)
Reply
#19
I have the same question Wink

I tried to ask in the python-scraper thread:
https://forum.kodi.tv/showthread.php?tid...pid3187421
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible for the themoviedb scraper to ignore a prefix?0