Separate Danish and English files via custom format

Any questions? Need some help?
Post Reply
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Separate Danish and English files via custom format

Post by steff »

Hey ..
Some who can help me get it set up right?
It's often Filebot does not put the files Danish / English. could it be better in a way?




movieFormat="{vf == /2160p/ ? 'Movies 4K' : vf =~ /1080p|720p/ ? 'movies' : 'movies'}/{'da' in Audio.Language ? 'Dansk' : 'Engelsk'}/{n}/{n.space('.')}.{y}{'.'+source}.{vc}{'.'+lang}"

seriesFormat="{vf == /2160p/ ? 'Tv 4K' : vf =~ /1080p|720p/ ? 'tv' : 'tv'}/{'da' in Audio.Language ? 'Dansk' : 'Engelsk'}/{n}/{'Season '+s}/{n} - {s00e00} - {t}{'.'+lang}"

:)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim »

Is this what you mean ?

Code: Select all

{(audioLanguages.toString().contains('da')) || (info.spokenLanguages.toString().contains('da')) ? 'Dansk' : 'Engelsk'}
or in your way

Code: Select all

{('da' in Audio.Language) || ('da' in info.spokenLanguages*.toString()) ? 'Dansk' : 'Engelsk'}
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

Yes .. All Danish must be put in Danish and the rest is English

Danish language in Dansk
English language in Engelsk

Which one is best?
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

None of the two commands puts it in English. only Danish??
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

None of the two commands puts it in English. only Danish??


Parameter: movieFormat = {vf == /2160p/ ? 'Movies 4K' : vf =~ /1080p|720p/ ? 'movies' : 'movies'}/{('da' in Audio.Language) || ('da' in info.spokenLanguages*.toString()) ? 'Dansk' : 'Engelsk'}/{n}/{n.space('.')}.{y}{'.'+source}.{vc}{'.'+lang}
Parameter: seriesFormat = {vf == /2160p/ ? 'Tv 4K' : vf =~ /1080p|720p/ ? 'tv' : 'tv'}/{('da' in Audio.Language) || ('da' in info.spokenLanguages*.toString()) ? 'Dansk' : 'Engelsk'}/{n}/{'Season '+s}/{n} - {s00e00} - {t}{'.'+lang}
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E01.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E03.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E04.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E05.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E06.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E07.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Resource not found: https://api.thetvdb.com/search/series?imdbId=tt2090790
Group: [tvs:kyst til kyst] => [Kyst.til.kyst.S02E01.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Kyst.til.kyst.S02E02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Kyst.til.kyst.S02E03.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Kyst.til.kyst.S02E04.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Kyst.til.kyst.S02E05.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Kyst.til.kyst.S02E06.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Kyst.til.kyst.S02E07.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Kyst til kyst]
Fetching episode data for [Kyst til kyst]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E01.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E01 - Havvindmøller og eksploderende biller.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E02 - Thyborøn til Filsø.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E03.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E03 - Nakskov til Stubbekøbing.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E04.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E04 - Sønderjylland, Hejlsminde til Kollund.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E05.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E05 - Middelfart til Nyborg.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E06.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E06 - Kyst til kyst - Vordingborg til Korsør.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Kyst.til.kyst.S02.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Kyst.til.kyst.S02E07.DANiSH.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Dansk/Kyst til kyst/Season 2/Kyst til kyst - S02E07 - Mariager Fjord til Slotø.mkv]
Processed 7 files
#############################################################################
##############################################################################

