kindle manager

This commit is contained in:
gavin
2020-05-30 21:56:09 +08:00
parent 87d661fcb6
commit b4e23cf5e3
5 changed files with 335 additions and 3 deletions

View File

@@ -279,9 +279,9 @@ def drop_duplicate(bks):
prevs['content'] in vs['content']) and \
prevs['type'] == vs['type']:
bks[kb].pop(preks)
if vs['content'] != prevs['content']:
print('prevs',prevs['type'],prevs['content'])
print(' vs', vs['type'], vs['content'])
#if vs['content'] != prevs['content']:
# print('prevs',prevs['type'],prevs['content'])
# print(' vs', vs['type'], vs['content'])
preks = ks
prevs = vs
@@ -346,6 +346,7 @@ def search_clip(bks, s, t='ALL', p='ALL'):
return [nu,nbks]
# to be implement
def statistic(bks):
pass
@@ -443,3 +444,4 @@ if __name__=='__main__':
logger.debug(json.dumps(books, indent=4, sort_keys=True, ensure_ascii=False))