Page 1 of 1
AMC Report
Posted: 24 Feb 2017, 18:34
by scriptoo
Hello,
I'm using the AMC script and everything is working fine.
My only problem is that I have no overview about my renamed and moved files.
I'm using
to create report files.
They're created in
Can i specify a custom folder?
The next problem is that they're stored in single html files for every run of the script. Can I combine them to one text file (like amc.txt in excludeList), so I can delete everything which I checked (that it's renamed correctly).
The request is because of files like "Insomnia" which is of course the "Christopher Nolan movie" but it will renamed to Insomnia (2012), a short-movie.
And what's the shortcut for "exclude extension"? I don't need .srt in my movie folder. It should be deleted with
Thanks for your support and your awesome work in filebot!
Re: AMC Report
Posted: 24 Feb 2017, 19:31
by rednoah
1.
The report location and format cannot be changed. You can create your own reports at any time later on using rename history and xattr metadata. I recommend using PushBullet notifications.
e.g.
2.
--def ignore=pattern allows you to specify path exclude patterns.
e.g.
Re: AMC Report
Posted: 24 Feb 2017, 19:38
by scriptoo
Thanks!
Will try PushBullet in a few minutes.
works. But it only prevents .srt files to be moved. --def clean=y don't delete them afterwards.
Also --def clean=y do not clean insomnia/sample/insomnia_sample.mkv files.
Here is my script. Maybe you can see the error:
Code: Select all
filebot -script ^
fn:amc ^
"D:\Downloads" ^
--output "D:\test" ^
--log-file amc.log ^
--action move ^
--conflict skip -non-strict ^
--def music=n ^
--def clean=y ^
--def "exts=jpg|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2|srt" ^
--def "terms=sample|trailer|etc" ^
--def ignore="[.]srt$" ^
--def movieFormat="D:/Video/{n.replaceAll(/[:?]/, '')} [{y} - {omdb.rating} - ({omdb.genres.collect{it[0..2]}.join(',')}) - {omdb.actors[0]}]" seriesFormat="D:/Serien/{n}/{'Staffel '+{s.pad(2)}{e.pad(2)}}/{s00e00} - {t.replacePart(' Part $1').replaceAll('[?]', replacement = ' ').replaceAll('-', replacement = ' ').replaceAll('!', replacement = '').replaceAll(':', replacement = '')}" --lang de ^
--def skipExtract=y ^
--def unsorted=y ^
--def excludeList=amc.txt ^
--def storeReport=y
Re: AMC Report
Posted: 24 Feb 2017, 20:10
by rednoah
You'll have to call the cleaner script yourself in a second call if you want custom cleaner options. The amc script doesn't pass then on.
e.g.
Code: Select all
filebot -script fn:amc ...
filebot -script fn:cleaner ...
@see
viewtopic.php?f=4&t=5#p1341
Re: AMC Report
Posted: 24 Feb 2017, 20:30
by scriptoo
Pushbullet works, thanks.
But my code still don't delete .srt & sample files
The folder structure is:
D:/Downloads/Insomnia/sample/Insomnia_sample.mkv
D:/Downloads/Insomnia/Insomnia 2002.mkv
D:/Downloads/Insomnia/Insomnia.srt
Insomnia 2002.mkv is moved correctly, but the both other files are not deleted.
Code: Select all
filebot -script ^
fn:amc ^
"D:\Downloads" ^
--output "D:\test" ^
--log-file amc.log ^
--action move ^
--conflict skip -non-strict ^
--def music=n ^
--def ignore="[.]srt$" ^
--def movieFormat="D:/Video/{n.replaceAll(/[:?]/, '')} [{y} - {omdb.rating} - ({omdb.genres.collect{it[0..2]}.join(',')}) - {omdb.actors[0]}]" seriesFormat="D:/Serien/{n}/{'Staffel '+{s.pad(2)}{e.pad(2)}}/{s00e00} - {t.replacePart(' Part $1').replaceAll('[?]', replacement = ' ').replaceAll('-', replacement = ' ').replaceAll('!', replacement = '').replaceAll(':', replacement = '')}" --lang de ^
--def skipExtract=y ^
--def unsorted=y ^
--def excludeList=amc.txt ^
--def pushbullet=XXXXXXXXXXXXXXXXXXXX
filebot -script ^
fn:cleaner ^
"D:\Downloads" ^
--def root=y ^
--def "exts=jpg|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2|srt" ^
--def "terms=sample|trailer|etc"
Re: AMC Report
Posted: 24 Feb 2017, 20:41
by rednoah
Is Insomnia_sample.mkv larger than 100 MB?
Re: AMC Report
Posted: 24 Feb 2017, 20:59
by scriptoo
That's it!
It was 120MB
.srt is deleted also.
But not the root folders: "D:\Downloads\Usenet\insomnia" && "D:\Downloads\Usenet\insomnia\sample"
thought
is doing this? Maybe because the (empty) sample folder is still in there?
If you have no more desire, it's ok

Re: AMC Report
Posted: 24 Feb 2017, 21:05
by rednoah
If you pass in your Downloads then it really should delete everything but that folder (and with root=y even the Downloads folder).
You can look at the logs and see what FileBot tried to do. On Windows, there's usually some process that's keeping some file open, or some hidden file.
Your --def exts doesn't include *.db so there's probably a hidden Thumbs.db that's keeping the folder from being deleted.
Re: AMC Report
Posted: 24 Feb 2017, 22:48
by scriptoo
It's also awesome if the folders aren't deleted automatically.
But I will try more tomorrow. Thanks for your help, wish you good night.