Page 1 of 1
tvshows in differents languages
Posted: 28 Oct 2016, 12:28
by ppo852
Hi,
I use filebot for renaming movies, tvshows for plex. It goes well. I tried to make it dividing movies and 3D movies. It goes very well.
But for my tvshows, i tried to make it understand to separate in 2 differents directory tvshows for french version and english version.
Can someone give me a clue or making it for me, i'm a bit lost.
Thanks
i tried seriesFormat = {fn =~ /vostfr/ ? 'vostfr series' : 'series'}/{n} ({y})/{n} ({y}) but all my tshows are going to vostfr series directory (french and English ones)
i'm on a debian server
sorry for bad language i'm not native English
Re: tvshows in differents languages
Posted: 28 Oct 2016, 12:53
by rednoah
Play with the
Format Editor until you understand how it works.
e.g. French
Code: Select all
{'xyz vostfr' =~ /vostfr/ ? 'French' : 'English'}
e.g. English
Code: Select all
{'xyz' =~ /vostfr/ ? 'French' : 'English'}
Depending on the value of
fn it's gonna be either of these cases.

Re: tvshows in differents languages
Posted: 28 Oct 2016, 16:07
by ppo852
thx for your help really quickly
i have again a problem.
I tried that:
Code: Select all
sh /home/adam/.filebot/filebot.sh --lang fr -script fn:amc --output "/media/adam/lien" --log-file "/home/adam/.session/amc.log" --action symlink --conflict override -non-strict --def "seriesFormat={fn =~ /VOSTFR/ ? 'TV Shows vostfr' : 'TV Shows'}/{n} ({y})/{n} ({y})" --def "seriesFormat={fn =~ /SUBFRENCH/ ? 'TV Shows vostfr' : 'TV Shows'}/{n} ({y})/{n} ({y})" --def "movieFormat={fn =~ /3D/ ? '3D Movies' : 'Movies'}/{n} ({y})/{n} ({y})" --def plex=localhost:32400[:TOKEN] music=y artwork=y "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
but i work well for 5 minutes, but stop working....
now i can't go working this
Code: Select all
--def "seriesFormat={fn =~ /VOSTFR/ ? 'TV Shows vostfr' : 'TV Shows'}/{n} ({y})/{n} ({y})"
with
Code: Select all
--def "seriesFormat={fn =~ /SUBFRENCH/ ? 'TV Shows vostfr' : 'TV Shows'}/{n} ({y})/{n} ({y})"
and i have another problem, with this changements my tvshows do not classed anymore by season, i guess it's those chagements who are blocking the default scipt but i dn't understand how to prevent it or making it work with this lines...
I'm sorry for asking you that much help
Re: tvshows in differents languages
Posted: 28 Oct 2016, 16:15
by rednoah
1.
You're passing in the same option twice. It'll either use the first or the last but definitely not both. You are
at least checking the log if something is not working, right?
2.
Use the
Format Editor to learn how to use the format. If you use
{n} ({y}) as episode format pattern then you probably have no idea what you're doing (yet). It's not that hard though, just play with it a little bit first.

Re: tvshows in differents languages
Posted: 30 Oct 2016, 11:27
by ppo852
After many tries, fails, coffee, i tried this one nd worked well:
Code: Select all
"seriesFormat={fn =~ /SUBFRENCH|VOSTFR/ ? 'TV Shows vostfr' : 'TV Shows'}/{n} ({y})/Season {s}/{sxe} - {t}"