I'm working on my first naming method and having some trouble adding a couple of items.
call filebot -script fn:amc "E:\Movies" --output "E:\Movies_Sorted" --action copy -non-strict --def "seriesFormat=TV/{n}/{fn}" "movieFormat=Movies/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{y}{'.'+vf.match(/720[pP]|1080[pP]/)}{'.'+source}{'.'+ac}{'-'+fn.match(/(?:(?<=[-])\w+$)|(?:^\w+(?=[-]))/)}
This first part is working as expected. The two parts below are whats causing it to fail.
I'm trying to match 3D in the file name by using {"."+fn.match(/(?i:3D)/)}.
I'm also trying to have it replace AVC with x264 by using {vc.replaceAll(/AVC/, "x264")}. All the movies currently have x264 or h264 in the name but are getting named with AVC instead and I don't care for that. This may only replace what's in the name and if so does anyone have a suggestion for making AVC/x264/h264 show up as x264?
Any suggestions would be much appreciated.
Thanks!
Need help on Movie Naming
Re: Need help on Movie Naming
Figured out the 3D one.. was trying to over complicate it from the other examples I was seeing.
{fn.match(/3D/)} is working for me.
{fn.match(/3D/)} is working for me.
Re: Need help on Movie Naming
{vc} should give you x264 if it's encoded with x264, not some other AVC codec. It'll read the file with mediainfo to get that info:
Test:
Otherwise this works:
Code: Select all
{vc.replace('AVC', 'x264')}
Code: Select all
{"AVC".replace('AVC', 'x264')}
Re: Need help on Movie Naming
rednoah - thx for the suggestion. Here is the final code I'm using to process the movie collection at the moment.
call filebot -script fn:amc "E:\Unsorted" --output "E:\Movies" --action move --conflict skip --def "seriesFormat=TV/{n}/{fn}" "movieFormat=Movies/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{y}{'.'+fn.match(/3D/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{'.'+source}{'.'+ac}{'.'+vc}{'.'+file.path.match(/UNRATED|REMASTERED|EXTENDED|THEATRICAL|UNCUT|DIRECTORS CUT|THEATRICAL EDITION|THEATRICAL CUT/)}"
I have several movies that won't process however I can get them to rename using the GUI and by selecting IMDB. Is there a way to make my search look at IMDB from the cmd line instead of TheMovieDB?
call filebot -script fn:amc "E:\Unsorted" --output "E:\Movies" --action move --conflict skip --def "seriesFormat=TV/{n}/{fn}" "movieFormat=Movies/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{y}{'.'+fn.match(/3D/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{'.'+source}{'.'+ac}{'.'+vc}{'.'+file.path.match(/UNRATED|REMASTERED|EXTENDED|THEATRICAL|UNCUT|DIRECTORS CUT|THEATRICAL EDITION|THEATRICAL CUT/)}"
I have several movies that won't process however I can get them to rename using the GUI and by selecting IMDB. Is there a way to make my search look at IMDB from the cmd line instead of TheMovieDB?
Re: Need help on Movie Naming
If you already know there's only gonna be movie files you'll be better of with this script:
http://www.filebot.net/forums/viewtopic ... &t=5#p2211
Just force movie mode via --db TheMovieDB and things should go more smooth than with AMC which has to figure out what each video file is.
http://www.filebot.net/forums/viewtopic ... &t=5#p2211
Just force movie mode via --db TheMovieDB and things should go more smooth than with AMC which has to figure out what each video file is.
Re: Need help on Movie Naming
It's still having trouble identifying the movies from the cmdline using this suggestion. Comes up with too many suggestions. I even put the IMDB tt# in the filename hoping that'd make it look at the correct one but no luck.
call filebot -script fn:renall "E:\Unsorted" --db IMDb --action test --log info --def "movieFormat=Movies/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{y}{'.'+fn.match(/3D/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{'.'+source}{'.'+ac}{'.'+vc}{'.'+file.path.match(/UNRATED|REMASTERED|EXTENDED|THEATRICAL|UNCUT|DIRECTORS CUT|THEATRICAL EDITION|THEATRICAL CUT/)}"
call filebot -script fn:renall "E:\Unsorted" --db IMDb --action test --log info --def "movieFormat=Movies/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{y}{'.'+fn.match(/3D/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{'.'+source}{'.'+ac}{'.'+vc}{'.'+file.path.match(/UNRATED|REMASTERED|EXTENDED|THEATRICAL|UNCUT|DIRECTORS CUT|THEATRICAL EDITION|THEATRICAL CUT/)}"
Re: Need help on Movie Naming
Been searching the forums and found another thread looking to do the same thing I'm wanting to do but it appears he hasn't figured it out either.
http://www.filebot.net/forums/viewtopic ... b+tt#p4847
http://www.filebot.net/forums/viewtopic ... b+tt#p4847
Last edited by mechtn on 28 Sep 2013, 17:12, edited 1 time in total.
Re: Need help on Movie Naming
Before you worry about details you first wanna try with -non-strict set and see how it goes.
Re: Need help on Movie Naming
I had quite a few get named wrong using -non-strict so I took it out early on.
Re: Need help on Movie Naming
If there's a tt imdb id in the filename or nfo file it'll always work though. Or if it's name+year in the filename it can't go much wrong.