From: matimatik Date: Thu, 30 Apr 2015 06:24:00 +0000 (-0500) Subject: Added a code to remove Kindle watermark. X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=7058fbeb98bfbf0684888b8f136bd5c928870c9a;p=DeDRM.git Added a code to remove Kindle watermark. https://github.com/matimatik/DeDRM_tools/commit/f3fbc3573eadc4b505ed296176f35cd5a917cdbf --- diff --git a/DeDRM_plugin/mobidedrm.py b/DeDRM_plugin/mobidedrm.py index 8f1d79d..844c362 100755 --- a/DeDRM_plugin/mobidedrm.py +++ b/DeDRM_plugin/mobidedrm.py @@ -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: