<%- include("partials/header", { title: "Queue", activePage: "queue" }) %> <% const states = { queued: { label: "Queued", note: "Waiting to start", badge: "badge-neutral", date: "created_at", dateLabel: "Queued" }, processing: { label: "Active", note: "Claimed by workers", badge: "badge-info", date: "started_at", dateLabel: "Started" }, done: { label: "Completed", note: "Successful downloads", badge: "badge-success", date: "finished_at", dateLabel: "Finished" }, failed: { label: "Failed attempts", note: "Review the attempt log", badge: "badge-danger", date: "failed_at", dateLabel: "Failed" } }; const selected = states[filters.state]; const clearActions = { queued: { label: 'Clear waiting queue', confirmation: 'Remove every waiting episode from the queue, including episodes outside this filter or page? Active downloads will continue.' }, done: { label: 'Clear completed history', confirmation: 'Clear all completed download records, including records outside this filter or page? Downloaded files will remain on disk.' }, failed: { label: 'Clear failed history', confirmation: 'Clear all failed-attempt records, including records outside this filter or page? Retained queued episodes and files will remain unchanged.' } }; const clearAction = clearActions[filters.state]; const pageLink = (state, page, q = filters.q) => "/status?" + new URLSearchParams({ state, q, page: String(page), pageSize: String(pagination.pageSize) }).toString(); const safeSource = value => typeof value === "string" && /^https:\/\/proxer\.me\/watch\/[1-9]\d*\/[1-9]\d*\/(engsub|engdub|gersub|gerdub)$/.test(value) ? value : ""; const languages = { engsub: "English sub", engdub: "English dub", gersub: "German sub", gerdub: "German dub" }; const sourceLabel = value => { const parts = safeSource(value).split("/"); return parts.length === 7 ? "Series " + parts[4] + " · Episode " + parts[5] + " · " + languages[parts[6]] : "Source unavailable"; }; const bytes = value => { if (typeof value !== "number" || !Number.isFinite(value) || value < 0) return "—"; const units = ["B", "KiB", "MiB", "GiB", "TiB"]; const index = value > 0 ? Math.min(Math.floor(Math.log(value) / Math.log(1024)), units.length - 1) : 0; return (value / Math.pow(1024, index)).toFixed(index === 0 ? 0 : 1) + " " + units[index]; }; const displayDate = value => { const date = new Date(value); return value && Number.isFinite(date.getTime()) ? date.toLocaleString("en-GB", { dateStyle: "medium", timeStyle: "short" }) : "Not recorded"; }; %>

Download activity

Your queue, at a glance.

Follow active downloads and find the episode you need.

New download
<% if (typeof added !== "undefined" && added > 0) { %>
<%= added %> <%= added === 1 ? "episode" : "episodes" %> added to the queue. Downloads will start when a worker is available and the queue is ready.
<% } %> <%- include('partials/active-downloads') %>

<%= selected.label %>

<%= filters.state === "failed" ? "An attempt can appear here even when its retained episode later completes. Check the queue and completed downloads before resubmitting." : filters.state === "processing" ? "File size shows the current file on disk. A claimed item may be resolving its source or transferring." : filters.state === "done" ? "Completed downloads stay in history until you clear their records." : "Waiting episodes are taken by available workers when verification is clear." %>

>
>Active downloads protected
>Clear search

Updates every 10 seconds while this page is visible.

> <%= filters.q ? "No matching filenames" : "No " + selected.label.toLowerCase() %>

<%= filters.q ? "Try a shorter search or choose another state." : filters.state === "queued" ? "Add a series or a single episode to get started." : filters.state === "processing" ? "No episodes are currently claimed by a worker." : filters.state === "done" ? "Successful downloads will appear here." : "No failed attempts are recorded." %>

The clear action applies to all records in the selected state, including records outside this search or page. Clearing history keeps downloaded files on disk.

<%- include("partials/footer") %>