Skip to content

Wrong error message, if total file size doesn't match expected file size. #60

@ZonderP

Description

@ZonderP

In pySmartDL.py in function 'post_threadpool_actions' there is the following line:
errMsg = 'Diff between downloaded files and expected filesizes is {}B (filesize: {}, expected_filesize: {}, {} threads).'.format(total_filesize, expected_filesize, diff, threads)

This line is wrong and should be replaced by:
errMsg = 'Diff between downloaded files and expected filesizes is {}B (filesize: {}, expected_filesize: {}, {} threads).'.format(diff, total_filesize, expected_filesize, threads)

The current error is very misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions