modified the str method of download results, such that it also prints errors now and then

This commit is contained in:
Hellow
2023-04-04 21:06:33 +02:00
parent d9d59f36a0
commit 68e7d7cb3c
2 changed files with 20 additions and 2 deletions

View File

@@ -109,3 +109,8 @@ DEFAULT_VALUES = {
# size of the chunks that are streamed
CHUNK_SIZE = 1024
# this is a percentage describing the percentage of failed downloads,
# relative to the total downloads.
# If the percentage goes over this threshold DownloadResult returns the download errors
# in the __str__ method
SHOW_DOWNLOAD_ERRORS_THRESHOLD = 0.3