1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2025-07-17 11:16:23 +00:00

Mark files that failed to download with an 'x' in the progress window. Also modified the legend to emphasize the fact that the file will again be tried to download during the next run.

This commit is contained in:
2018-02-21 06:27:35 +01:00
parent 0e2eeab5b9
commit 3a77e91bd9
8 changed files with 19 additions and 13 deletions

View File

@@ -364,8 +364,12 @@ class DownloadManager(internal var client: TelegramClient?, p: DownloadProgressI
prog!!.onMediaAlreadyPresent(m)
} else {
try {
m.download()
prog!!.onMediaDownloaded(m)
val result = m.download()
if (result) {
prog!!.onMediaDownloaded(m)
} else {
prog!!.onMediaSkipped()
}
} catch (e: TimeoutException) {
// do nothing - skip this file
prog!!.onMediaSkipped()