AMC Report

Any questions? Need some help?
Post Reply
scriptoo
Posts: 6
Joined: 24 Feb 2017, 18:20

AMC Report

Post 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

Code: Select all

--def storeReport=y
to create report files.
They're created in

Code: Select all

%appdata%/FileBot/reports
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

Code: Select all

--def clean=y
Thanks for your support and your awesome work in filebot!
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Report

Post 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.

Code: Select all

filebot -script fn:history

2.
--def ignore=pattern allows you to specify path exclude patterns.

e.g.

Code: Select all

--def ignore="[.]srt$"
:idea: Please read the FAQ and How to Request Help.
scriptoo
Posts: 6
Joined: 24 Feb 2017, 18:20

Re: AMC Report

Post by scriptoo »

Thanks!

Will try PushBullet in a few minutes.

Code: Select all

--def ignore
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 
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Report

Post 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
:idea: Please read the FAQ and How to Request Help.
scriptoo
Posts: 6
Joined: 24 Feb 2017, 18:20

Re: AMC Report

Post 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"
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Report

Post by rednoah »

Is Insomnia_sample.mkv larger than 100 MB?
:idea: Please read the FAQ and How to Request Help.
scriptoo
Posts: 6
Joined: 24 Feb 2017, 18:20

Re: AMC Report

Post 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" :roll: :lol:

thought

Code: Select all

--def root=y
is doing this? Maybe because the (empty) sample folder is still in there?

If you have no more desire, it's ok ;)
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Report

Post 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.
:idea: Please read the FAQ and How to Request Help.
scriptoo
Posts: 6
Joined: 24 Feb 2017, 18:20

Re: AMC Report

Post 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.
Post Reply