Page 1 of 1

Sort in folder based on genre?

Posted: 17 Aug 2017, 15:24
by vballrican
Hello, is there a way to sort my movie folders into parent folders based on genre?

Thanks,

vballrican

Re: Sort in folder based on genre?

Posted: 17 Aug 2017, 15:32
by rednoah
Yes, just use the {genre} in your destination path format.

e.g.

Code: Select all

/path/to/Movies/{genre}/{plex.tail}

Re: Sort in folder based on genre?

Posted: 17 Aug 2017, 15:45
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?

Re: Sort in folder based on genre?

Posted: 17 Aug 2017, 16:22
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.

Re: Sort in folder based on genre?

Posted: 17 Aug 2017, 16:33
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

Re: Sort in folder based on genre?

Posted: 17 Aug 2017, 16:38
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

Re: Sort in folder based on genre?

Posted: 17 Aug 2017, 16:48
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

Re: Sort in folder based on genre?

Posted: 18 Aug 2017, 02:27
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.

Re: Sort in folder based on genre?

Posted: 21 Aug 2017, 15:39
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...

Re: Sort in folder based on genre?

Posted: 21 Aug 2017, 17:45
by kim
can't you just change:
# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=true
to
-DuseExtendedFileAttributes=false
in the ini file ?

Re: Sort in folder based on genre?

Posted: 21 Aug 2017, 17:47
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.