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>
Same genres, different renaming/moving
Re: Same genres, different renaming/moving
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.
Re: Same genres, different renaming/moving
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.
Re: Same genres, different renaming/moving
Just set {genres} and see what it says.
Re: Same genres, different renaming/moving
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.
"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.
Re: Same genres, different renaming/moving
1.
So you mean when genres is empty? I guess [] has Groovy Truth of false this should work:
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.
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'}
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.
Re: Same genres, different renaming/moving
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:
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".
Code: Select all
{genres =~ /Children|Family|Animation/ ? 'Serien - Kinder' : 'Serien' genres ? : 'No Genre'}
Re: Same genres, different renaming/moving
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...
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...

Re: Same genres, different renaming/moving
Nope, but i try yours later on...for the unsorted format, i need to fetch the amc groovy script and edit this, or ?