Page 1 of 1

duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 15:56
by sgtwtf
discovered filebot today and i got the renameing part working fine. i run the duplicate function and it has a [-] next to the 720 and a [+] next to the 480. i have tried updating the file name from {vf} to {hpi} and there was no change.

Code: Select all

filebot -script fn:duplicates "f:\Movies\31 (2016) tt3835080"
[*] 31 (2016)
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-12-28T16:27:28Z' could not be parsed at index 14
[+] 1. F:\Movies\31 (2016) tt3835080\31 2016 480p tt3835080.avi
[-] 2. F:\Movies\31 (2016) tt3835080\31 2016 720p tt3835080.mkv
Done ?(?????)?
or

Code: Select all

filebot -script fn:duplicates --mode logical --action delete "f:\Movies\31 (2016) tt3835080"
[*] 31 (2016)
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-12-28T16:27:28Z' could not be parsed at index 14
[+] 1. F:\Movies\31 (2016) tt3835080\31 2016 304p tt3835080.avi
[DELETE] 2. F:\Movies\31 (2016) tt3835080\31 2016 534p tt3835080.mkv
Done ?(?????)?
what am i doing wrong?

Re: duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 16:00
by rednoah
1.
What does filebot -script fn:sysinfo say?


2.
What does filebot -mediainfo say for the files in question?

Re: duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 16:08
by sgtwtf
1

Code: Select all

FileBot 4.9.1 (r7372)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-16 (r632)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 14
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 16 Core / 3.5 GB Max Memory / 50 MB Used Memory
OS: Windows Server 2016 (amd64)
STORAGE: NTFS [(C:)] @ 1.5 TB | NTFS [Synology] @ 1.6 TB | NTFS [Drobo] @ 6 TB
DATA: C:\Users\*************\AppData\Roaming\FileBot
Package: MSI
License: FileBot License P******** (Valid-Until: 2021-04-26)
Done ?(?????)?

2

Code: Select all

31 2016 480p tt3835080 [720x304 XviD 5.1 AC3 1?43 2.3 Mbps]
31 2016 720p tt3835080 [1280x534 x264 5.1 DTS 1?42 8.2 Mbps]

Re: duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 16:17
by rednoah
I can't reproduce the problem. Please try other files and see if there's anything special about this particular pair of files.


I can only assume that this warning is responsible for the second files having no score at all, and thus ends up at the end of the list:

Code: Select all

Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-12-28T16:27:28Z' could not be parsed at index 14

Re: duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 16:55
by sgtwtf
Is there a way to tell it to just remove the smaller file?

My concern is that there could be other files than behave like this since its unknown what the cause is. If i can tell it to remove the smaller file that would make me feel better about running this on a whole directory vs just a folder.

Re: duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 17:50
by rednoah
The -no-probe might work.

Re: duplicate cleanup is removing the betterfile..

Posted: 19 Apr 2020, 19:38
by sgtwtf
Thank you.
That worked.

Code: Select all

filebot -script fn:duplicates "f:\Movies\31 (2016) tt3835080" --conflict auto --action delete -no-probe
[*] 31 (2016)
[+] 1. F:\Movies\31 (2016) tt3835080\31 2016 534p tt3835080.mkv
[DELETE] 2. F:\Movies\31 (2016) tt3835080\31 2016 304p tt3835080.avi
Done ?(?????)?

Re: duplicate cleanup is removing the betterfile..

Posted: 20 Apr 2020, 05:34
by rednoah
If you don't mind, please run without -no-probe but with --action test and collect all the Failed to read media characteristics error messages, so we can add support for all the additional out-of-specification date patterns you might have in your library.