Failed to read media characteristics: DateTimeParseException

All your suggestions, requests and ideas for future development
Post Reply
korzynski
Posts: 10
Joined: 17 Jun 2020, 06:13

Failed to read media characteristics: DateTimeParseException

Post by korzynski »

I've encountered a handful of files that include a DateTime metadata field that FileBot is unable to parse. Listed below are the 17 errors I received when scanning my library.

Unfortunately, the log doesn't specify which files generated the errors, and it's very time-consuming to determine it by hand. Based on the log entries immediately before and after the exception, I can determine a range of files that might have caused the error, and then I have to look through the metadata of each possible file to find the one containing the specified timestamp. I was able to find a couple of the files and could provide the complete metadata if that would be helpful.

Several files apparently contain just the characters "UTC" in a date field, so obviously there's no way to parse that. But the others have various formats that could be interpreted to valid dates

Fortunately, it doesn't appear that these exceptions impact the identification and naming of the files., but it would be great if FileBot could:
1) Successfully parse timestamps using any of the formats below that can be parsed
2) Include the name of the file in exception messages when an entry cannot be parsed (and ideally the field name, instead of just an index number)
3) Indicate in the log whether or not a parsing error affects the ability to process the file

Code: Select all

Failed to read media characteristics: DateTimeParseException: Text 'UTC 2018-12-17T05:14:42Z' could not be parsed at index 14
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2018-12-14T05:58:04Z' could not be parsed at index 14
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-05-25 10:45:31 / UTC ' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-07-09T09:13:19Z' could not be parsed at index 14
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2019-02-20T18:43:12Z' could not be parsed at index 14
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2018-05-03 04:57:05 / UTC 2018-05-01T22:19:44Z' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2018-05-03 04:36:53 / UTC 2018-05-01T22:19:44Z' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2020-01-25 23:06:01 / UTC 2020-01-25T20:06:32Z' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC ' could not be parsed at index 4
Failed to read media characteristics: DateTimeParseException: Text 'UTC ' could not be parsed at index 4
Failed to read media characteristics: DateTimeParseException: Text 'UTC ' could not be parsed at index 4
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2020-01-26 02:23:53 / UTC 2020-01-25T22:50:13Z' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-09-12T20:10:28Z' could not be parsed at index 14
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2019-09-04 22:59:20 / UTC 2019-09-03T01:49:10Z' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2016-06-15T16:27:10Z' could not be parsed at index 14
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2019-06-05 00:58:38 / UTC 2019-06-03T05:00:04Z' could not be parsed, unparsed text found at index 23
Failed to read media characteristics: DateTimeParseException: Text 'UTC 2017-04-07 14:38:11 / UTC 2017-04-06T19:46:35Z' could not be parsed, unparsed text found at index 23
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Failed to read media characteristics: DateTimeParseException

Post by rednoah »

1.
Mostly fixed already I believe. Please try the latest revision to see if we're still missing any of these patterns:
viewtopic.php?t=1609


2.
What does filebot -script fn:sysinfo say?
:idea: Please read the FAQ and How to Request Help.
Post Reply