[SOLVED] imdb_movie.pas add from imdb code

How to make Movienizer support new sites. Customize Movienizer.
Post Reply
typeleven
Extra
Posts: 25
Joined: Sat Feb 21, 2009 2:56 am

[SOLVED] imdb_movie.pas add from imdb code

Post by typeleven » Sun May 17, 2009 5:21 pm

Could someone please trim the imdb_movie.pas file so that the MovieName is put right into the movie url? for example I want to be able to "add a movie from a file", put in 0407887 in for the title and have it go straight to downloading the movie from http://www.imdb.com/title/tt0407887/.

I keep breaking the code when I try and do this :(
Last edited by typeleven on Wed May 20, 2009 10:01 pm, edited 1 time in total.

User avatar
JeF
Black Belt Squirrel
Posts: 1175
Joined: Fri Feb 20, 2009 3:34 pm
Location: France

Re: imdb_movie.pas add from imdb code

Post by JeF » Sun May 17, 2009 8:50 pm

Hello,

I've modified imdb script (last version released 28 -> 29) : I think this will do the job. ;)

If anyone interested in, all script modifications are tagged 'JeF'

JeF

2009/05/19 : script file removed : see new version below...
Last edited by JeF on Tue May 19, 2009 4:57 pm, edited 1 time in total.

typeleven
Extra
Posts: 25
Joined: Sat Feb 21, 2009 2:56 am

Re: imdb_movie.pas add from imdb code

Post by typeleven » Mon May 18, 2009 7:20 pm

Thats awesome! Thank you!

I just thought of one more thing that I hope would be easy enough... can the script first check if the title starts with tt and if so have it crop the title up to the first space and use that as the URL?

for example...

"tt0796366 Star Trek (2009).avi"

the script wold see tt then cut everyrhing off after the first space and get:

tt0796366

then use that for the url.

Id like to just be able to paste the imdb number into all the file names of my avi's without completely replacing the filename.

User avatar
JeF
Black Belt Squirrel
Posts: 1175
Joined: Fri Feb 20, 2009 3:34 pm
Location: France

Re: imdb_movie.pas add from imdb code

Post by JeF » Tue May 19, 2009 4:56 pm

Hello,

Well, added a few things to the script so it will now work these ways :
- You can enter only the imdb movie code (like 0796366)
- You can entre a title (or file name) containing the pattern tt9999999 (tt + 7 digits at least) everywhere in the title
NB: Letters case doesn't matter but there must be at least 7 consecutive digits following tt without a space (or anything else)

So, here are some examples of what should work :

0796366
tt0796366
tT0796366
Tt0796366
TT0796366
tt0796366 Star Trek (2009).avi
tT0796366 Star Trek (2009)
tT0796366 - Star Trek (2009)
Star Trek (2009) - tT0796366
Star Trek (2009) Tt0796366
Star Trek tT0796366 (2009)
Star TrekTT0796366(2009)

Have fun with Movienizer :)
(if this works fine, typeleven, please edit the topic title to add [SOLVED] tag at the beginning)
JeF

Script File can be downloaded from this topic : The most recent versions of scripts

typeleven
Extra
Posts: 25
Joined: Sat Feb 21, 2009 2:56 am

Re: imdb_movie.pas add from imdb code [SOLVED]

Post by typeleven » Wed May 20, 2009 10:02 pm

Thank you! you guys rock!

Ali Baba
Extra
Posts: 12
Joined: Sun May 17, 2009 9:16 pm

Re: imdb_movie.pas add from imdb code [SOLVED]

Post by Ali Baba » Thu May 21, 2009 12:40 am

Hello, I have tried with 0796366 and with tt0796366 and I get no results at all, just a blank page (see attached pic).
I have installed the latest script (using movienizer 2.0) and tried with add by title and add from a file.
Am I missing something? Thanks.
Attachments
Snap1.jpg
Snap1.jpg (65.68 KiB) Viewed 10713 times

typeleven
Extra
Posts: 25
Joined: Sat Feb 21, 2009 2:56 am

Re: imdb_movie.pas add from imdb code [SOLVED]

Post by typeleven » Thu May 21, 2009 4:56 am

are you using the portable version of the program?

Ali Baba
Extra
Posts: 12
Joined: Sun May 17, 2009 9:16 pm

Re: imdb_movie.pas add from imdb code [SOLVED]

Post by Ali Baba » Thu May 21, 2009 6:11 am

No, I am using the standard version which I installed over the previous 1.9.

User avatar
JeF
Black Belt Squirrel
Posts: 1175
Joined: Fri Feb 20, 2009 3:34 pm
Location: France

Re: imdb_movie.pas add from imdb code [SOLVED]

Post by JeF » Thu May 21, 2009 5:22 pm

Hello Ali Baba,

Please make sure :
a) You've downloaded the latest version (the one of my post from May 19th 2009 17:56)
b) You've put it in the right folder : script directory
and NOT in "scripts" folder under Movienizer install folder (this scripts folder is used by portable version only)...

If it's installed this way, it should work for everyone.
JeF

Ali Baba
Extra
Posts: 12
Joined: Sun May 17, 2009 9:16 pm

Re: imdb_movie.pas add from imdb code [SOLVED]

Post by Ali Baba » Thu May 21, 2009 10:51 pm

Hello JeF,

I have the latest version version of the script and I have it in the right script directory folder.
I even downloaded and installed it again. Still not working with with add by title and add from a file.
Thanks for your help.

Post Reply