Strange filename filter files
#1
well, i have try this filename:
  • hotel.avi
  • hotel 2004.avi
  • hotel (2004).avi

but in log file i have always:

Code:
DEBUG: InternalFindMovie: Searching for '[b]hotel[/b]' using

the same result if try manual search:
  • hotel (2004).avi
  • hotel 2004.avi
  • hotel (2004)

The only mode for succes is use manual mode and write:
  • hotel 2004

the film i want find is: Hotel (2004) but don't appearr in the first 20 results for simple keyword hotel.

the serach url is:
http://www.google.it/cse?q=hotel&cx=part...rca&num=20

is there another way for solve my problem?

my version is xbmc 9.11 r26018

thankssss!
Reply
#2
If you use <moviename> (<year>).<ext> then XBMC will supply both the moviename and year to the scraper.

It's up to the scraper to combine them appropriately into the search URL.
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.


Image
Reply
#3
but if file name is hotel (2004).avi (as you write), i get in debug:

Code:
DEBUG: InternalFindMovie: Searching for 'hotel' using...

DEBUG: FileCurl::Open(0x7fff682b9138) http://www.google.it/cse?q=[b]hotel[/b]&cx=partner-pub-1699801751737986%3Ax7j961-1g3m&ie=ISO-8859-1&sa=Cerca&num=20

and this is my simple CreateSearchUrl block:

Code:
<CreateSearchUrl dest="3">
    <RegExp input="$$1" output="http://www.google.it/cse?q=\1&amp;cx=partner-pub-1699801751737986%3Ax7j961-1g3m&amp;ie=ISO-8859-1&amp;sa=Cerca&amp;num=20" dest="3">
      <expression noclean="1" />
    </RegExp>
  </CreateSearchUrl>

there is something that i don't understand...Huh
Reply
#4
I beleive Jonathan means something like this used in imdb.xml:

Code:
<CreateSearchUrl dest="3" SearchStringEncoding="iso-8859-1">
    <RegExp input="$$1" output="&lt;url&gt;http://akas.imdb.com/find?s=tt;q=\1$$4&lt;/url&gt;" dest="3">
        <RegExp input="$$2" output="%20(\1)" dest="4">
            <expression clear="yes">(.+)</expression>
        </RegExp>
        <expression noclean="1"/>
    </RegExp>
</CreateSearchUrl>
where the year is putted in $$4 and attached to \1 to create the query
Reply
#5
Workinggg!! thanks a lot kotix!!

How do you know this "trick", buffer $$2 hold date in CreateSearchUrl?!

Is there some scraper sdk or just view other scrapers? Shocked
Reply
#6
You are wellcome Wink
No sdk, I just looked at the others scrapers and I remembered I saw that thing in the imdb one.
I don't know if I'll implement it in the movieplayer scraper too or not, please let me know if it is usefull for all the movies you have or just for that case.
Cheers Smile
Reply
#7
Great! I'll add your suggets soon...and we'll wait for user report

thank again Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Strange filename filter files0