Parameter: movieFormat = {vf == /2160p/ ? 'Movies 4K' : vf =~ /1080p|720p/ ? 'movies' : 'movies'}/{('da' in Audio.Language) || ('da' in info.spokenLanguages*.toString()) ? 'Dansk' : 'Engelsk'}/{n}/{n.space('.')}.{y}{'.'+source}.{vc}{'.'+lang}
Parameter: seriesFormat = {vf == /2160p/ ? 'Tv 4K' : vf =~ /1080p|720p/ ? 'tv' : 'tv'}/{('da' in Audio.Language) || ('da' in info.spokenLanguages*.toString()) ? 'Dansk' : 'Engelsk'}/{n}/{'Season '+s}/{n} - {s00e00} - {t}{'.'+lang}
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E01.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E02.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E03.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E04.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E06.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E07.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E08.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E09.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E10.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E11.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Input: /home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E12.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv
Group: [tvs:younger] => [Younger.S05E01.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E02.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E03.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E04.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E06.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E07.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E08.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E09.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E10.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E11.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv, Younger.S05E12.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Younger]
Fetching episode data for [Younger]
Fetching episode data for [The Hunger]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E01.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E01 - #LizaToo.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E02.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E02 - A Titanic Problem.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E03.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E03 - The End of the Tour.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E04.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E04 - The Talented Mr. Ridley.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E05 - Big Little Liza.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E06.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E06 - Sex, Liza and Rock & Roll.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E07.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E07 - A Christmas Miracle.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E08.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E08 - The Bubble.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E09.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E09 - Honk if You're Horny.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E10.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E10 - Girls on the Side.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E11.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E11 - Fraudlein.mkv]
[COPY] from [/home/steff/Downloads/Tv_Boks/Younger.S05.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL/Younger.S05E12.Retail.DKsubs.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.mkv] to [/home/steff/mnt/media/tv/Younger/Season 5/Younger - S05E12 - Lizability.mkv]
Processed 12 files
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim »

it do not work on tvdb

and only for movies

you can use this for tv on themoviedb with

Code: Select all

{Languages.toString().contains('da') || audioLanguages.toString().contains('da')? 'Dansk' : 'Engelsk'}
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

Is there a way i can get it to only use themoviedb ?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim »

from the CLI ?
yes, I have made this
viewtopic.php?f=4&t=5451&p=31192#p31191
To get TV from themoviedb:
--def tmdbTV=y (default is use thetvdb)
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

Can I insert this command you made to Danish / English in the 'Amc' scripts you have created?

:)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim »

you can use my script like AMC
viewtopic.php?f=4&t=215

my script is "just" AMC+ ;)

e.g.
put format in file "movieFormat.groovy"

Code: Select all

filebot -script "pathtofile/amc_custom.groovy" --output "/path/to/output" --action copy -non-strict "/path/to/input" --log-file amc.log --def artwork=y --def clean=y --def nfoOnly=n --def extras=n --def ut_label=Movie --def movieFormat=@"pathtofile/movieFormat.groovy"
TV same as movie but:

Code: Select all

--def ut_label=TV --def seriesFormat=@"pathtofile/seriesFormat.groovy"  --def tmdbTV=y
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

Can I do with

--def ut_label=Dansk_Tv
--def ut_label=Engelsk_TV
--def ut_label=Movies_Dansk
--def ut_label=Movies English

And thanks for the help Kim :)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim »

I cant see why ?
there is no need for other then (used to force detection of Movie/TV in AMC script)

Code: Select all

--def ut_label=Movie and --def ut_label=TV
this is = too e.g.
--def ut_label=Dansk_Tv AND --def ut_label=Engelsk_TV

Code: Select all

{Languages.toString().contains('da') || audioLanguages.toString().contains('da')? 'Dansk' : 'Engelsk'}
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

It was just so I did not have to change my RSS Feed.
And that's not all Danish it takes, so it's easier that English and Danish TV are not mixed in my download folder :)
steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff »

filebot -script "pathtofile/amc_custom.groovy" --output "/path/to/output" --action copy -non-strict "/path/to/input" --log-file amc.log --def artwork=y --def clean=y --def nfoOnly=n --def extras=n --def ut_label=Movie --def movieFormat=@"pathtofile/movieFormat.groovy"

"/path/to/input"
Is it for my Download folder?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim »

yes, your new NOT renamed files aka the BEFORE files
Post Reply