My Script (IMDB + Allmovie). Some changes that may interest

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Guest

some progress made

Post by Guest »

Ok, I've made some progress in diagnosing the problem: it only manifests itself when the movie's URL starts with a "0" (http://akas.imdb.com/title/tt0...). If the URL is of the form http://akas.imdb.com/title/tt1, http://akas.imdb.com/title/tt2, etc. it works fine

Now, I don't know enough about scripting to fix this. How is the leading zero handled by the script? The weird thing is, it's not just dropped as you can see from the examples below. The entire URL changes if there is a leading zero.

Here are two pairs. There are many others, though.

Correct: Another You
http://akas.imdb.com/title/tt0101356/

Incorrect: See No Evil, Hear No Evil
http://akas.imdb.com/title/tt0098282/

Correct: Bait
http://akas.imdb.com/title/tt0211938/

Incorrect: Money Train
http://akas.imdb.com/title/tt0289589/
Guest

Post by Guest »

Curna or antp, can one of you fix this script please?
Guest

Post by Guest »

More reports....

"Big Fish" doesn't work, it is not in the option to choose.

This script totally skip "Levity".
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Anonymous wrote:Curna or antp, can one of you fix this script please?
Is it a bug in the official IMDB script too, or only in this modified version ?
Guest

Post by Guest »

It is a bug in the official AMG also known as allmovie. Please try and fix it, many people use this script.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

AMG seems to not like the way AMC encodes spaces in movie titles.

At the end of the original AMG script, there is:

Code: Select all

      AnalyzePage('http://allmovie.com/cg/avg.dll?p=avg&type=2&srch=' + URLEncode(MovieName));
replace it by:

Code: Select all

       AnalyzePage('http://allmovie.com/cg/avg.dll?p=avg&type=2&srch=' + StringReplace(URLEncode(MovieName), '%20', '+'));
It seems to work fine for AMG script for the movies you listed here.

For the AMG+IMDB, here is the correction. Replace:

Code: Select all

        AnalyzePage2('http://allmovie.com/cg/avg.dll?p=avg&type=2&srch=' + URLEncode(TheMovieTitle));
by:

Code: Select all

        AnalyzePage2('http://allmovie.com/cg/avg.dll?p=avg&type=2&srch=' + StringReplace(URLEncode(TheMovieTitle), '%20', '+'));
but I haven't tested it
Guest

Post by Guest »

Thanks you for the timely fix, antp!!!! :grinking:
Guest

Hmm

Post by Guest »

The fix returns an error. Even if it did work, it'd only fix the allmovie part. The part I'm worried about is the IMDb script not working with the titles above, and numerous others.
Post Reply