I do not know if I have understood this...
No, that's not what I mean. Using your example, your
8 Mile record now has the AllRovi URL recorded:
http://www.allrovi.com/movies/movie/8-mile-v261159. If you run the script again, the function
GetDownloadURL will retrieve that from the record and use it to access the page directly—no search will be done. It's able to select that URL from the URL field—which may contain many URL's—because we've provided the BASE_URL:
http://www.allrovi.com.
I don't understand the logic of the script, but there must be a way use this function like this:
Just to be clear, the only thing different here is step 2. And I don't think the script has much to do with step 4—the main application downloads the page (whatever it is) and
ParsePage handles it. For the same reason, I have difficulty seeing a point at which step 2 might be inserted. Unless this is straightforward, it's probably not worth the bother. But I think it would be very helpful generally if we understood how things like this work.
BTW, the Scripting Manual has some interesting tidbits hidden in it—like this one:
"If you download poster in a movie information script or a photo in a person information script then make sure URL to an image is passed after all other pages are retrieved!"—found at the end of the
GetDownloadURL example.
No wonder I was having such a problem with the Poster messing up the Rating! I did try to move it to the end, but for some reason it then didn't work. Maybe you could give that a try.
More than one (with at least two similar or same title unless there where only one) movie in the search results.
As long as it doesn't stop and ask when one title is exact but another is "similar."
It's still not clear to me what this is about. If this code presents the search results, what is doing now? Automatically using the first hit, unless it's not similar enough to the search term? Come to think of it, when the dialog appears, it's most often just to confirm one found movie. Seldom, if ever, am I presented with a list to choose from. Anyway—no need to explain. I'll figure it out after you've added it to the script.