Search found 18 matches

by valiantslack
14 Oct 2025, 16:37
Forum: Scripting and Automation
Topic: Clean function not removing empty folders
Replies: 4
Views: 13088

Re: Clean function not removing empty folders

Got it, thanks for the assistance!
by valiantslack
14 Oct 2025, 14:52
Forum: Scripting and Automation
Topic: Clean function not removing empty folders
Replies: 4
Views: 13088

Re: Clean function not removing empty folders

No, my intention is to delete any empty season/movie folders after processing that are in the input folder. Prior to having to use --def ut_dir this was the case.

I added --def ut_kind=multi though I couldn't find what this does exactly.

Note that --def clean=y does delete *.log, *.txt, *.ps1 ...
by valiantslack
13 Oct 2025, 21:23
Forum: Scripting and Automation
Topic: Clean function not removing empty folders
Replies: 4
Views: 13088

Clean function not removing empty folders

For some time now the clean=y function has not been working for me. I believe this started when I had to update my script to use the ut_dir parameter.
The log file doesn't show the empty folders that it used to delete. One of the folders does have a hidden file that is 1MB, though I'm sure it used ...
by valiantslack
26 Jul 2023, 15:23
Forum: Help and Support
Topic: AMC Script no longer moving shows based on rating
Replies: 4
Views: 1954

Re: AMC Script no longer moving shows based on rating

Udpate: I added "G" and "TV-G" and it now seems to move them to the correct place.
seriesFormat=N:/Media/TV Shows/{ any{ certification ==~ /G|TV-G|TV-Y|TV-Y7/ ? 'Kids TV' : 'Adults' }{ 'Adults'} }/{plex.tail}

Also added the below in my @ file, but it seems to be redundant.
--def
seriesDB ...
by valiantslack
26 Jul 2023, 15:12
Forum: Help and Support
Topic: AMC Script no longer moving shows based on rating
Replies: 4
Views: 1954

Re: AMC Script no longer moving shows based on rating

Adding {certification} to the format returns the show TOTS as G (TheMovieDB Episode mode) However, TheMovieDB website shows the show TOTS as TV-Y, not G
T:/TV Shows/Kids/ {n}/{'Season '+s}/{n} - {s00e00} - {t} - {certification}


FileBot 5.0.1 (r9665)
JNA Native: 6.1.4
MediaInfo: 22.12
7-Zip ...
by valiantslack
25 Jul 2023, 22:27
Forum: Help and Support
Topic: AMC Script no longer moving shows based on rating
Replies: 4
Views: 1954

AMC Script no longer moving shows based on rating

I have an amc script where it would move kids shows to a specific folder based on rating (TV-Y & TV-Y7). For some reason some shows rated as TV-Y are getting moved into the adult tv shows section. Any ideas why this is the case?

Fore example the show T.O.T.S shows as TV-Y in TheMovieDB.

Script ...
by valiantslack
20 Jun 2023, 18:23
Forum: Help and Support
Topic: Invalid syntax via Task Scheduler - No issues when ran manually
Replies: 4
Views: 1922

Re: Invalid syntax via Task Scheduler - No issues when ran manually

rednoah wrote: 20 Jun 2023, 17:45 You'll really want to use @files though. That'll solve all future problems as well. Passing complex arguments inline on the command-line inevitably leads to headaches. :lol:
I'll look into doing that next. Thanks for the tip!
by valiantslack
20 Jun 2023, 17:40
Forum: Help and Support
Topic: Invalid syntax via Task Scheduler - No issues when ran manually
Replies: 4
Views: 1922

Re: Invalid syntax via Task Scheduler - No issues when ran manually

I was able to correct the context by changing it to the following:

Code: Select all

.....[certification] } }{ [group] }"....
Also changed to using Powershell.
by valiantslack
20 Jun 2023, 14:45
Forum: Help and Support
Topic: Invalid syntax via Task Scheduler - No issues when ran manually
Replies: 4
Views: 1922

Invalid syntax via Task Scheduler - No issues when ran manually

I updated a script I've been using for a while to include release group in the movie *.mkv name ( % { [group] } ). Running the below script manually works with no issues.

filebot -script fn:amc --output "N:/" --action move --conflict skip --def clean=y --def ignore="2160p|AMC|Extracted ...
by valiantslack
30 Oct 2022, 16:44
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

Got it, think I added the quotes as I was originally having issues. Changed =~ with ==~ and removed the quotes.

Unfortunate that I can't remove the - dash , the GUI preset I use does not add a dash in the name, but I suppose it's not a huge deal.

I think I will dry run this in test mode for ~ a ...
by valiantslack
30 Oct 2022, 16:23
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

Ok, was able to get the same filtering based on content rating for TV shows.
seriesFormat="T:/TV Shows/{ any{ certification =~ /"TV-Y"|"TV-Y7"/ ? 'Kids' : 'Adults' }{ 'Adults'} }/{plex.derive {n.colon(' ')}.tail}"

Is there a way to keep it form adding a dash and just leaving a space? It appears ...
by valiantslack
30 Oct 2022, 15:40
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

Ok, got it working with the following:

Code: Select all

... == /G|PG/ ?
by valiantslack
30 Oct 2022, 15:12
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

I've tried to add another content rating for Family movies so that everything G or PG goes to Family and PG-13 + goes to Adults. Trying several methods, it doesn't appear to take for me, it ends up dumping everything into Adults (G and PG).

filebot -script fn:amc --output "T:/" --action move ...
by valiantslack
30 Oct 2022, 06:31
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

Thanks for the context and about using escape for quotes.
I'm starting to use the context you provided (thanks btw!) and tweaking it. What would cause a movie content rating to not be pulled (think I might just default it to the Adults folder)?

Will test it out some more and see what it does with ...
by valiantslack
29 Oct 2022, 20:08
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

I've been able to modify the script to at least point to the adults section. Not sure how to tell it to do Adults vs Family movies as I currently just use different presets depending on the Movie/Show.

filebot -script fn:amc --output "T:/" --action copy --conflict auto --def pushover=Key-non ...
by valiantslack
29 Oct 2022, 15:34
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Re: Split TV Shows between 2 folders

Should also mention I have a similar situation when it comes to movies.

Folder Structure for Plex:

Code: Select all

T:/Movies/Family
T:/Movies/Adults
T:/TV Shows/Kids
T:/TV Shows/Adults
by valiantslack
29 Oct 2022, 15:27
Forum: Scripting and Automation
Topic: Split TV Shows between 2 folders
Replies: 14
Views: 5532

Split TV Shows between 2 folders

Have been using the GUI for years with multiple presets that I have created. Just diving into using AMC so I can automate the process fully.
I have TV Shows separated into two categories Kids and Adults (T:\TV Shows\Adults & T:\TV Shows\Kids). Is there a way to have AMC separate these out ...
by valiantslack
17 Jun 2019, 18:27
Forum: Help and Support
Topic: Preset asking to identify files
Replies: 1
Views: 1871

Preset asking to identify files

My first time setting up filebot. Creating several presets to move movies to different libraries (Adult; Family).
Here is what I currently have for my preset:
T:/Movies/Family/{n} ({y})/{n} ({y}){ext=='srt' ? ".en" : ''}

However, when I select it to run after adding the original MKV's, I get the ...