HandBrake

This commit is contained in:
2026-03-09 20:37:56 +00:00
parent 1b07fa4f14
commit 4c879d2485
22 changed files with 1590 additions and 773 deletions

View File

@@ -266,6 +266,29 @@ export const api = {
return request(`/history/${jobId}${suffix}`);
},
// ── User Presets ───────────────────────────────────────────────────────────
getUserPresets(mediaType = null) {
const suffix = mediaType ? `?media_type=${encodeURIComponent(mediaType)}` : '';
return request(`/settings/user-presets${suffix}`);
},
createUserPreset(payload = {}) {
return request('/settings/user-presets', {
method: 'POST',
body: JSON.stringify(payload)
});
},
updateUserPreset(id, payload = {}) {
return request(`/settings/user-presets/${encodeURIComponent(id)}`, {
method: 'PUT',
body: JSON.stringify(payload)
});
},
deleteUserPreset(id) {
return request(`/settings/user-presets/${encodeURIComponent(id)}`, {
method: 'DELETE'
});
},
// ── Cron Jobs ──────────────────────────────────────────────────────────────
getCronJobs() {
return request('/crons');