mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
🎨 导入 .sy.zip 时增量建立索引 https://github.com/siyuan-note/siyuan/issues/7123
This commit is contained in:
parent
7401ae845a
commit
772984fe1b
4 changed files with 51 additions and 6 deletions
|
|
@ -93,8 +93,7 @@ func getUnOCRAssetsAbsPaths() (ret []string) {
|
|||
var assetsPaths []string
|
||||
assets := cache.GetAssets()
|
||||
for _, asset := range assets {
|
||||
lowerName := strings.ToLower(asset.Path)
|
||||
if !strings.HasSuffix(lowerName, ".png") && !strings.HasSuffix(lowerName, ".jpg") && !strings.HasSuffix(lowerName, ".jpeg") {
|
||||
if !util.IsTesseractExtractable(asset.Path) {
|
||||
continue
|
||||
}
|
||||
assetsPaths = append(assetsPaths, asset.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue