zhaohongxuan / obsidian-weread-plugin

Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
MIT License
1.25k stars 65 forks source link

为什么有的笔记没有被抓取? #121

Open chipsflying opened 1 year ago

chipsflying commented 1 year ago

请问,为什么同样是一天的笔记,有的就这插件抓取了,有的就没有? 在obsidian中这一章只有3条笔记

而实际还有好多条笔记

milla commented 1 year ago

Template 看着不错,能分享下吗

chipsflying commented 1 year ago
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
---
## Meta
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间 {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}

{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
{% if loop.first %}{% if bookReview.mdContent.length %}#本书评论{% endif %}{% endif %}
{% if bookReview.mdContent.length %}- {{bookReview.mdContent}} ^{{bookReview.reviewId}}
[[{{bookReview.createTime.slice(0, 10)}}]]{{bookReview.createTime.slice(10, 16)}}
{% endif %}{% endfor%}{% endif %}

{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}{% if  chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}- {{chapterReview.content}} ^{{chapterReview.reviewId}}
[[{{chapterReview.createTime.slice(0, 10)}}]]{{chapterReview.createTime.slice(10, 16)}} 
{% endfor%}
{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}
{% endfor %} {%endif %} {% endif %} {% endfor %}

{% for chapter in chapterHighlights %}{% if loop.first %}## highlights{% endif %}
### {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}
- {{ highlight.markText |trim }} — ⏱ [[{{highlight.createTime.slice(0, 10)}}]]{{highlight.createTime.slice(10, 16)}}  ^{{highlight.chapterUid}}-{{highlight.range}}
{% set regExp = r/\#/g %}{% if regExp.test(highlight.reviewContent) === false %}>#读书笔记{% endif %} {{highlight.reviewContent}}
{% else %}
- {{ highlight.markText |trim }}  — ⏱ [[{{highlight.createTime.slice(0, 10)}}]]{{highlight.createTime.slice(10, 16)}}  ^{{highlight.chapterUid}}-{{highlight.range}}
{% endif %} {% endfor %}{% endfor %}

应该是在某条问答里复制的,稍微作了一丁点修改。

milla commented 1 year ago

可以看看console错误log