I'm trying to write a script that will take a movies position on the IMDB Top 250 list if the movie is on it. This is my first attempt at writing a script though and I can't seem to get it to work.
I've used the start of the IMDB (Fastest) script to reset all the variables and get the directlink from CUSTOM8. I've then written my own bit of script to try and read the Top 250 information if the page has it but it's not working. Any ideas where i'm going wrong?
Maybe I spoke a little too soon. It didn't quite work how I wanted it to. The script imported the data fine, but XMM was unable to sort it into numerical order because of the "Top 250: #" tag before each number.
I added the following to the #CUSTOM1# and #DELETETAGS# sections to remove the words and leave me with just the number.
This removed the "Top 250: #" text but XMM was still unable to sort the data into numerical order due to the mixture of 1, 2 and 3 digit numbers.
I added a couple of #PUT# and #IF# statements to pad the numbers out to 3 digits. XMM can now sort the data numerically based on IMDB top 250 position.
Here is the altered script for anyone who wants it.