Page 1 of 1

Movie Format

Posted: 17 Oct 2015, 17:56
by Deadmano
Hey Reinhard,

Been a very long time since I've posted here, and so pleased to see FileBot is doing better than ever and I can only hope the same goes for you!! :D

I have a quick question, since I haven't updated FileBot in AGES a lot has changed and some of my formats have become obsolete, in a sense...

I used to use the following for my movies:

Code: Select all

X:/Movies/{imdb.genres.take(1).join(' ')}/{n.replaceAll(":", replacement = " -")} ({y})
However I get a BindingException for "imdb". Now I have seen there is now a "Genre" binding and my question is does it still work the same as above?

My ultimate goal is to simply get the genre from IMDB, the first genre, and send the movie to the relevant genre folder.

On a side note, is there anything major that has changed that I should be aware of since the last 2 years or so? I am so out of touch and need to start checking everything, I am sure things can become far more easier to implement now! :mrgreen:

Hoping to hear back from you soon, take care! :)

Re: Movie Format

Posted: 17 Oct 2015, 20:39
by rednoah
IMDB is not supported. Though, OMDB should have similar data, so this is the closest you can get with the latest version:

Code: Select all

{omdb.genres[0]}/{n.replace(":", " -")} ({y})
I'd use the default genre binding though:

Code: Select all

{genre}/{n.replace(":", " -")} ({y})

Re: Movie Format

Posted: 18 Oct 2015, 18:25
by Deadmano
rednoah wrote:IMDB is not supported. Though, OMDB should have similar data, so this is the closest you can get with the latest version:

Code: Select all

{omdb.genres[0]}/{n.replace(":", " -")} ({y})
I'd use the default genre binding though:

Code: Select all

{genre}/{n.replace(":", " -")} ({y})
Thanks for your response, I do appreciate it!! :mrgreen:

What happened to the IMDB API tracker? Did they get taken down again or were you looking for something that is sustainable and won't break at any moment?

EDIT: I seem to get a few errors with my groovy script that you once upon a time help me set up...

This is the error I am getting:

Code: Select all

Processed 129 files
Oct 18, 2015 8:37:10 PM net.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.lang.RuntimeException: java.nio.file.AccessDe
niedException: E:\Movies (Post-Process)\Cleaned\Mystery\The Loft (2014).mkv:net.
filebot.metadata
Oct 18, 2015 8:37:10 PM net.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.lang.RuntimeException: java.nio.file.AccessDe
niedException: E:\Movies (Post-Process)\Cleaned\Adventure\Interstellar (2014).mk
v:net.filebot.metadata
Oct 18, 2015 8:37:10 PM net.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.lang.RuntimeException: java.nio.file.AccessDe
niedException: E:\Movies (Post-Process)\Cleaned\Biography\Selma (2014).mp4:net.f
ilebot.metadata
Done ?(?????)?
And in the groovy script file I have:

Code: Select all

rename(file: args.getFiles{ it.isVideo() }, db:'OMDb', format: '''X:/Movies (Post-Process)/Cleaned/{OMDb.genres.take(1).join(' ')}/{n.replaceAll(':', ' -')} ({y})''')
Any ideas as to what is wrong here? Something that is depreciated again? :)

Re: Movie Format

Posted: 18 Oct 2015, 19:29
by rednoah
Your E: doesn't support Extended Attributes.

For local drives, use NTFS filesystem, instead of FAT.
For network drives, enable EAs in your SMB service.

You can turn off the xattr feature via the -no-xattr flag.