Sort tv by genres or country

Any questions? Need some help?
Post Reply
Ztrust
Posts: 69
Joined: 21 Dec 2013, 17:04

Sort tv by genres or country

Post by Ztrust » 29 Mar 2015, 03:56

Hi
I am using this for my movies.

Code: Select all

{genres.contains('Animation') ? 'Cartoons' : info.SpokenLanguages[0] ==~ /(no|da|sv|nb)/ ? 'Nordic Movies' : n
I would like to do something similar with tv series but cant get it to work.
I have tried with the different {info} but I get a filebot "binding exeption extende metadata is not availible.
is it possible to do, I seem to recall something about the tvdb is limited in this regard ?
Since I do not have to many of these shows I am thinking I can map the path manually in a csv file but I do not know the syntax ?

hope you can help again
ztrust

User avatar
rednoah
The Source
Posts: 18642
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort tv by genres or country

Post by rednoah » 29 Mar 2015, 16:43

Testing...

Code: Select all

filebot -list --q "the walking dead" --format "{episode} => {info}"

Code: Select all

filebot -list --q "the walking dead" --format "{episode} => {info.network} {info.genres} {info.language}"
Looks alright. I don't know what you want.
:idea: Please read the FAQ and How to Request Help.

Ztrust
Posts: 69
Joined: 21 Dec 2013, 17:04

Re: Sort tv by genres or country

Post by Ztrust » 30 Mar 2015, 17:12

Hey Noah
sorry for the late reply.
You are of course right about the genres (guess I never tried it alone ) working so thats a hoot, but I am still stuck on trying to sort my nordic series.
{info.language} seems to be bound to the interface language if I have my language set to danish its shows da and if I change interface to English it shows up as en.
how would you go about sorting series per language ?
and what I mean by the csv is do something like this
csv('H:/FileBot/Names.csv').get(path) ?
and the csv
klovn;H:/Nordic Series
Ztrust

User avatar
rednoah
The Source
Posts: 18642
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort tv by genres or country

Post by rednoah » 31 Mar 2015, 04:05

If you're looking for a equivalent of SpokenLanguage for TV Shows I'm afraid TheTVDB doesn't have that information.

Writing a condition yourself seems like the next best solution. You'd probably use the exact TheTVDB name {n} as key though, unless by "path" you mean that. :D
:idea: Please read the FAQ and How to Request Help.

Ztrust
Posts: 69
Joined: 21 Dec 2013, 17:04

Re: Sort tv by genres or country

Post by Ztrust » 01 Apr 2015, 23:53

hey Noah

I would like to use csv, that way I can ad shows without having to rewrite me scripts.
this is what I have in the format editor

Code: Select all

{csv('D:/FileBot/paths.csv').get(file.path)}
and in D:/filebot I have made a text file with csv extention "paths.csv" and in the file I have these 2 lines only
12 monkeys:Nordic Series/
klovn:Nordic Series/


but it dosent seem to work and I do not know where I am wrong

*I can get it to work
.get(n)
is it ok to do it with name, will it not get tagged with the hole path as name in extended attributes or somewhat ?
*edit it dosent work, It works for 1 or two entries and when I ad more it breaks

User avatar
rednoah
The Source
Posts: 18642
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort tv by genres or country

Post by rednoah » 02 Apr 2015, 10:57

file.path obviously doesn't match any of your keys.
:idea: Please read the FAQ and How to Request Help.

Ztrust
Posts: 69
Joined: 21 Dec 2013, 17:04

Re: Sort tv by genres or country

Post by Ztrust » 03 Apr 2015, 10:42

hey noah
I figured out how to sort it so nordic series goes to nordic folders but then the problem comes getting the nordic names I have been searching the forums and as far as I can read unless you change interface language and use {n} and {primarytitle} you cant get different language names (danish for nordic and english for everything else) ?
I found this Am I right to assume this only works for German ? I tried to change the locale to a couple of other countries but to no affect
http://www.filebot.net/forums/viewtopic.php?f=4&t=704

I do apologize for the uglyness of this, I am well aware its wrong but I just need it to show what im trying to do

Code: Select all

--lang {file.path =~ /nordic series/ ? 'da' : 'en'}

Is it possible to put something like this in the amc format ?

User avatar
rednoah
The Source
Posts: 18642
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sort tv by genres or country

Post by rednoah » 04 Apr 2015, 16:48

You set --lang before filebot is called, so you can't do anything like this in the format. You should use bash to call filebot with the appropriate --lang option.
:idea: Please read the FAQ and How to Request Help.

Post Reply