mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2026-06-18 22:12:46 +00:00
Added a code to remove Kindle watermark.
https://github.com/matimatik/DeDRM_tools/commit/f3fbc3573eadc4b505ed296176f35cd5a917cdbf
This commit is contained in:
@@ -320,6 +320,9 @@ class MobiBook:
|
|||||||
elif type == 404 and size == 9:
|
elif type == 404 and size == 9:
|
||||||
# make sure text to speech is enabled
|
# make sure text to speech is enabled
|
||||||
self.patchSection(0, b'\0', 16 + self.mobi_length + pos + 8)
|
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')
|
# print type, size, content, content.encode('hex')
|
||||||
pos += size
|
pos += size
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user