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 » 12 Sep 2018, 14:44

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: 648
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim » 12 Sep 2018, 15:43

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 » 12 Sep 2018, 16:01

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 » 12 Sep 2018, 18:59

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 » 12 Sep 2018, 19:08

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: 648
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim » 12 Sep 2018, 19:58

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 » 12 Sep 2018, 20:51

Is there a way i can get it to only use themoviedb ?

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

Re: movie serie format

Post by kim » 13 Sep 2018, 13:35

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 » 13 Sep 2018, 17:48

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

:)

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

Re: movie serie format

Post by kim » 14 Sep 2018, 19:37

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 [email protected]"pathtofile/movieFormat.groovy"
TV same as movie but:

Code: Select all

--def ut_label=TV --def [email protected]"pathtofile/seriesFormat.groovy"  --def tmdbTV=y

steff
Posts: 10
Joined: 09 Sep 2018, 12:47

Re: movie serie format

Post by steff » 14 Sep 2018, 20:05

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: 648
Joined: 15 May 2014, 16:17

Re: movie serie format

Post by kim » 15 Sep 2018, 01:48

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 » 15 Sep 2018, 14:26

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 » 16 Sep 2018, 08:45

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 [email protected]"pathtofile/movieFormat.groovy"

"/path/to/input"
Is it for my Download folder?

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

Re: movie serie format

Post by kim » 16 Sep 2018, 15:15

yes, your new NOT renamed files aka the BEFORE files

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests