Replies: 2 comments
-
+1,我这边80w+的短剧记录,all就oom,只有1k最高可选,删到手酸都删不完 |
Beta Was this translation helpful? Give feedback.
0 replies
-
登录mp 浏览器控制台执行 // 起始ID
const maxId = 4321;
const token = `Bearer xxx`;
const host = "//127.0.0.1:8080"
async function deleteHistory() {
for (let id = maxId; id >= 0; id--) {
try {
const response = await fetch(`${host}/api/v1/history/transfer?deletesrc=false&deletedest=false`, {
method: 'DELETE',
headers: {
'accept': 'application/json, text/plain, */*',
'accept-language': 'zh-CN,zh;q=0.9',
'authorization': token,
'cache-control': 'no-cache',
'content-type': 'application/json',
'pragma': 'no-cache'
},
referrerPolicy: 'no-referrer',
body: JSON.stringify({ id: id }),
mode: 'cors',
credentials: 'include'
});
const result = await response.json();
console.log(`Deleted item with id ${id}:`, result);
} catch (error) {
console.error(`Failed to delete item with id ${id}:`, error);
}
}
}
deleteHistory(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MoviePilot的历史记录希望可以增加一键删除功能,每次需要重新刮削转移的时候手动删除一页100条的删除,选择ALL直接卡死,现在短剧比较火爆,一般短剧动不动100集。我历史记录6万多条,删一整天都删除不玩,希望可以出一个一件删除功能
Beta Was this translation helpful? Give feedback.
All reactions