mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 06:53:56 +00:00
remove download on fail
This commit is contained in:
@@ -251,6 +251,13 @@ class AnimeDownloaderService : Service() {
|
||||
notificationManager.notify(NOTIFICATION_ID, builder.build())
|
||||
snackString("${task.title} - ${task.episode} Download failed")
|
||||
logger("Download failed: ${download.failureReason}")
|
||||
downloadsManager.removeDownload(
|
||||
DownloadedType(
|
||||
task.title,
|
||||
task.episode,
|
||||
DownloadedType.Type.ANIME,
|
||||
)
|
||||
)
|
||||
FirebaseCrashlytics.getInstance().recordException(
|
||||
Exception(
|
||||
"Anime Download failed:" +
|
||||
|
||||
Reference in New Issue
Block a user