From 054e263c1023cc5399e1e6638c5e5b8b87182ffd Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 14 Apr 2024 10:47:35 +0300 Subject: [PATCH] fix: incorrect paths to DBs --- main.ts | 7 ++----- manifest.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/main.ts b/main.ts index 732103f..6c7d6ae 100644 --- a/main.ts +++ b/main.ts @@ -69,9 +69,7 @@ export default class IBookHighlightsPlugin extends Plugin { async getBooks(): Promise { try { - // const IBOOK_LIBRARY = '~/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite'; - const IBOOK_LIBRARY = '~/Downloads/test-BKLibrary.sqlite'; - // const IBOOK_LIBRARY = '~/Downloads/empty-BKLibrary.sqlite'; + const IBOOK_LIBRARY = '~/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite'; const booksSql = ` SELECT ZASSETID, ZTITLE, ZAUTHOR, ZGENRE, ZLANGUAGE, ZLASTOPENDATE, ZCOVERURL FROM ZBKLIBRARYASSET @@ -96,8 +94,7 @@ export default class IBookHighlightsPlugin extends Plugin { async getAnnotations(): Promise { try { - // const IBOOK_ANNOTATION_DB = '~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/AEAnnotation_v10312011_1727_local.sqlite'; - const IBOOK_ANNOTATION_DB = '~/Downloads/empty-AEAnnotation_v10312011_1727_local.sqlite'; + const IBOOK_ANNOTATION_DB = '~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/AEAnnotation_v10312011_1727_local.sqlite'; const annotationsSql = ` SELECT ZANNOTATIONASSETID, ZFUTUREPROOFING5, ZANNOTATIONREPRESENTATIVETEXT, ZANNOTATIONSELECTEDTEXT, ZANNOTATIONNOTE, ZANNOTATIONCREATIONDATE, ZANNOTATIONMODIFICATIONDATE, ZANNOTATIONSTYLE FROM ZAEANNOTATION diff --git a/manifest.json b/manifest.json index 7cef7f7..37898dc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "apple-books-import-highlights", "name": "Apple Books - Import Highlights", - "version": "1.2.2", + "version": "1.2.3", "minAppVersion": "0.15.0", "description": "Import your Apple Books highlights and notes to Obsidian.", "author": "bandantonio", diff --git a/package.json b/package.json index 7402df0..0353ba4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-apple-books-highlights-plugin", - "version": "1.2.2", + "version": "1.2.3", "description": "Import highlights and notes from your Apple Books to Obsidian", "main": "main.js", "scripts": {