AlistGo / AlistGo/alist

希望自动更新索引功能,增加功能,自动更新数据表x_search_nodes的size数值

Aperta
#7,715 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
50.2k
Fork
7.9k
Merge medio
7g 21h
PR unite (30g)
6

Descrizione

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
- [X] I'm sure there are no duplicate issues or discussions.
- [X] I'm sure this feature is not implemented.
- [X] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

使用的环境是,就像我的索引数据库,是通过这个项目https://github.com/suixing8/115-strm
的脚本插入到数据库的,导致size都是0,希望在自动更新索引能更新x_search_nodes的size数值,打开过一次文件后,后面搜索就能看到文件大小了

### Suggested solution / 实现思路

如果自动更新索引,新增索引数据,采取的是判断x_search_nodes表中是已存在parent和name和is_dir相同的值,再决定是否增加到数据库,那么如果存在的情况下,新增更新size值的功能,如果不存在还是正常整条信息插入

### Additional context / 附件

![image](https://github.com/user-attachments/assets/5d98eee7-99bb-4d19-9c95-e907e81d60aa)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.