diff --git a/README.md b/README.md index cec70db..e736a55 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ It is a full Python reimplementation of libgourou by Grégory Soutadé (http://i extended by more and more features.
- ACSM Input Plugin for Calibre - Copyright (c) 2021-2022 Leseratte10 + ACSM Input Plugin for Calibre - Copyright (c) 2021-2023 Leseratte10 ``` ACSM Input Plugin for Calibre / acsm-calibre-plugin Formerly known as "DeACSM" -Copyright (c) 2021-2022 Leseratte10 +Copyright (c) 2021-2023 Leseratte10 This software is based on a Python reimplementation of the C++ library "libgourou" by Grégory Soutadé which is under the LGPLv3 or later diff --git a/calibre-plugin/__init__.py b/calibre-plugin/__init__.py index c6bcc9c..bd1cd9f 100644 --- a/calibre-plugin/__init__.py +++ b/calibre-plugin/__init__.py @@ -486,7 +486,6 @@ class ACSMInput(FileTypePlugin): self.unblock() return path_to_ebook - # That's an ACSM. # We would fulfill this now, but first perform some sanity checks ... if not self.ADE_sanity_check(): diff --git a/tests/main.py b/tests/main.py index 3ca8a6d..226381f 100755 --- a/tests/main.py +++ b/tests/main.py @@ -120,13 +120,14 @@ class TestAdobe(unittest.TestCase): - @freeze_time("2031-07-19 22:15:22.074860") - def test_verifyNonceCalculationFuture(self): - '''Check if the nonce calculation is still correct in the future''' + + @freeze_time("2038-04-27 03:34:32.543157") + def test_verifyNonceCalculationYk38(self): + '''Check if the nonce calculation works after 2038''' nonce_return = libadobe.addNonce() - expected_return = "2lQTp046AAAAAAAA2031-07-19T22:25:22Z" - self.assertEqual(nonce_return, expected_return, "Invalid nonce calculation in 2031") + expected_return = "X0fGZ4A6AAAAAAAA2038-04-27T03:44:32Z" + self.assertEqual(nonce_return, expected_return, "Invalid nonce calculation in 2038, 2k38 problem")