Same genres, different renaming/moving

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
neutron
Posts: 8
Joined: 23 Aug 2015, 07:43

Same genres, different renaming/moving

Post by neutron »

Hi,

Got a strange Problem. I'm using Filebot to automatically rename and move different TV Shows to different Folders, since i have a Folder for TV-Shows for Kids and a folder for all other TV-Shows. I use this:

"seriesFormat=/volume1/{genres =~ /Children|Family|Animation/ ? 'Serien - Kinder' : 'Serien'}/{n}/Staffel {s}/{n} {s00e00} - {t}"

The strange part is, i have 2 different Shows which have the SAME genres when queryring TheTVDb.com, but one show is moved to the correct Kids folder, the other one goes into the wrong Folder. Where could be the Problem? I'm querying "Jessie" and "Austin & Ally", just if you need to test this. I also looked into the xml data using the API and it's the same:

Austin & Ally:

<Genre>|Children|Comedy|Family|</Genre>

Jessie:

<Genre>|Children|Comedy|Family|</Genre>
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Same genres, different renaming/moving

Post by rednoah »

Just do {genres} and see what the actual values are. It's possible that FileBot will only get the latest TheTVDB data 1-2 days later due to caching.
:idea: Please read the FAQ and How to Request Help.
neutron
Posts: 8
Joined: 23 Aug 2015, 07:43

Re: Same genres, different renaming/moving

Post by neutron »

Sorry fot the stupid question. but how would that query look like ? I'm quite new to filebot and still trying to understand how different options and switches play together.
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Same genres, different renaming/moving

Post by rednoah »

Just set {genres} and see what it says.
:idea: Please read the FAQ and How to Request Help.
neutron
Posts: 8
Joined: 23 Aug 2015, 07:43

Re: Same genres, different renaming/moving

Post by neutron »

That worked and it was the caching, thank you. Another Question, if i use this for tv shows:

"seriesFormat=/volume1/{genres =~ /Children|Family|Animation/ ? 'Serien - Kinder' : 'Serien'}/{n}/Staffel {s}/{n} {s00e00} - {t}"

Can i add something to this query to have the file moved to a third location (not "Serien - Kinder" or "Serien") if i get NO genre back from the scraper ?

Or maybe in general, if there's no information from the scraper at all, don't rename but move it to another location ? Thinking about video clips or x-rated material here.
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Same genres, different renaming/moving

Post by rednoah »

1.
So you mean when genres is empty? I guess [] has Groovy Truth of false this should work:

Code: Select all

{[] ? 'something' : 'nothing'}

Code: Select all

{genres =~ /Children|Family|Animation/ ? 'Serien - Kinder' : genres ? 'Serien' : 'No Genre'}
2.
The format is only applied for episode information, so at that point there can't be no information. You might be talking about the unsorted feature, which you can enable via --def unsorted=y. See amc manual for details.
:idea: Please read the FAQ and How to Request Help.
neutron
Posts: 8
Joined: 23 Aug 2015, 07:43

Re: Same genres, different renaming/moving

Post by neutron »

I read about the --def unsorted=y but i didn't see a way to set a path/folder for this. About the genres, shouldn't that be something like:

Code: Select all

{genres =~ /Children|Family|Animation/ ? 'Serien - Kinder' : 'Serien' genres ? : 'No Genre'}
I want tv shows with genre children, family. animation to go to "Serien - Kinder", any other genre to "Serien" and NO or EMPTY genre go to "No Genre".
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Same genres, different renaming/moving

Post by rednoah »

1.
You can pass in your own unsortedFormat if you don't like the default output format.

2.
I'm pretty sure I meant what I wrote. Did you try? I'd try yours, but it's got some obvious syntax errors... ;)
:idea: Please read the FAQ and How to Request Help.
neutron
Posts: 8
Joined: 23 Aug 2015, 07:43

Re: Same genres, different renaming/moving

Post by neutron »

Nope, but i try yours later on...for the unsorted format, i need to fetch the amc groovy script and edit this, or ?
Post Reply