Jump to content



Photo

IMDB & Poster Grabber v1.3


  • Please log in to reply
23 replies to this topic

#1 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 13 August 2008 - 02:21 AM

IMDB & Poster Grabber v1.3
No longer an active project, but source might be useful

Posted Image

IMDB & Poster Grabber scans your movie folders recursively for video files and takes the foldername, filters the folder through a file containing \"bad words\" such as commonly used \"DVDRip\" or \"XviD\". Its very easy to add your own \"bad words\" to the filter, just add it to the text file in Scriptdir. Its fully automated so there\'s no need for user input during the scan, If selected it goes on and downloads the information from IMDB and stores it in the movie folder as \"imdbinfo.txt\" also optionally it downloads the poster from \"impawards\" and stores it as \"folder.jpg\". If imdbinfo.txt and/or Folder.jpg already exist it skips that movie, it also handles CD1/CD2 folders inside the actual movie folder(movie name). I plan on doing further development on it but need some testing and feedback.


Important to note is:
The Grabber handles opening directly the movie folder, for example \"C:\\movie\\Bee.Movie.DVDRip.XviD-DiAMOND\\\" in SINGLE mode, else scan \"C:\\movie\\\" for MULTIi(Batch) mode.
It does not matter if the folders contain \"CD1\" and \"CD2\" folders.

  • Make sure your video file is inside a folder with the movie name
  • Dont open CD1 or CD2 folders inside the movie folder(no need)
  • Add 1 Bad word per line in filterwords.txt, you\'ll see how in the file
I\'ll supply both the executable as well as the source for the doubters/feedbackers :P

Credit: also goes out to Danwilli for his ImdblookUp.au3 script which helped me a lot.

ChangeLog:

v1.3 :
Fixed a couple of bugs, for example if you already had folder.jpg and choose to download the XL it was ignored.
Fixed IMDB link parsing for impawards(regexp).
Added handling of errors for example if movie wasnt found on imdb.
Added option of Popular/Exact imdb title matching.
Added when impawards.com dont have the poster, it tries to get the slightly smaller one from Motechposters.com.
Added to the Filterwords.txt.
Added support for .mpg/.mpeg/.wmv
Added ImdbLink to the imdbinfo file output.
Changed code to make it more efficent should be slighty faster now.
Changed file extension of imdbinfo, from .txt to .nfo.
--------------------------
v1.2 :
Added support for .mkv/.mp4/.ts
Added to Filterwords.txt to support words used in HD releases
--------------------------
v1.1 :
Added an option to download the extra large Posters from Impawards.com

Attached File  source.rar   42.2K   1592 downloadsAll included for self compile - v1.3[/size]



Edited by Datenshi, 18 July 2009 - 04:48 AM.






#2 jpam

jpam

    Mass Spammer!

  • Active Members
  • PipPipPipPipPipPip
  • 439 posts

Posted 13 August 2008 - 07:12 AM

Great program !
i will use this a lot ,

Thanks for sharing :P

#3 jpam

jpam

    Mass Spammer!

  • Active Members
  • PipPipPipPipPipPip
  • 439 posts

Posted 13 August 2008 - 07:15 AM

got error :P

CODE
>Running:(3.2.11.0):P:\Program Files\AutoIt3\beta\autoit3.exe "E:\IMDB_Poster_Grabber.au3"
E:\IMDB_Poster_Grabber.au3 (305) : ==> Subscript used with non-Array variable.:
Return $link[0]
Return $link^ ERROR
->09:15:22 AutoIT3.exe ended.rc:1
>Exit code: 1 Time: 295.603

Edited by jpam, 13 August 2008 - 07:19 AM.


#4 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 13 August 2008 - 12:52 PM

got error :P

CODE
>Running:(3.2.11.0):P:\Program Files\AutoIt3\beta\autoit3.exe "E:\IMDB_Poster_Grabber.au3"
E:\IMDB_Poster_Grabber.au3 (305) : ==> Subscript used with non-Array variable.:
Return $link[0]
Return $link^ ERROR
->09:15:22 AutoIT3.exe ended.rc:1
>Exit code: 1 Time: 295.603

