Skip to content

Commit

Permalink
feat(vscode): txt 章节识别
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed May 21, 2024
1 parent 1c60868 commit df5f325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shared/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export async function content({ filePath, chapterPath, ruleId }: any) {
let text = ''
if (rule.contentType === ContentType.MANGA)
text = content.map(src => `<img src="${src}"/>`).join('')
if (rule.contentType === ContentType.VIDEO)
else if (rule.contentType === ContentType.VIDEO)
text = content?.[0] || ''
else
text = content.join('')
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.0.1",
"version": "1.1.0",
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
"bugs": {
Expand Down

0 comments on commit df5f325

Please sign in to comment.