UNCUT, EXTENDED, DIRECTORS CUT
Posted: 14 Jan 2013, 14:48
Please also add function for EXTENDED, UNCUT, DIRECTORS CUT, etc. specifications for the movie
Thanks,
Thanks,
The ultimate TV and Movie Renamer
https://www.filebot.net/forums/
Code: Select all
{fn.match(/EXTENDED|UNCUT|DIRECTORS.CUT/)}
Code: Select all
{fn.match('.'+/EXTENDED|UNCUT|DIRECTORS.CUT/)}
Code: Select all
{'.'+fn.match(/EXTENDED|UNCUT|DIRECTORS.CUT/)}
Code: Select all
{'.'+file.path.match(...)}
Code: Select all
{file.path.match(/uncut/)}
Code: Select all
{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|special[ ._-]edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[.]/, " ") + ')'}
Code: Select all
{' (' + fn.matchAll(/extended|uncensored|uncut|directors[ ._-]cut|remastered|unrated|special[ ._-]edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[.]/, " ") + ')'}
Code: Select all
directors.cut
Code: Select all
{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}
Code: Select all
[user@server My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS]$ sudo -u pyload /mnt/raid/data/pyload/filebot.sh -script /mnt/raid/data/pyload/amc.groovy "/mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS"/ --output "/mnt/raid/data/media/" --log-file amc.log --conflict skip --action move -non-strict --def clean=y subtitles=en,de music=no artwork=no --def "movieFormat=Filme/{n.upperInitial().space('.')}.({y})/{n.upperInitial().space('.')}.({y}){'.' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \")}{fn.match(/HOU|H-OU/) ? '.3D.H-OU' : ''}{fn.match(/HSBS|H-SBS/) ? '.3D.H-SBS' : ''}{\".\$ac\"}{\".\$vf\"}{\".\$source\"}{\".\$vc\"}{'.' + fn.matchAll(/repack|proper/)*.upper().sort().join(', ').replaceAll(/[._]/, \" \")}{\"-\$group\"}{'.'+fn.match(/forced/)}{\".\$lang\"}" "seriesFormat=Serien/{n.upperInitial().space('.')}/Season.{s}/{n.upperInitial().space('.')}.-.{s00e00}{'.' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \")}{\".\$ac\"}{\".\$vf\"}{\".\$source\"}{\".\$vc\"}{'.' + fn.matchAll(/repack|proper/)*.upper().sort().join(', ').replaceAll(/[._]/, \" \")}{\"-\$group\"}{'.'+fn.match(/forced/)}{\".\$lang\"}"
Locking /mnt/raid/data/pyload/.filebot/logs/amc.log
Parameter: clean = y
Parameter: subtitles = en,de
Parameter: music = no
Parameter: artwork = no
Parameter: movieFormat = Filme/{n.upperInitial().space('.')}.({y})/{n.upperInitial().space('.')}.({y}){'.' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition|remastered/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ")}{fn.match(/HOU|H-OU/) ? '.3D.H-OU' : ''}{fn.match(/HSBS|H-SBS/) ? '.3D.H-SBS' : ''}{".$ac"}{".$vf"}{".$source"}{".$vc"}{'.' + fn.matchAll(/repack|proper/)*.upper().sort().join(', ').replaceAll(/[._]/, " ")}{"-$group"}{'.'+fn.match(/forced/)}{".$lang"}
Parameter: seriesFormat = Serien/{n.upperInitial().space('.')}/Season.{s}/{n.upperInitial().space('.')}.-.{s00e00}{'.' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition|remastered/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ")}{".$ac"}{".$vf"}{".$source"}{".$vc"}{'.' + fn.matchAll(/repack|proper/)*.upper().sort().join(', ').replaceAll(/[._]/, " ")}{"-$group"}{'.'+fn.match(/forced/)}{".$lang"}
Argument: /mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS
Input: /mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS/My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS/d-mymovie-1080p.eng.srt
Input: /mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS/My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS/d-mymovie-1080p.mkv
Input: /mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS/My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS/d-mymovie-1080p.deu.srt
d-mymovie-1080p.eng.srt [series: null, movie: My Movie (2000)]
d-mymovie-1080p.mkv [series: null, movie: My Movie (2000)]
d-mymovie-1080p.deu.srt [series: null, movie: My Movie (2000)]
Group: [tvs:null, mov:My Movie (2000), anime:null] => [d-mymovie-1080p.eng.srt, d-mymovie-1080p.mkv, d-mymovie-1080p.deu.srt]
No missing subtitles
No missing subtitles
Rename movies using [TheMovieDB]
Skipped [/mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS/My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS/d-mymovie-1080p.mkv] because [/mnt/raid/data/media/Filme/My.Movie.(2000)/My.Movie.(2000).DTS.1080p.BluRay.x264-DETAiLS.mkv] already exists
Skipped [/mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS/My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS/d-mymovie-1080p.eng.srt] because [/mnt/raid/data/media/Filme/My.Movie.(2000)/My.Movie.(2000).DTS.1080p.BluRay.x264-DETAiLS.eng.srt] already exists
Skipped [/mnt/raid/data/download/pyload/My Movie 2000 EXTENDED REMASTERED German DL 1080p BluRay x264 PROPER-DETAiLS/My.Movie.2000.EXTENDED.REMASTERED.German.DL.1080p.BluRay.x264.PROPER-DETAiLS/d-mymovie-1080p.deu.srt] because [/mnt/raid/data/media/Filme/My.Movie.(2000)/My.Movie.(2000).DTS.1080p.BluRay.x264-DETAiLS.deu.srt] already exists
Processed 3 files
Clean clutter files and empty folders
Done ヾ(@⌒ー⌒@)ノ
Code: Select all
{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}
Code: Select all
--def "movieFormat={' (' + file.path.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \" \") + ')'}"
Code: Select all
/mnt/raid/data/media/ (Extended, Extended, Remastered, Remastered).mkv
Code: Select all
.sort().unique()
Code: Select all
{'.'+fn.match(/EXTENDED|UNCUT|REMASTERED|DIRECTORS.CUT/)}
Code: Select all
{'.'+fn.match(/EXTENDED|UNCUT|REMASTERED|DIRECTORS.CUT/).upper()}
Code: Select all
../{collection+'/'}{norm = {it.replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() })}; norm(n)}{if (norm(n) != norm(primaryTitle)) ' ('+norm(primaryTitle)+')'} ({y}) [{genres[0]}, {' '+any{certification}{imdb.certification}.replaceAll(/^\d+$/, 'PG-$0')}, {vf}]/{norm(n)}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'} ({y}) {"[$vf]"}{' - '+group}{" Part $pi"}{'.'+lang}
Code: Select all
Before: aqos-curse.of.chucky.2013.unrated.hdrip.xvid\aqos-curse.of.chucky.2013.unrated.hdrip.xvid.avi
after:Child's Play Collection\Curse of Chucky (Unrated) (2013) [Horror, R, 360p]\Curse of Chucky (Unrated) (2013) [360p] - AQOS.avi
Code: Select all
Before: Bridesmaids[2011][Unrated Edition]DvDrip[Eng]-FXG\Bridesmaids (2011).srt
After: Bridesmaids (2011)[Comedy, R, 360p]\Bridesmaids (2011) [360p] - FXG.eng.srt
Code: Select all
{tags}
Code: Select all
extended|uncensored|remastered|unrated|uncut|director.?s.cut|theatrical.cut|ultimate.cut|final.cut|special.edition