mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix downloading api
This commit is contained in:
@@ -40,8 +40,8 @@ function getTextClass() {
|
|||||||
async function toggleDownload() {
|
async function toggleDownload() {
|
||||||
const operation = isDownloading.value ? 'stop' : 'start'
|
const operation = isDownloading.value ? 'stop' : 'start'
|
||||||
try {
|
try {
|
||||||
const result: { [key: string]: any } = await api.put(
|
const result: { [key: string]: any } = await api.get(
|
||||||
`download/${props.info?.hash}/${operation}`,
|
`download/${operation}/${props.info?.hash}`,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (result.success)
|
if (result.success)
|
||||||
|
|||||||
Reference in New Issue
Block a user