Many videos I have don’t scrape because they aren’t on any database. I’d like Kodi to add them regardless, using their filename as title. So there’s a scraper that does that, and this is the code:
Code:
<CreateSearchUrl dest="3" clearbuffers="no">
<RegExp dest="3" output="<url>http://search.yahoo.com/search?p=$$7</url>" input="$$7">
<RegExp dest="7" output="\1" input="$$1">
<expression noclean="1" trim="1">(.+)</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8" clearbuffers="no">
<RegExp dest="8" output="<results sorted="yes">\1</results>" input="$$5">
<RegExp dest="5" output="<entity><title>\1</title><url>http://search.yahoo.com/search?p=$$7</url></entity>" input="$$1">
<expression noclean="1" trim="1"><title>([^"]*)\-\sYahoo Search</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetSearchResults>
<GetDetails dest="3" clearbuffers="no">
<RegExp dest="3" output="<details>\1</details>" input="$$5">
<RegExp dest="5+" output="<title>\1</title>" input="$$1">
<expression noclean="1" trim="1"><title>(.+)\s\-\sYahoo Search Results</title></expression>
</RegExp>
<expression noclean="1" trim="1"></expression>
</RegExp>
</GetDetails>
I’d like to merge this into the code of either tmdb.xml or universal.xml, so that I have one scraper that gets most movies with, and then uses the one above for when TMDB can’t match the filename with anything. I don’t know where to put it, though. If I do it at the top, it takes priority over TMDB to the point were TMDB is not used at all, and if I put it at the very end it gets ignored.