diff --git a/README.md b/README.md index a41ba50..0d733a4 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,18 @@ This tool can parse and dump WeChat chat history on a rooted android phone. ./dump_html.py decrypted_db.db output.html ``` +### Screenshot: +An example html: +![byvoid](https://github.com/ppwwyyxx/wechat-dump/raw/master/screenshots/byvoid.jpg) + ### TODO + Search by uid/username + Skip existing files when copying android resources -+ Fix unhandled types: > 10000 and < 0 ++ Fix more unhandled types: > 10000 and < 0 + Better user experiences... see TODOs ### Disclaimers +This tool is still under development and testing, therefore it might not work very well on every device. + Use this software at your own risk. The author is not responsible for any potential damage/loss/privacy issues related to the use of this tool. diff --git a/lib/res.py b/lib/res.py index 587ae6c..372f085 100644 --- a/lib/res.py +++ b/lib/res.py @@ -1,7 +1,7 @@ #!/usr/bin/env python2 # -*- coding: UTF-8 -*- # File: res.py -# Date: Thu Jan 08 00:52:13 2015 +0800 +# Date: Fri Jan 09 11:52:53 2015 +0800 # Author: Yuxin Wu import glob @@ -31,6 +31,7 @@ JPEG_QUALITY = 50 def do_get_voice_mp3(amr_fpath): """ return base64 string, and voice duration""" assert amr_fpath.endswith('.amr') + assert os.path.isfile(amr_fpath), amr_fpath mp3_file = os.path.join('/tmp', os.path.basename(amr_fpath)[:-4] + '.mp3') @@ -75,7 +76,7 @@ class Resource(object): @timing(total=True) def get_voice_mp3(self, imgpath): idx = self.voice_cache_idx.get(imgpath) - if not idx: + if idx is None: return do_get_voice_mp3(self.speak_data[imgpath]) return self.voice_cache[idx].get() diff --git a/screenshots/byvoid.jpg b/screenshots/byvoid.jpg new file mode 100644 index 0000000..424db9d Binary files /dev/null and b/screenshots/byvoid.jpg differ