This pull request updates the GetQueueAsync method in DownloadService to improve the accuracy of queue items by filtering them to only include downloads initiated by Listenarr. It also adds detailed logging to help debug and understand the filtering process.
Queue filtering improvements:
- The method now loads all active Listenarr downloads from the database and uses them to filter queue items from each enabled download client, ensuring only Listenarr-initiated items are included in the returned queue.
- Filtering logic matches queue items to Listenarr downloads by comparing
DownloadClientId,Id, andTitle, with detailed logging for each comparison to assist with debugging and verification.
Logging enhancements:
- Added multiple log statements to show the number of items before and after filtering, as well as details about individual downloads and queue items, making it easier to track the filtering process and diagnose issues.
Automated canary build