How to rename movies with imdb-rating?

Any questions? Need some help?
Post Reply
ploppel
Posts: 2
Joined: 10 Jan 2012, 10:10

How to rename movies with imdb-rating?

Post by ploppel »

Hello,
first I want to thank you for sharing this great programm!

I am trying to rename a few movies with the imdb-rating, but the "{imdb}" command just outputs a really high number e.g.: 1542344
But what I want is a rating between 0 - 9.9
Could you please help me how to get this right?

Ploppel
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

{imdb} is imdb id. Rating is not a default binding, but maybe this works:

{net.sourceforge.filebot.WebServices.TMDb.getMovieInfo(movie, Locale.ENGLISH).rating}

Wrote that from the top of my head, might have syntax errors, might not work at all. ;)
:idea: Please read the FAQ and How to Request Help.
ploppel
Posts: 2
Joined: 10 Jan 2012, 10:10

Re: How to rename movies with imdb-rating?

Post by ploppel »

Works perfectly! Thank you :)
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

I tried to use this bit it gets the wrong info from the website.
i think its getting de numbers of users that voted and not the rating.
Does anybody know what the correct way is?
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

For some strange reason it work now so that is great. The only thing i am wondering is if its possible to also include the genres in de filenames from imdb?

ideal would be this result (example): Avatar (2010 Ad,An,Dr,Ac) (8.2)

Is that possible?
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

I think there should be a genres (or just genre?) property.

Maybe like ….genres*[0..1].join(", ")

Or something like that. Again, I don't have my laptop with me so this OS from the top of my head.
:idea: Please read the FAQ and How to Request Help.
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

Thannk you,

i will give it a try!...
Since your so kind to answer all my questions. Can you maybe tell me why Filebot doesn't recognize the folders (dvd & BL folders) and my ISO files?
Because nearly half of my collections are folders or iso files and is would be terrific if these files also could be renamed automatic.
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

The Genres part works...

This is my line:

{n} - {y} - {net.sourceforge.filebot.WebServices.TMDb.getMovieInfo(movie, Locale.ENGLISH).genres} - {net.sourceforge.filebot.WebServices.TMDb.getMovieInfo(movie, Locale.ENGLISH).rating}

Which creates:

In Time - 2011 - [Action, Thriller, Science Fiction] - 7.4

How should i format this to get:

In Time (2011 Ac,Th,Sc) (7.4)

Thanks in advanced
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

No DVD/BL support cause I dont have any of those. If people provide test data (file paths) and help with testing we can talk.

As for genres, try
genres.collect{ it[0..1] }.join(",")
:idea: Please read the FAQ and How to Request Help.
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

The genre part works like a charm!!
No i only need a solution for auto renaming my dvd/BL folders and ISO files!
So if anyone had knows how to do that! please tell me!
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

Post me examples of folder/filename layout. Then I can think about how to support DVD folder renaming.
:idea: Please read the FAQ and How to Request Help.
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

What is have is:

A folder named Movies

Then i have a buch of movies in that folder in different formats

I've got .avi, .mkv, .mpg files etc. These rename perfectly

But is also got folder with dvd files (for axample the folder: In time and in there are 2 folders called VIDEO_TS and AUDIO_TS and teh VIDEO_TS folder containes severla files wich make the movie.
But i would like to use filebot to rename te first folder (in time).
This also counts for the Blue Ray disk folders and The .iso files
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

Yep, I get ISO files. But I do t have DVD/BL folders. What is the filename structure of DVD folders? Whats that of BL folders? BL don't have VIDEO/AUDIO TS right?
:idea: Please read the FAQ and How to Request Help.
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

I took a screen shot of the folders
flipmoo
Posts: 9
Joined: 13 Jan 2012, 12:49

Re: How to rename movies with imdb-rating?

Post by flipmoo »

No solution?
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

Won't be able to work on FileBot till mid-Feb. then I'll implement this.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to rename movies with imdb-rating?

Post by rednoah »

Added a special case for handling disk folders. You can try the latest beta and check it out.
:idea: Please read the FAQ and How to Request Help.
Post Reply