Well, my understanding is that when searching, the url is coming from GetSearchResults and used in GetDetails.
NfoUrl works similar and the url it outputs is also used in GetDetails.
Now, my problem is that a imdb id is not unique. There can be 0-many movies in the database with the same imdb id. This is because the database does not only contain film info, but also DVD, HD-DVD and Blu-Ray, not to mention different editions of same movie (take Terminator 2 for example
.
This is not a problem when searching since you can choose the version of the movie you like, however automated scan just takes the best match - not looking at data really.
What I need to do with NfoUrl is, look up the titles with this imdb no and chose one to use as url for GetDetails.
I guess a setting for default movie type would help me out, but it would not be perfect since you can have different versions in your library. Mine is a mix of films (rips with no relation to source), iso's of dvd's (or video_ts folder), iso's of blu-rays. It would ofcourse be ideal if XBMC would tell the type of move to the NfoUrl function (hello Spiff
).
The better way to make a perfect match (at least with my scraper) would be to use the DiscID. This can be obtained from iso's of dvd's/blu-ray's/hd-dvd's. Movies with no disc id (films with no relation) could use imdb no and film info (not currently in database, but will be soon).
Here is a request for DiscID support in XBMC:
http://trac.xbmc.org/ticket/6800
So, I think we have a bit of road to travel to truely get "correct" metadata for our movies in our libraries.