Page 1 of 1

--conflict fail

Posted: 07 May 2014, 23:49
by Tweak_four17
Is there a way to generate some kind of notification for a conflict fail when moving/copying files using AMC? Or does the rename log input a conflict fail in there somewhere that I could pull it out? def output = getRenameLog().values().fail().toList() or something..

Re: --conflict fail

Posted: 08 May 2014, 03:23
by rednoah
No, that's not supported. Though I think if you set --def unsorted=y the unsorted logic will probably catch those files that couldn't be renamed in the rename call as well.

Plus you can always grep the log ;)

EDIT: scratch that, if you set --conflict fail it will fail on any error so there won't be any post processing. You'll need to grep the log.

Re: --conflict fail

Posted: 08 May 2014, 04:46
by Tweak_four17
What about conflict skip? Anyway to have the notifications or log differentiate that? Or would unsorted count for that? Trying to determine what the best conflict option would be as I've had a couple mismatch incidents that over wrote other video files using conflict override, conflict skip just leaves them (obviously) but still sends a push notification and email log as if it copied and renamed them.

Re: --conflict fail

Posted: 08 May 2014, 06:09
by Tweak_four17
Doing some tinkering and the skipping of files from -conflict skip is coded into FileBot or groovy itself and not AMC isn't it? Is it even possible to add a couple lines into AMC to detect if it has skipped files?

Re: --conflict fail

Posted: 08 May 2014, 06:10
by rednoah
If you do --conflict skip it'll keep running. If you do --def unsorted=y and then the remainder of files will get moved to an extra folder and it'll also be in the history (thus included in the notifications).

Re: --conflict fail

Posted: 08 May 2014, 06:11
by Tweak_four17
Ok, so no clear way for it to say "[SKIPPED:] {seriesname} - S##E## - {Title}" instead of just "{seriesname} - S##E## - {Title}"?

Re: --conflict fail

Posted: 08 May 2014, 06:15
by rednoah
So what's the issue? The output should be pretty clear and easy to grep.

Code: Select all

CLILogger.info(format("Skipped [%s] because [%s] already exists", source, destination));

Re: --conflict fail

Posted: 08 May 2014, 06:16
by Tweak_four17
yes, easy to grep, but I was just trying to get it I would be notofied on my phone either via email or pushover so I didn't have to go onto my computer and dig through the logs.

Re: --conflict fail

Posted: 08 May 2014, 06:21
by rednoah
oh, sorry, that's not planned.

But the unsorted feature should work well enough. You'll see which files got moved to Unsorted in your PushBullet reports and that's the files that got skipped, or undetected.

Re: --conflict fail

Posted: 08 May 2014, 06:21
by Tweak_four17
ok cool. Thanks!

Re: --conflict fail

Posted: 12 May 2014, 12:00
by te5s3rakt
just regarding the whole "--def unsorted=y" sorting out the unprocessed/conflicted files... let me see if i understand it right...

will it move the files that conflicted/where unprocessed by filbert as a result, out of the processing folder (the one the script is running on) and into a folder called Unsorted adjacent to that.. i.e.
F:\Completed Downloads\ <<filebot runs on this dir
F:\Unsorted\ << conflicts move here...

is there a way to specify this directory?

Re: --conflict fail

Posted: 12 May 2014, 12:02
by Tweak_four17
I'm sure there is, similar to your other question about where the reports are stored...if you download the amc script and modify it and then run it locally you can tweak just about anything with it.

Re: --conflict fail

Posted: 12 May 2014, 12:05
by Tweak_four17
Check out line 447 for where it stores unsorted files, and 409-410 for where it stores reports.

Re: --conflict fail

Posted: 12 May 2014, 14:43
by te5s3rakt
ah cool... i'll look into it...

is there any issue with running the script locally instead of from online... updates perhaps? my media centre is generally a pretty set and forget sort of thing, so once i make a few modifications i might not touch any of the backend stuff for months or more... I would hate to think I would be running an old version of amc...

Re: --conflict fail

Posted: 12 May 2014, 15:36
by rednoah
If you want local scripts I'd just clone the devel branch with git clone. Whenever you feel like updating you can do a git sync and that should take care of automatically merging as well if possible.

Re: --conflict fail

Posted: 13 May 2014, 05:00
by te5s3rakt
haven't really had any experience on that front... think i'll just run with your other suggestion of using symlinks to organise myself... thanks heaps :)