Help with moving movies and sorting by Genre

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
elpirate1
Posts: 3
Joined: 13 Feb 2017, 11:22

Help with moving movies and sorting by Genre

Post by elpirate1 »

Hi there.

Apologies if I am posting in the wrong place but I'm new here (Be nice!)

I am looking to set up FileBot to move and rename movies from a folder another specific one.

I would like it to move each movie based on its Genre or even rating (II think Genre would be most suitable)

I have read about scripts that can do this, however, I'm not interested in creating multiple Genre folders, I would like to nominate the Genres that go to a particular folder.

Basically, I will have 2 Folders, 1 will contain Kids / Family Movies and the other will have the rest of my movies.

So I basically need a script that I can enter the Genre's in to so that FileBot renames the movies as per my preferences and them moves them to either the Kids folder or the main movie folder.

I will also need a list of Genre's that are available on TMDb so that I can cover all of the ones in the script to ensure the relevant movies end up in the relevant folders (kids / family or standard)

Ive never used FileBot before (I'm a very fast learner though) and I currently have all my TV Shows working great with SickRage.

I'm aware of and have Couch Potato, however, the options are pretty limited there and I cant see myself using it to automate the download process of movies (I'm happy to select the movies for download manually- I just need auto renaming and sorting.)

So to recap, I need to identify a script that will:

Rename Movies that exist in a particular downloads folder (rename with movie title, year and quality)

Move these Movies to a nominated folder (Kids & Family Movies Folder & Movies Folder) based on their Genre

Delete RELEVANT leftover files form the move (Would be great if I could have it leave other files that may be in the downloads folder like programs or TV Episodes that are yet to be moved with SIckRage)

I intend to run these scripts on my QNAP NAS.

Also, if someone could advise me of the best program or even file bot script to move non video files (programs, documents) That would also be great!

I'm basically wanting to have all downloads arrive in 1 folder, then have SickRage handle the TV Shows, File Bot handle the movies as described above and another program, or even FileBot handle all other items I download (programs, documents, music etc)

I really appreciate any help that can be given on this.

Thanks heaps in advance.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with moving movies and sorting by Genre

Post by rednoah »

1.
You'll want to use the amc script which covers most of what you're trying to do.


2.
By what rules would you differentiate Kids from non-Kids movies?

This use case does come up every now and then and there are many possible solutions.

Checking the {genres} is a good start. I'd probably use {certification} though, or some combination of those two.

A custom formats give you complete control over the destination path. Folder structure, file name, etc.
:idea: Please read the FAQ and How to Request Help.
elpirate1
Posts: 3
Joined: 13 Feb 2017, 11:22

Re: Help with moving movies and sorting by Genre

Post by elpirate1 »

Thanks RedNoah for your prompt reply.

Honestly I'm unsure of the specific Genres to identify so I was hoping to browse a list from TMDb and select what I deem as the relevant ones from there.

What do you mean by certification?

Ive read through the amc script thread and it seems pretty straight forward.

I will obviously need to add the sort options now, remembering that I already have SickRage sorting out my TV shows and I need FileBot to move the movies and other downloads exclusively if possible.

I have transmission so auto execution of the script on torrent completion is no problems.

Where to from here?

I really appreciate your help so far.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with moving movies and sorting by Genre

Post by rednoah »

1.
Start with copy & pasting the amc call from the manual and then add options (if necessary) to make it suit your needs.


2.
Open the Format Editor and play with custom formats.

e.g.

Code: Select all

{genres}

Code: Select all

{certification}

Code: Select all

{certification == 'PG-13' ? 'Kids' : 'Adult'}

Code: Select all

{'Adventure' in genres ? 'Kids' : 'Adult'}
Image

Once you understand how the format works, and have a working prototype, then having the amc script use your custom format is easy.
:idea: Please read the FAQ and How to Request Help.
elpirate1
Posts: 3
Joined: 13 Feb 2017, 11:22

Re: Help with moving movies and sorting by Genre

Post by elpirate1 »

Its been a while since I attempted this but I have recently got back in to it.

I cant even get the AMC script working.

I have tested it in cmd prompt and it does'nt work, I get this:

Code: Select all

Locking C:\Users\astr1\AppData\Roaming\FileBot\logs\amc.log
FileNotFoundException: http://www.filebot.net/scripts/amc.groovy
java.io.FileNotFoundException: http://www.filebot.net/scripts/amc.groovy
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
        at java.net.URLConnection.getHeaderFieldLong(Unknown Source)
        at java.net.URLConnection.getContentLengthLong(Unknown Source)
        at java.net.URLConnection.getContentLength(Unknown Source)
        at net.sourceforge.filebot.web.WebRequest.fetch(Unknown Source)
        at net.sourceforge.filebot.web.WebRequest.fetchIfModified(Unknown Source)
        at net.sourceforge.filebot.web.CachedResource.fetchData(Unknown Source)
        at net.sourceforge.filebot.web.CachedResource.fetch(Unknown Source)
        at net.sourceforge.filebot.web.CachedResource.get(Unknown Source)
        at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(Unknown Source)
        at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
        at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (┬░_┬░)
Launch4j: Failed to run the given command.
The above was example only, I also tried changing the paths and got the same error.

I need to be able to have the AMC script working on both a windows machine & a QNAP QTS (linux) NAS firstly and the plan was to then and more sort option like moving to particular folders based on genres / classifications.

I cant wrap my head around it all I'm afraid.

Usually I'm O) with this stuff but I'm struggling to follow the AMC guide.

Its like I'm missing something or don't have correct credentials / permissions as from what I can see, the cmd line given calls up a script stored somewhere else (github?) which then does the work as far as renaming etc.

Any help?

Apologies for seeming to be a bit nooobish :)
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with moving movies and sorting by Genre

Post by rednoah »

Looks like you're using a very outdated version (maybe from 2014/15) of FileBot that no longer works.
:idea: Please read the FAQ and How to Request Help.
Post Reply