mirror of
https://github.com/WonderAliceUwU/OmniArr.git
synced 2026-11-22 11:35:56 +00:00
feature: add season download and request functionality
This commit is contained in:
1 parent
98db35d367
commit
55956bc52d
6 files changed
+1227
-353
No files matched your search
+12
@@ -9,6 +9,8 @@ import type {
|
||||
ServiceOptionsResponse,
|
||||
SessionResponse,
|
||||
EpisodeWatchStateRequest,
|
||||
SeasonDeletePayload,
|
||||
SeasonRequestPayload,
|
||||
TitleDetailsRequest,
|
||||
TitleDetailsResponse
|
||||
} from '../shared/contracts'
|
||||
@@ -105,4 +107,14 @@ export const api = {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ tmdbId }),
|
||||
}),
|
||||
requestSeason: (payload: SeasonRequestPayload) =>
|
||||
request<{ ok: boolean }>('/api/requests/season', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
}),
|
||||
deleteSeason: (payload: SeasonDeletePayload) =>
|
||||
request<{ ok: boolean }>('/api/seasons/delete', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
}),
|
||||
}
|
||||
Reference in new issue
Block a user