diff --git a/app/src/components/Download.js b/app/src/components/Download.js index fc2e8923..0395d61d 100644 --- a/app/src/components/Download.js +++ b/app/src/components/Download.js @@ -856,6 +856,7 @@ export function EditArchiveDownloadForm({ } return } -export function ArchiveDownloadForm({download, onCancel, onSuccess: propOnSuccess, submitter: propSubmitter, actions}) { +export function ArchiveDownloadForm({singleDownload = false, download, onCancel, onSuccess: propOnSuccess, submitter: propSubmitter, actions}) { const [showMessage, setShowMessage] = React.useState(false); const submitter = propSubmitter || (async (formData) => { @@ -904,6 +905,10 @@ export function ArchiveDownloadForm({download, onCancel, onSuccess: propOnSucces } } + const urlInput = singleDownload ? + + : ; + return
Archives

Create a Singlefile Archive for each of the URLs provided below.

@@ -911,7 +916,7 @@ export function ArchiveDownloadForm({download, onCancel, onSuccess: propOnSucces - + {urlInput} diff --git a/app/src/components/admin/Downloads.js b/app/src/components/admin/Downloads.js index 9300eba6..b2dc6bb6 100644 --- a/app/src/components/admin/Downloads.js +++ b/app/src/components/admin/Downloads.js @@ -285,6 +285,7 @@ function OnceDownloadRow({download, fetchDownloads, isSelected, onSelect}) { const [editModalOpen, setEditModalOpen] = React.useState(false); const {url, last_successful_download, status, location, error, downloader, settings, id, tag_names} = download; + const parentDownloadUrl = settings?.parent_download_url; const handleDelete = async () => { try { @@ -328,13 +329,23 @@ function OnceDownloadRow({download, fetchDownloads, isSelected, onSelect}) { if (status === 'pending' || status === 'new') { buttonCell = ( - Stop + + + {status === 'new' && (downloader === Downloaders.Video || downloader === Downloaders.Archive) && ( +