Skip to content

Add a setup page to the web interface - #26

Merged
combor merged 1 commit into
mainfrom
setup-page
Oct 1, 2026
Merged

combor merged 1 commit into
mainfrom
setup-page

Conversation

@combor

@combor combor commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Adds a Setup page to the web interface, so connecting Sonarr and Radarr no longer means assembling the values from the docs.

  • Connect Sonarr and Radarr: the download client's host, port and category, then each site's indexer URL, the API path and the categories for each app. "Use SSL" appears only over HTTPS.
  • Sites: each site as working, with the time of its last download, or unreachable, with the error, the next attempt and the downloads waiting.
  • This server: version, download folder and download categories.

The addresses are the ones the page was opened with, honouring X-Forwarded-Proto and X-Forwarded-Host as the Newznab API does; a note says to use another host if the apps reach magnetowid differently. The API key is named, not shown. A click selects a value whole: there are no copy buttons, because the clipboard API is not available over plain HTTP, and so no new script.

newznab exports BaseURL and Categories so the page and the API agree. Job.Unreachable tells a job held back by its provider's outage from one with an error of its own, so the page shows the right error. Only downloads tell whether a site is reachable; nothing probes the sites.

Four tabs with their counts no longer fit beside a page's control on a phone. There the tabs now take the row and scroll if they are still too wide, and the queue's Pause button goes under them, on the right.

Tested: make test; screenshots in Chromium of the page in light and dark at desktop and phone widths, including the unreachable state from a rendered sample and custom categories behind HTTPS; a Playwright check that a selected value stays selected through the page's refreshes; tab bar widths measured from 320 to 400 px with two- and three-digit counts; the queue page on a phone; the real binary by hand; Codex review.

A new Setup page shows what to enter in Sonarr and Radarr: the download
client's host, port and category, and each site's indexer URL, the API
path and the categories for each app. The addresses are the ones the
page was opened with, behind a reverse proxy too, and Use SSL appears
only over HTTPS. The API key is named, not shown. A click selects a
value whole, since the clipboard API is not available over plain HTTP.

The page also lists each site as working, with the time of its last
download, or unreachable, with the error, the next attempt and the
downloads waiting, and shows the version, the download folder and the
download categories.

newznab exports BaseURL and Categories so the page and the API agree,
and Job.Unreachable tells a job held back by its provider's outage from
one with an error of its own.

Four tabs with their counts no longer fit beside a page's control on a
phone, so there the tabs take the row, scroll if they are still too
wide, and the control goes under them.
@combor
combor merged commit 878937c into main Oct 1, 2026
7 checks passed
@combor
combor deleted the setup-page branch October 1, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant