fix: support orphaned *arr queue items and improve download matching reliability (#73)
Build and Push Docker Image / build (push) Successful in 1m55s
Docs Check / Markdown lint (push) Successful in 2m14s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 2m40s
CI / Security audit (push) Successful in 3m10s
CI / Swagger Validation & Coverage (push) Successful in 3m31s
Docs Check / Mermaid diagram parse check (push) Successful in 3m48s
CI / Tests & coverage (push) Failing after 4m7s
Build and Push Docker Image / build (push) Successful in 1m55s
Docs Check / Markdown lint (push) Successful in 2m14s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 2m40s
CI / Security audit (push) Successful in 3m10s
CI / Swagger Validation & Coverage (push) Successful in 3m31s
Docs Check / Mermaid diagram parse check (push) Successful in 3m48s
CI / Tests & coverage (push) Failing after 4m7s
This commit is contained in:
@@ -528,6 +528,16 @@ router.get('/stream', requireAuth, async (req, res) => {
|
||||
type: c.getClientType()
|
||||
}));
|
||||
|
||||
// Append orphaned synthetic client entry if orphaned downloads exist
|
||||
const hasOrphaned = userDownloads.some(dl => dl && dl.isOrphaned);
|
||||
if (hasOrphaned && !downloadClients.some(c => c.id === 'orphaned')) {
|
||||
downloadClients.push({
|
||||
id: 'orphaned',
|
||||
name: 'Orphaned (unconfigured client)',
|
||||
type: 'orphaned'
|
||||
});
|
||||
}
|
||||
|
||||
// Filter Ombi requests by user if not admin or if showAll is false
|
||||
const ombiRequests = snapshot.ombiRequests || { movie: [], tv: [] };
|
||||
const showAllOmbi = showAll; // Use the same showAll flag for Ombi
|
||||
|
||||
Reference in New Issue
Block a user