251141a5c3
* Change log level of download error * Change type of sourceId in Downloader Unclear why it was converted to Long since it just got converted back to String anyway when it was used in the Downloader * Only stop downloads from source of the Downloader The downloader just changed the state of all downloads, ignoring if they are from the source the Downloader is for or not * Remove unnecessary DownloadManager::start calls In case chapters were added to the queue the DownloadManager will start itself * Extract download filtering into property * Improve Downloader logging * Notify clients only in case Downloader was started In case nothing was done there is nothing to notify about * Do not start Downloaders for failed downloads In case there were failed chapter downloads in the queue the DownloadManager still created a Downloader and started it. This Downloader would than immediately call "onComplete", since there is no available download, which then would refresh the Downloaders again which created an infinite loop until the failed download got removed from the queue * Retry download in case it failed it gets re-added to the queue In case a failed downloaded that was still in the queue was tried to get added to the queue again, nothing happened. Instead of doing nothing, the download should get retried. Thus, it also provides the logic to easily retry a failed download by just "adding" the chapter to the queue again. Currently, to retry a failed download, the download has to be removed from the queue and then get re-added. * Rename function "unqueue" to "dequeue" * Move "dequeue" function * Extract dequeue logic into function * Improve DownloadManager logging * Override "toString" of DownloadChapter