mirror of
https://github.com/long2icc/sonicnote-sync.git
synced 2026-07-22 07:45:14 +00:00
feat: 更新版本至1.1.7,修复同步问题并增加错误日志输出
This commit is contained in:
parent
fed8a18cb7
commit
e51eeceb41
5 changed files with 12 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "sonicnote-sync",
|
||||
"name": "SonicNote Sync",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.7",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Sync recordings from SonicNote to Obsidian as Markdown files",
|
||||
"author": "EasyLinkIn",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sonicnote-sync",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.7",
|
||||
"description": "Sync recordings from SonicNote to Obsidian as Markdown files",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@
|
|||
|
||||
<header class="header">
|
||||
<div class="badges">
|
||||
<span class="badge badge-version">v1.1.6</span>
|
||||
<span class="badge badge-version">v1.1.7</span>
|
||||
<span class="badge badge-plugin">Obsidian 插件</span>
|
||||
<span class="badge badge-skill">2 个 Skills</span>
|
||||
<span class="badge" style="background: var(--tag-green); color: var(--tag-green-text);">视频教程</span>
|
||||
|
|
@ -351,7 +351,7 @@
|
|||
<h1>SonicNote for Obsidian</h1>
|
||||
<p>录音同步、待办提取、工作总结 — 让 Obsidian 成为你的智能笔记中心</p>
|
||||
<div class="header-actions">
|
||||
<a class="download-btn" href="sonicnote-sync-v1.1.6.zip" download>
|
||||
<a class="download-btn" href="sonicnote-sync-v1.1.7.zip" download>
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
|
||||
SonicNote Sync 插件
|
||||
</a>
|
||||
|
|
@ -407,6 +407,11 @@
|
|||
|
||||
<div class="card">
|
||||
<h2>更新记录</h2>
|
||||
<h3>v1.1.7</h3>
|
||||
<ul>
|
||||
<li>修复在 Obsidian 中编辑文件属性后重新同步报"File already exists"的问题</li>
|
||||
<li>同步失败的录音和 API 请求错误详情输出到控制台(Ctrl+Shift+I 查看)</li>
|
||||
</ul>
|
||||
<h3>v1.1.6</h3>
|
||||
<ul>
|
||||
<li>登录方式从手机号+验证码切换为 API Key(在妙记 App → 我的 → API Key 管理中创建)</li>
|
||||
|
|
@ -451,7 +456,7 @@
|
|||
<div class="card">
|
||||
<h2>安装</h2>
|
||||
<ol>
|
||||
<li>点击上方按钮下载 <span class="inline-code">sonicnote-sync-v1.1.6.zip</span></li>
|
||||
<li>点击上方按钮下载 <span class="inline-code">sonicnote-sync-v1.1.7.zip</span></li>
|
||||
<li>解压 zip 文件,得到以下文件:
|
||||
<ul style="margin-top:4px;">
|
||||
<li><span class="inline-code">main.js</span></li>
|
||||
|
|
|
|||
BIN
release/sonicnote-sync-v1.1.7.zip
Normal file
BIN
release/sonicnote-sync-v1.1.7.zip
Normal file
Binary file not shown.
|
|
@ -112,8 +112,8 @@ export class SyncService {
|
|||
}
|
||||
|
||||
private extractFrontmatterField(content: string, field: string): string | null {
|
||||
const match = content.match(new RegExp(`^${field}:\\s*"?([^"]*)"\\s*$`, 'm'));
|
||||
return match ? match[1] : null;
|
||||
const match = content.match(new RegExp(`^${field}:\\s*"?([^"\\n]*)"?(?:\\s*$)`, 'm'));
|
||||
return match ? match[1].trim() : null;
|
||||
}
|
||||
|
||||
private async processRecording(recording: Recording, localIndex: Map<string, LocalFileInfo>, settings: SonicNotePluginSettings): Promise<void> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue