Sort in folder based on genre?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Sort in folder based on genre?

Post by vballrican »

Hello, is there a way to sort my movie folders into parent folders based on genre?

Thanks,

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

Re: Sort in folder based on genre?

Post by rednoah »

Yes, just use the {genre} in your destination path format.

e.g.

Code: Select all

/path/to/Movies/{genre}/{plex.tail}
:idea: Please read the FAQ and How to Request Help.
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Sort in folder based on genre?

Post by vballrican »

Ahh.. thanks for the prompt response! :)

Update: Ok, i did this

Code: Select all

filebot -rename -r E:/Test --output "E:/Test Movies/{genre}/" --format "{n} ({y})/{n} ({y}) - {[certification, genre]}" --db TheMovieDB --action copy --def subtitles=en --def artwork=y
and ended up with a dir called {genre}

any ideas?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort in folder based on genre?

Post by rednoah »

--output expects a folder path while --format expects a format expression:

Code: Select all

--output "E:/Test Movies" --format "{genre}/{n} ({y})/{n} ({y}) - {[certification, genre]}"

:!: You seem to be mixing amc script options into your command-line call. Note that they won't have any effect.
:idea: Please read the FAQ and How to Request Help.
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Sort in folder based on genre?

Post by vballrican »

rednoah wrote: 17 Aug 2017, 16:22 --output expects a folder path while --format expects a format expression:

Code: Select all

--output "E:/Test Movies" --format "{genre}/{n} ({y})/{n} ({y}) - {[certification, genre]}"

:!: You seem to be mixing amc script options into your command-line call. Note that they won't have any effect.
Ok.. So how can i move/copy movies already renamed into genre folders? Using command-line or amc? I'm so confused... sorry
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Sort in folder based on genre?

Post by vballrican »

Ok. so i did

Code: Select all

--format "{genre}/{n} ({y})/{n} ({y}) - {[certification, genre]}"
and it move the movie over to a subdir called Action which is the right genre but i also get this:

Failed to set xattr: E:\Test Movies\Action\Big Game (2014)\Big Game (2014) - [PG-13, Action].mp4:net.filebot.metadata
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Sort in folder based on genre?

Post by vballrican »

PS: I fixed it.. but i still get: Failed to set xattr: E:\Test Movies\Action\Big Game (2014) - [PG-13, Action]\Big Game (2014).mp4:net.filebot.metadata
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort in folder based on genre?

Post by rednoah »

That's just a warning that your E drive filesystem doesn't support extended attributes:
https://en.wikipedia.org/wiki/Extended_file_attributes

You won't be able to fix that unless you use NTFS or enable EAs on your SMB share if it's a network drive.
:idea: Please read the FAQ and How to Request Help.
vballrican
Donor
Posts: 80
Joined: 21 Dec 2014, 01:29

Re: Sort in folder based on genre?

Post by vballrican »

rednoah wrote: 18 Aug 2017, 02:27 That's just a warning that your E drive filesystem doesn't support extended attributes:
https://en.wikipedia.org/wiki/Extended_file_attributes

You won't be able to fix that unless you use NTFS or enable EAs on your SMB share if it's a network drive.
Hmm.. it is NTFS. I wouldn't be able to have such large files like 10GB. :|

Thanks, I can live with it...
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Sort in folder based on genre?

Post by kim »

can't you just change:
# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=true
to
-DuseExtendedFileAttributes=false
in the ini file ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort in folder based on genre?

Post by rednoah »

That would just disable xattr, same as setting -no-xattr on the command-line. It would not solve the underlying issue of xattr not being set, and just disable the warnings.
:idea: Please read the FAQ and How to Request Help.
Post Reply