]> xmof Git - DeDRM.git/commitdiff
Added a code to remove Kindle watermark.
authormatimatik <matimatik@gmail.com>
Thu, 30 Apr 2015 06:24:00 +0000 (01:24 -0500)
committerNoDRM <no_drm123@protonmail.com>
Mon, 15 Nov 2021 13:06:09 +0000 (14:06 +0100)
https://github.com/matimatik/DeDRM_tools/commit/f3fbc3573eadc4b505ed296176f35cd5a917cdbf

DeDRM_plugin/mobidedrm.py

index 8f1d79d321eed2ae893afc575d41e4c28aecf7a7..844c3626432a47d7bad8f7fac08f7cbf91a6adad 100755 (executable)
@@ -320,6 +320,9 @@ class MobiBook:
                     elif type == 404 and size == 9:
                         # make sure text to speech is enabled
                         self.patchSection(0, b'\0', 16 + self.mobi_length + pos + 8)
+                    elif type == 208 and size == 219:
+                        # remove watermark (atv:kin: stuff)
+                        self.patchSection(0, '\0'*211, 16 + self.mobi_length + pos + 8)
                     # print type, size, content, content.encode('hex')
                     pos += size
         except Exception as e: