MCPcopy Create free account
hub / github.com/MrAMS/LBI / ui_sync_folder

Function ui_sync_folder

app.js:138–155  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

136 m_exts.uninstall_bgm(bgms[i].name);
137}
138function ui_sync_folder(path){
139 mdui.snackbar({
140 message: '正在扫描新文件',
141 timeout: 2000,
142 });
143 var file_list = m_exts.scan_folder_sync(path);
144 var todo_list = [];
145 for(let i=0;i<file_list.length;++i)
146 if(!m_data.have_bangumi(file_list[i].name))
147 todo_list.push(file_list[i]);
148 if(todo_list.length!=0)
149 ipcRenderer.send('start-scapper', todo_list, 'app');
150 else
151 mdui.snackbar({
152 message: '资料库已是最新',
153 timeout: 2000,
154 });
155}
156function ui_updata_all_folders(){
157 mdui.snackbar({
158 message: '正在扫描新文件',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected