feat: Implement functionality to retry only failed audiobook chapters and refine UI for batch operations.

This commit is contained in:
2026-03-11 14:37:41 +08:00
parent 22e4930d63
commit 264b511228
4 changed files with 76 additions and 42 deletions

View File

@@ -139,8 +139,9 @@ export const audiobookApi = {
return `/audiobook/projects/${projectId}/segments/${segmentId}/audio`
},
parseAllChapters: async (projectId: number): Promise<void> => {
await apiClient.post(`/audiobook/projects/${projectId}/parse-all`)
parseAllChapters: async (projectId: number, onlyErrors?: boolean): Promise<void> => {
const params = onlyErrors ? '?only_errors=true' : ''
await apiClient.post(`/audiobook/projects/${projectId}/parse-all${params}`)
},
processAll: async (projectId: number): Promise<void> => {