hadynz / obsidian-kindle-plugin

Sync your Kindle notes and highlights directly into your Obsidian vault
MIT License
941 stars 52 forks source link

[BUG] Error "can't parse page number with pageMetaDatastr" with my clippings.txt #263

Open tiffena opened 1 year ago

tiffena commented 1 year ago

Describe the bug

Error "can't parse page number with pageMetaDatastr" when trying to sync my clippings.txt for the first time

Method of syncing

To Reproduce

Steps to reproduce the behaviour:

  1. Go to 'Sync your kindle highlight'
  2. Click on 'Sync'
  3. Click "upload my clipping file", click "Sync now', browse to my clipping.txt file
  4. Errors from Developer Tools console : plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n eval @ plugin:obsidian-kindle-plugin:1 plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt. Error: Can't parse page number from pageMetadataStr: 的书签 startSync @ plugin:obsidian-kindle-plugin:303 plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n eval @ plugin:obsidian-kindle-plugin:1 plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt. Error: Can't parse page number from pageMetadataStr: 的书签 startSync @ plugin:obsidian-kindle-plugin:303 DevTools failed to load source map: Could not load content for app://obsidian.md/main.js.map: System error: net::ERR_FILE_NOT_FOUND plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n {titleLine: '完全失踪手冊', metadataLine: '- 您在第 4 页的书签 | 添加于 2015年3月31日星期二 下午2:25:19', contentLines: ''} eval @ plugin:obsidian-kindle-plugin:1 t.parseRawBlocks @ plugin:obsidian-kindle-plugin:1 t.readMyClippingsFile @ plugin:obsidian-kindle-plugin:1 eval @ plugin:obsidian-kindle-plugin:301 startSync @ plugin:obsidian-kindle-plugin:301 await in startSync (async) onMyClippingsSync @ plugin:obsidian-kindle-plugin:303 onClick @ plugin:obsidian-kindle-plugin:298 eval @ plugin:obsidian-kindle-plugin:295 plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt. Error: Can't parse page number from pageMetadataStr: 的书签

Expected behaviour

If unable to parse a particular entry, skip it and proceed to the next

Metadata

LindiaC commented 12 months ago

I have the same issue. I figured out that if I switch the language to English, it works fine. So the problem may be that the parser cannot parse Chinese strings.

LindiaC commented 12 months ago

I have the same issue. I figured out that if I switch the language to English, it works fine. So the problem may be that the parser cannot parse Chinese strings.

I can give a simple solution to this -- translate all the location and datetime info in My Clipping.txt to English by brute force. See here for more.

LindiaC commented 10 months ago
        I guess the original plugin only supports parsing the book info(eg. title and time) in English. If you really need it, I can help to transfer the clipping file to its English format without changing the highlight contents. A Italian example of highlight is needed.

                    ***@***.***

---- Replied Message ----

     From 

        ***@***.***>

     Date 

    12/11/2023 02:30

     To 

        ***@***.***>

     Cc 

        ***@***.***>
        ,

        ***@***.***>

     Subject 

          Re: [hadynz/obsidian-kindle-plugin] [BUG] Error "can't parse page number with pageMetaDatastr" with my clippings.txt (Issue #263)

same issue Here, but my kindle has only book in italian and english

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

rotello commented 10 months ago

LindiaC you are super kind, but don't worry! i will just copy paste the txt file into Obsisian. not a big problem!