Page 1 of 1

fn:history not working anymore?

Posted: 03 Mar 2016, 07:58
by hellmaker
Hi there,

i noticed that some files which have been processed are not in the history.

The log is here:
http://pastebin.com/MbbGBYUc

The output of the history here:
http://pastebin.com/34fa4eui

You see there is no "The strain" or "Supernatural" in the history.........

What is wrong here?

Re: fn:history not working anymore?

Posted: 03 Mar 2016, 08:03
by rednoah
1.
Please upload the history.xml file on pastebin.


2.
I don't see any errors in the log, so I have no idea what's going on. What are the amc/history commands you're using? Giving me specific example of which files should or should not be in the history would have been nice.

Re: fn:history not working anymore?

Posted: 03 Mar 2016, 08:10
by hellmaker
Ok it is in the .xml

http://pastebin.com/pcCE99z0

Seems that the call

Code: Select all

filebot -script fn:history
just dont output it...........

Re: fn:history not working anymore?

Posted: 03 Mar 2016, 08:13
by rednoah
Well, there's only so much that could go wrong then:
https://github.com/filebot/scripts/blob ... ory.groovy

Are you sure you're not passing in a folder or something when calling the history script? That seems to be the only reason why some history entries might be omitted.

I'd start by making sure that the history has the correct size:

Code: Select all

filebot -script "g:println getRenameLog(true).size()"

Re: fn:history not working anymore?

Posted: 03 Mar 2016, 08:19
by hellmaker
Mhhh every day i log into my diskstation and just call the history script in the same way.

filebot -script fn:history

Until now it has been working without any problems.
I have not changed anything on my system. Dunno why parts of the xml are not outputted.....

Re: fn:history not working anymore?

Posted: 03 Mar 2016, 08:41
by rednoah
1.
How many files should be in the history? According to the xml?

Code: Select all

cat `filebot -script fn:sysinfo | awk '/Data:/ {printf "%s/history.xml", $2}'` | grep "<rename" | wc -l
2.
What is the output of this script?

Code: Select all

filebot -script "g:println getRenameLog(true).size()"

Re: fn:history not working anymore?

Posted: 03 Mar 2016, 09:39
by rednoah
Your history output only contains 57 lines. When use the history script on your history xml file I get 438 lines. Are you sure that those 57 lines are the entire output? Not just the last few lines? :D

The history xml contains 657 <rename> tags but that's because the history script will only print 1 line per 1 unique input file, and you seem to be renaming the same input files multiple times (which --def excludeList should prohibit).

Re: fn:history not working anymore?

Posted: 04 Mar 2016, 09:52
by hellmaker
Mhh yes it was running the same file multiple times.

I started to use excludelist now.

Is there any way to delete files which are on excludelist automatically?

Re: fn:history not working anymore?

Posted: 04 Mar 2016, 13:29
by rednoah
No, why would you do that?

PS: You have a list of paths. How hard can it be to do rm <path> for each of them? :D