How to set naming to automatically move to kids folder based on rating?

All about user-defined episode / movie / file name format expressions
Post Reply
ibcservices
Posts: 10
Joined: 16 Jul 2024, 18:45

How to set naming to automatically move to kids folder based on rating?

Post by ibcservices »

What is the best way to automate a file being sent to a kids folder if it's a kids tv or movie? What params would I base it on? Ratings? Thanks in advance! :)
User avatar
rednoah
The Source
Posts: 23412
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to set naming to automatically move to kids folder based on rating?

Post by rednoah »

ibcservices wrote: 16 Jul 2024, 21:16 What is the best way to automate a file being sent to a kids folder if it's a kids tv or movie? What params would I base it on? Ratings?
FileBot can do anything, but FileBot cannot tell you what you want to do. Can filebot sort between children's/adult shows/movies? will help you get started.


:idea: The PG rating is indeed a good place to start. The first step is to check the value of the {certification} binding for a couple of sample movies (i.e. find the difference between Kids and non-Kids movies) to see what values you might want to allow or disallow. {genres} and {info.keywords} are worth considering as well while you're at it:

Console Output: Select all

$ filebot -list --q "Avatar" --db TheMovieDB --format "{id} | {ny} | {certification} | {genres} | {info.keywords}"
19995 | Avatar (2009) | PG-13 | [Action, Adventure, Fantasy, Science Fiction] | [paraplegic, attachment to nature, culture clash, indigenous, space travel, space colony, tribe, alien planet, distant future, marine, battle, love affair, scientist, nature, native peoples, power relations, meditative, tribal customs, tribal people, tribal chief, deity, spiritual community, 22nd century, save the planet, racial discrimination, soldiers]

e.g.

Format: Select all

X:/Media/{ certification ==~ /G|PG-13/ ? 'Kids ' : null }Movies/{ ~plex }
:idea: Please read the FAQ and How to Request Help.
ibcservices
Posts: 10
Joined: 16 Jul 2024, 18:45

Re: How to set naming to automatically move to kids folder based on rating?

Post by ibcservices »

Wow. Just wow. That CLI is incredible. Thank you for the example, I will have to use that. I was struggling with if statements in my Filebot format script. I saw an article on if statements. Is there an article you would recommend to ensure I understand which symbols mean what? I am unsure what ==~ means. Could you explain that?

I have been manually running Filebot on my macOS and my media is managed on Asustor NAS. What is the best way you would suggest using Filebot? CLI? App on NAS if it exists? App on Mac as usual? All of the above?

Thank you for the info so far! Very helpful!
User avatar
rednoah
The Source
Posts: 23412
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to set naming to automatically move to kids folder based on rating?

Post by rednoah »

ibcservices wrote: 17 Jul 2024, 07:59 I was struggling with if statements in my Filebot format script. I saw an article on if statements. Is there an article you would recommend to ensure I understand which symbols mean what? I am unsure what ==~ means. Could you explain that?
FileBot Groovy Expression Reference Documentation is a starting point. The ==~ match operator checks if the String on the left-hand side matches the regex pattern on the right-hand side. You can use Groovy Reference Manual / Google search / ChatGPT queries / etc to get started with Groovy programming, but the level of depth you will get (as any documentation will likely be for programmers by programmers) is usually far beyond the very *very* basic Groovy programming needed for a typical FileBut custom format. That said, you will find basics in any programming language immensely helpful, since the basic concepts are always the same anyway.




ibcservices wrote: 17 Jul 2024, 07:59 I have been manually running Filebot on my macOS and my media is managed on Asustor NAS. What is the best way you would suggest using Filebot? CLI? App on NAS if it exists? App on Mac as usual?
I'd connect the remote NAS as network drive and the process files like any other local file. This is always be the best choice, unless you can articulate to yourself why this choice does not work for your specific use case.


:idea: Optimizations for Remote File Systems is worth a read.


:idea: A notably limitation of macOS is that Apple does not implement the Unix extensions for SMB and so you cannot create hardlinks remotely. Windows notably does implement the Unix extensions for SMB so if do you need to hardlink files remotely, I'd recommend just using a Windows Desktop if you happen to have one at hand.
:idea: Please read the FAQ and How to Request Help.
ibcservices
Posts: 10
Joined: 16 Jul 2024, 18:45

Re: How to set naming to automatically move to kids folder based on rating?

Post by ibcservices »

Forgive the delay. So I am working on setting up the filebot node on my ASUSTOR NAS. I am having some firewall issues. If I disable my firewall, it works great. But I need to enable my firewall. Do you know which IPs or ports filebot-node docker image uses? If I a get this working, I will use filebot watcher as well.
User avatar
rednoah
The Source
Posts: 23412
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to set naming to automatically move to kids folder based on rating?

Post by rednoah »

You are presumably using docker to run the FileBot Node container. In this case, you yourself configure the public host port. That's the -p option on the command-line but ASUSTOR presumably gives you a WebUI for that. Please post screenshots as we are not familiar with the ASUSTOR WebUI.
:idea: Please read the FAQ and How to Request Help.
Post Reply