Rename Movies And Sort To Genre Folder

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
shortfatrocker
Posts: 4
Joined: 03 Sep 2016, 23:29

Rename Movies And Sort To Genre Folder

Post by shortfatrocker »

hi there was wondering how i would go about incorporating this function ( Genre sorting) straight in to utorrent. i have googled and waded through a large number of pages that ultimately lead me back here to this very thread. so it would appear that you are the worlds leading expert on filebot genres sort fuction.

here's my set up

i have over 1900 films hand sorted in to 16 genres
Action,adventure,animation,biography comedy comic book......... so on and so forth. now i started this little project of mine a long time before i discovered the wonder that is the modern marvel of filebot so the genres are not really well sorted, they are just where i felt the film belonged at the time.

on top of this i have new films downloading all the time i would like to be able to use a script for utorrent and a cmd/bat file for the existing movies that will MOVE not copy all files in to the correct genre folder. so the script in utorrent has to match the cmd/bat file exactly.

i know its a big ask and you being the all important genre king of the internet and all, but as a fellow filebot fan, no as a fellow internet denizen i implore you!!!! PLEASE help me

by the way it may infact be 11.45 pm right now and i may have had one or two whiskeys in my quest to automative perfection but that does not in anyway diminish the utmost respect and esteem i hold you in.

filebot -script fn:amc --output "F:\Sorted" --action move --conflict skip -non-strict --def artwork=y ut_label=Movie movieFormat="Movies/{genre}/{ny}/{plex.name}"

this almost did what i wanted when ran from utorrent but it did not delete the original files it just copied to the new location and i dont use plex so the end bit seems unnecessary, i use emby through kodi in 4 rooms and on 3 phones ( android)

also i have no idea how to make this work as a command line. i haven't typed a dos command since 1995 so im a bit on the rusty side :-)

so yeah, any help you can give me would be greatly appreciated by me and the wife ( not to mention the 4 kids who would be able to use the media center for its primary function ( keeping them all quiet)


thanks in advance
shortfatrocker
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename Movies And Sort To Genre Folder

Post by rednoah »

1.
--action move may not work on Windows because the filebot process won't be able to move/delete files that are in use by the utorrent process.

Use copy or hardlink and then delete files from utorrent manually when they're finished seeding.


2.
Are there any issues {genre} related? :lol:
:idea: Please read the FAQ and How to Request Help.
shortfatrocker
Posts: 4
Joined: 03 Sep 2016, 23:29

Re: Rename Movies And Sort To Genre Folder

Post by shortfatrocker »

firstly thank you for the quick reply to a rather old thread. i was pulling my hair out last night trying to get this to work but it was having none of it.

1 so --action copy is my best bet then?

2 yeah how to write this in to a bat file to do the same to my entire library i tried pasting the same command in to a notepad and saving as a .bat file but when it runs is hangs for 5 seconds and then just closes without doing anything. is the script written correctly and does it choose the first genre its tagged with in the online db.

sorry for the rambling description last night, few drinks whilst kids were tucked up in bed, i tend to talk/type too much when drunk.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename Movies And Sort To Genre Folder

Post by rednoah »

1.
I'd use --action duplicate which will hardlink if possible and copy if necessary.


2.
Your command looks good, except you're not passing in any input, so it won't be doing much:

Code: Select all

filebot -script fn:amc --output "F:\Sorted" --action move --conflict skip -non-strict --def artwork=y ut_label=Movie movieFormat="Movies/{genre}/{ny}/{plex.name}"
Use CMD to run commands so that you can see the output.


PS: Still not {genre} related. :P
:idea: Please read the FAQ and How to Request Help.
shortfatrocker
Posts: 4
Joined: 03 Sep 2016, 23:29

Re: Rename Movies And Sort To Genre Folder

Post by shortfatrocker »

thank you, and whilst it may not appear to be a genre issue, for me it is specifically a genre issue, as what now stands at 1941 films takes up a significant amount of drive space. i wanted them sorted in to correct genres so i could then place specific genre folders on individual computers where they will be seen, as opposed to having them all in one folder and everyone having access to everything i want the kids to have access to family films/ animation the living room tv will have access to the majority of the library and in the main bedroom will be things i deem not to be appropriate to the younger members of the household. plus i can restrict access to genre per android device. so again thank you for your help and as soon as i get paid on tuesday next week. i will be donating you the cost of a beer.
User avatar
rednoah
The Source
Posts: 23924
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename Movies And Sort To Genre Folder

Post by rednoah »

:idea: Beware that {genre} is just the first out of many {genres} that a movie may belong to and not necessarily the one you think it should belong to.
:idea: Please read the FAQ and How to Request Help.
shortfatrocker
Posts: 4
Joined: 03 Sep 2016, 23:29

Re: Rename Movies And Sort To Genre Folder

Post by shortfatrocker »

cheers again script god!!! you rock, your program is amazing.
Post Reply