]> xmof Git - DeDRM.git/commit
kfxdrm: Traipse through the kfx-zip more efficiently
authorConrad Meyer <cse.cem@gmail.com>
Thu, 5 Apr 2018 17:32:59 +0000 (10:32 -0700)
committerConrad Meyer <cse.cem@gmail.com>
Thu, 5 Apr 2018 17:32:59 +0000 (10:32 -0700)
commit4400d8d1d463a38d013ffffb5b6a403445dfc2dd
tree2f36c1ebae6cbb602cae8508cbfb94e99f6b500f
parent85e3db8f7c7332db3e5a240a41ca70effde7cb03
kfxdrm: Traipse through the kfx-zip more efficiently

We only need to read the magic bytes headers to identify files of the
correct type.  Avoid slurping the entire contents out of the zip if it's
the wrong file.
DeDRM_calibre_plugin/DeDRM_plugin/kfxdedrm.py