| Junior Member 
				 
				Posts: 6 Karma: 10 Join Date: Feb 2024 Device: none      | 
				
				Error downloading
			 
 
			
			Looks like the publish date on this book does not have a Z at the end, and that blows up the download call
 calibre, version 7.5.1
 ERROR: Unhandled exception: <b>ValueError</b>: Failed to download e-book
 
 calibre 7.5.1  embedded-python: True
 macOS-14.3.1-arm64-arm-64bit Darwin ('64bit', '')
 ('Darwin', '23.3.0', 'Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020')
 Python 3.11.5
 OSX: ('14.3.1', ('', '', ''), 'arm64')
 Interface language: None
 EXE path: /Applications/calibre.app/Contents/MacOS/calibre
 Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 8, 1) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 8, 1) && Action Chains (1, 19, 4) && Count Pages (1, 13, 4) && Extract ISBN (1, 6, 0) && Find Duplicates (1, 10, 8) && KFX metadata reader (from KFX Input) (2, 8, 1) && From KFX (2, 8, 1) && KFX Input (2, 8, 1) && Set KFX metadata (from KFX Output) (2, 6, 1) && KFX Output (2, 6, 1) && Modify ePub (1, 8, 2) && OverDrive Libby (0, 1, 9) && Quality Check (1, 13, 8) && Reading List (1, 15, 1) && TextDiff (1, 2, 4) && View Manager (1, 10, 2)
 Traceback (most recent call last):
 File "calibre/gui2/threaded_jobs.py", line 82, in start_work
 File "calibre_plugins.overdrive_libby.ebook_downloa  d", line 59, in __call__
 self.add(
 File "calibre_plugins.overdrive_libby.download", line 253, in add
 metadata = self.update_metadata(
 ^^^^^^^^^^^^^^^^^^^^^
 File "calibre_plugins.overdrive_libby.download", line 97, in update_metadata
 LibbyClient.parse_datetime(loan["publishDate"])
 File "calibre_plugins.overdrive_libby.libby.client"  , line 337, in parse_datetime
 raise ValueError(f"time data '{value}' does not match known formats {formats}")
 ValueError: time data '2012-09-11T00: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')
 |