Skip to content

Uphost size limit applied to total torrent instead of selected files #475

Description

@Ritvizz

Describe the bug
When trying to mirror a torrent to Uphost, the task gets automatically cancelled if the total torrent size exceeds the size limit, even when selecting only a smaller file inside the torrent.

The size limit seems to be checked against the entire torrent size instead of the selected file size.

This issue only happens when uploading to Uphost. It does not happen when using Mirror or Leech.

To Reproduce

  1. Use the mirror command with a torrent that has a total size greater than size limit

  2. Choose Up host as the upload destination.

3 .Attempt to select only a small file from the torrent.

4.The task gets cancelled immediately due to size limit exceeding size limit

  1. It shows cancellation due to torrent size exceeding limit.

Expected behavior
The bot should:

Allow file selection first.

Apply the size limit check based on the selected files total size.

Not cancel the task if the selected files are within the size limit.

Screenshots
None

Additional context
Torrent total size: ~200GB

Selected file size: ~2GB

Torrent limit: 100GB

Issue only occurs with Uphost

Mirror/Leech works fine with the same torrent

It appears that the size validation is being performed before file selection, specifically for Uphost uploads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions