(path)
| 136 | m_exts.uninstall_bgm(bgms[i].name); |
| 137 | } |
| 138 | function 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 | } |
| 156 | function ui_updata_all_folders(){ |
| 157 | mdui.snackbar({ |
| 158 | message: '正在扫描新文件', |
nothing calls this directly
no outgoing calls
no test coverage detected