Something went wrong during the IMDB link grabbing, Did you do a Multi scan or Single? if possible i would like the foldername which you where trying to grab so that i can try it myself

#5 jpam

jpam

    Mass Spammer!

  • Active Members
  • PipPipPipPipPipPip
  • 439 posts

Posted 13 August 2008 - 02:02 PM

i had 1 dir containing multiple dirs with movies
when i seperate them , the program does not crash anymore

#6 NeoFoX

NeoFoX

    Adventurer

  • Active Members
  • PipPip
  • 141 posts

Posted 13 August 2008 - 02:51 PM

Nice program... It worked for me and some movies.

It gave a little error on movies with a ' in it.. like Fool's Gold etc.
Perhaps you could look @ that.

And perhaps you could put in the extra function for downloading the BIG poster and not just the small one! And/or download ALL the posters which the movie has?!

Nice work, and keep it on! Defenitly gonna use this one...

*edit: How to do this... and for a little example, you could look @ Big_daddys cd/dvd cover searcher: CDcovers.cc
Greetz,

Neo

Edited by NeoFoX, 13 August 2008 - 02:57 PM.

--- The Neo and Only --- --Projects---Image to Text converterText to ASCII converter


#7 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 13 August 2008 - 05:00 PM

Nice program... It worked for me and some movies.

It gave a little error on movies with a ' in it.. like Fool's Gold etc.
Perhaps you could look @ that.

And perhaps you could put in the extra function for downloading the BIG poster and not just the small one! And/or download ALL the posters which the movie has?!

Nice work, and keep it on! Defenitly gonna use this one...

*edit: How to do this... and for a little example, you could look @ Big_daddys cd/dvd cover searcher: CDcovers.cc
Greetz,

Neo


I'm glad you liked it, I will look into the Fool's Gold problem too. Im not sure though what you mean with "big posters", the current poster is the biggest one as far as i know on ImpAwards.com, that's where it downloads it. Tell me if im wrong but did you mean the big Front+Back covers which you can get at CDcovers.cc ? Cause i searched that site for Fool's Gold and ended up with a huge picture with Front+Back cover. Big_daddys cd/dvd cover searcher didn't really work that well for me, doesn't surprise me though since it hasn't been updated since late 2007 and CDcovers.cc probably changed their design since then.

I haven't had the time yet but from the looks of it i would think it'll take quite some code to parse Cdcovers.cc to get that front+back cover, also..it might be needed to manually select options for each movie as in Big_daddys software. And that i would think isn't desirable to the end user since part of this scripts beauty is that its fully automated after the initial selection of options.

Ill also look into the option of downloading all the posters at Impawards.com.

#8 NeoFoX

NeoFoX

    Adventurer

  • Active Members
  • PipPip
  • 141 posts

Posted 13 August 2008 - 05:10 PM

Well... I didn't meand you had to use cdcovers.cc :P but something like IT: so you can use which poster (in big_daddy's: front/back/cd1/cd2....) so you can chose which poster you want to dowload.

And the option to download al the pictures would be nice.

The point about the big-posters, you can't see the difference between these two: THIS one... you download and the one which is this one THE BIG ONE
The only difference is the .jpg and the _xlg.jpg :P

Greetz,

Neo

--- The Neo and Only --- --Projects---Image to Text converterText to ASCII converter


#9 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 13 August 2008 - 10:31 PM

I was unable to recreate the ' problem in Fool's Gold, tried "Fool's.Gold.REPACK.DVDRip.XviD-DiAMOND", "Fool's Gold" and "Fool's Gold (2008)" they all worked for me. There is a StringReplace for that character in the code so as to not break the imdbsearch. Very Odd

#10 Garp99HasSpoken

Garp99HasSpoken

    Adventurer

  • Active Members
  • PipPip
  • 116 posts

Posted 14 August 2008 - 06:31 AM

I understand that you wrote this script to satisfy *your* needs, but I was wondering
if you ever gave it some thought to what happens when you have ALL your movies in a single directory?

Instead of creating a folder.jpg in each directory, would it be difficult to have an image file with the movie?
So something like "Jumper (2007).mkv" would have a poster file "Jumper (2007).jpg".

Is it true you only search for .avi files? Could it also search for .mpg, .mkv, .ts, .m2ts, .mp4 files?

#11 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 14 August 2008 - 02:58 PM

I understand that you wrote this script to satisfy *your* needs, but I was wondering
if you ever gave it some thought to what happens when you have ALL your movies in a single directory?

Instead of creating a folder.jpg in each directory, would it be difficult to have an image file with the movie?
So something like "Jumper (2007).mkv" would have a poster file "Jumper (2007).jpg".

Is it true you only search for .avi files? Could it also search for .mpg, .mkv, .ts, .m2ts, .mp4 files?


You bring up good points, and yes i have thought about what would happen if i allowed for scanning folders containing multiple .avi files for different movies. And the problem with that is that most people dont name these files correctly, for example as the script works now it takes the actual movie name from the folder it resides in, that eliminates in my opinion the annoying task of having to rename every single avi file to the movie name. Also original scene released movies all have somewhat cryptic .avi filenames.

I have been thinking of allowing the end user to choose the output filename for the Poster, I will probably add the choice of "folder.jpg", "themoviename.jpg" or free input.

It is true that atm it only scans for .avi files, i plan on supporting more file containers in the future. Its still pretty early in this scripts development :P

I would like to add that the main purpose of this program is an efficient automatic way for getting the poster and imdb information. And its developed mainly towards original scene released warez. There are many tools out there which handles properly named folders and filenames without a problem, but that requires people to rename their folders and/or files correctly if they want it automated.

#12 Andreik

Andreik

    Bishop

  • Active Members
  • PipPipPipPipPipPip
  • 2,498 posts

Posted 14 August 2008 - 03:06 PM

Nice work. Now I have posters for my movies. :P
When the words fail... music speaks

#13 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 21 August 2008 - 03:10 PM

Nice work. Now I have posters for my movies. ;)

thank you :D

Im currently working on a different project but will soon finish and go back developing this tool. hopefully add some new cool features

#14 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 30 August 2008 - 06:19 AM

Yo people, gimmi more ideas im all out =)

#15 jpam

jpam

    Mass Spammer!

  • Active Members
  • PipPipPipPipPipPip
  • 439 posts

Posted 31 August 2008 - 09:35 AM

Yo people, gimmi more ideas im all out =)


I have one ;)

add subtitle download support !

#16 danwilli

danwilli

    Unbalanced

  • Active Members
  • PipPipPipPipPipPip
  • 1,710 posts

Posted 01 September 2008 - 03:07 AM

Very nice.
No credit for using my IMDB functions?
AutoIt3/UDFs3 Online HelpUDF CollectionAutoIt SnippetsAutoIt 1-2-3 (For Learning)DllCallTCP Examples/Help------------------------------------------------------------Want a script written? Want to get paid to write one?Rent-A-Coder

#17 Datenshi

Datenshi

    Prodigy

  • Active Members
  • PipPipPip
  • 179 posts

Posted 01 September 2008 - 04:46 AM

Very nice.
No credit for using my IMDB functions?


Oh i could have sworn i wrote a credit, atleast i ment to ;) sorry about that it will be added asap

#18 danwilli

danwilli

    Unbalanced

  • Active Members
  • PipPipPipPipPipPip
  • 1,710 posts

Posted 01 September 2008 - 05:30 AM

No problem, good work with the script, it looks good.
AutoIt3/UDFs3 Online HelpUDF CollectionAutoIt SnippetsAutoIt 1-2-3 (For Learning)DllCallTCP Examples/Help------------------------------------------------------------Want a script written? Want to get paid to write one?Rent-A-Coder

#19 jpam

jpam

    Mass Spammer!

  • Active Members
  • PipPipPipPipPipPip
  • 439 posts

Posted 24 September 2008 - 08:17 PM

Yo people, gimmi more ideas im all out =)


Another request :)

support for xbmc .nfo files !

http://xbmc.org/wiki/?title=Import_-_Expor...Video_nfo_Files

ps; Great program !

#20 sxxxe83

sxxxe83

    Seeker

  • New Members
  • 1 posts

Posted 06 October 2008 - 06:02 PM

Yo people, gimmi more ideas im all out =)


Lookin good.

What about an folder rename feature like this program have: "VrokSub"

sXe




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users