mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 10:54:50 +01:00
Exclude failed image downloads from download report
This commit is contained in:
parent
0f6e78da25
commit
b1c862142f
@ -411,8 +411,8 @@ public class DownloadService extends Service {
|
||||
* Creates a notification at the end of the service lifecycle to notify the
|
||||
* user about the number of completed downloads. A report will only be
|
||||
* created if the number of successfully downloaded feeds is bigger than 1
|
||||
* or if there is at least one failed download or if there is at least
|
||||
* one downloaded media file.
|
||||
* or if there is at least one failed download which is not an image or if
|
||||
* there is at least one downloaded media file.
|
||||
*/
|
||||
private void updateReport() {
|
||||
// check if report should be created
|
||||
@ -430,7 +430,9 @@ public class DownloadService extends Service {
|
||||
}
|
||||
successfulDownloads++;
|
||||
} else {
|
||||
createReport = true;
|
||||
if (status.getFeedFile().getClass() != FeedImage.class) {
|
||||
createReport = true;
|
||||
}
|
||||
failedDownloads++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user