Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error regarding data time formats #20

Closed
p1nkyy opened this issue Feb 6, 2024 · 1 comment
Closed

Error regarding data time formats #20

p1nkyy opened this issue Feb 6, 2024 · 1 comment

Comments

@p1nkyy
Copy link

p1nkyy commented Feb 6, 2024

Hello, today (Feb 6) I encountered repeated errors when downloading certain ebooks. Here are the logs:

calibre, version 7.4.0
ERROR: Unhandled exception: <b>ValueError</b>: Failed to download e-book

calibre 7.4  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && DeDRM (10, 0, 3) && ACSM Input Plugin GUI Extension (0, 1, 0) && Find Duplicates (1, 10, 8) && KindleUnpack - The Plugin (0, 83, 1) && Modify ePub (1, 8, 2) && OverDrive Libby (0, 1, 9)
Traceback (most recent call last):
  File "calibre\gui2\threaded_jobs.py", line 82, in start_work
  File "calibre_plugins.overdrive_libby.ebook_download", line 59, in __call__
  File "calibre_plugins.overdrive_libby.download", line 253, in add
  File "calibre_plugins.overdrive_libby.download", line 97, in update_metadata
  File "calibre_plugins.overdrive_libby.libby.client", line 337, in parse_datetime
ValueError: time data '2024-02-06T00:00:00' does not match known formats ('%Y-%m-%dT%H:%M:%SZ', '%Y-%m-%dT%H:%M:%S.%fZ', '%Y-%m-%dT%H:%M:%S%z', '%Y-%m-%dT%H:%M:%S.%f%z', '%m/%d/%Y')

Also when I try to re-download the book from my Loan list, it still failed but it doesn't appear in the Loan List at all. Can we get a list of books that aren't able to be processed or downloaded due to a problem? Thanks so much.

@ping

@p1nkyy p1nkyy changed the title Error regarding data formats Error regarding data time formats Feb 8, 2024
@reedstrm
Copy link

reedstrm commented Feb 10, 2024

I'm hitting the same error, after adding a card for a new library. Seems they're not putting the timezone on their timestamps (which look to be dates extended to timestamp with zeros)
I can confirm that PR #17 works on my machine to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants