From 99a716aa131a0e36f416e5ee8372deced084d0c1 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 18 Feb 2026 15:16:10 -0700 Subject: [PATCH] Storing parent url for every child download, useful for knowing why WROLPi is downloading something. This is displayed on the Video and Archive download edit page. Updating Archive Download edit modal to use single url input. --- app/src/components/Download.js | 9 +++-- app/src/components/admin/Downloads.js | 39 ++++++++++++++++---- modules/videos/test/test_downloader.py | 2 ++ wrolpi/downloader.py | 4 ++- wrolpi/schema.py | 1 + wrolpi/test/test_downloader.py | 50 ++++++++++++++++++++++++++ 6 files changed, 95 insertions(+), 10 deletions(-) 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) && ( +