let filebot choose genre from a list
Posted: 10 Nov 2016, 10:00
hi
first thinks first, thank you very much for this wonderful program rednoah
im quite happy with my expression, especially the collection handling
thanks to the forum and many many hours of reading and trail and error i came up with this:
Filmreihe.txt
but i have too many genres... i dont want Foreign, Abenteuer, Historie, Musik, Western or Animation
is there a way to let filebot choose the best genre from a list?
in my case there would only be Action, Drama, Familie, Fantasy, Horror, Komödie, Lovestory, Mystery, Science Fiction and Thriller.
im using v4.7.2 r4178 win7

first thinks first, thank you very much for this wonderful program rednoah
im quite happy with my expression, especially the collection handling

thanks to the forum and many many hours of reading and trail and error i came up with this:
Code: Select all
I:/{any{readLines('H:/Filmdatenbank/Filmreihe.txt').find{ it =~ imdbid }.after(':')}{any{model.findAll{ it.collection == collection }.genres.flatten().countBy{it}.sort{it.value}.keySet().first()}{genres[0]}}}/{n.replaceAll(/[`´‘’“”""]/, "'").replace(/:/, " - ").replace(/·/, "-").replaceAll(/[½]/, " 1'2").replaceAll(/[⅓]/, " 1'3").replace(/ß/,"ss").replace(/ä/,"ae").replace(/ö/,"oe").replace(/ü/,"ue")} ({y}) [{vf}] [{ac} {af.replace('8ch',' 7.2').replace('7ch',' 6.1').replace('6ch',' 5.1').replace('3', ' 2.1').replace('3ch',' 2.1').replace('2ch',' Stereo')}] [{genres.take(3).join(', ').replaceAll(/ä/,"ae").replaceAll(/ö/,"oe").replaceAll(/ü/,"ue")}]
Code: Select all
StarTrek
tt0079945;tt0111280;tt0253754;tt0796366;tt1408101;tt2660888;tt0092007;tt0098382;tt0102975;tt0117731;tt0120844;tt0084726;tt0088170:Science Fiction
Insidious
tt1591095;tt2226417;tt3195644:Horror
Pippi Langstrumpf
tt0066265;tt0066227;tt0366905;tt0093744:Familie
X-Men mit Wolverine und Deadpool
tt0120903;tt3385516;tt0376994;tt1270798;tt1877832;tt0290334;tt0458525;tt1431045:Abenteuer
Sissi
tt0048624;tt0049762;tt0050974:Drama
Harry Potter
tt0330373;tt0304141;tt0417741;tt0373889;tt0241527;tt0926084;tt1201607;tt0295297:Familie
Alien
tt0078748;tt0090605;tt0103644;tt0118583:Horror
Matrix
tt0133093;tt0234215;tt0242653:Action
is there a way to let filebot choose the best genre from a list?
in my case there would only be Action, Drama, Familie, Fantasy, Horror, Komödie, Lovestory, Mystery, Science Fiction and Thriller.
im using v4.7.2 r4178 win7