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
-
Use the mirror command with a torrent that has a total size greater than size limit
-
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
- 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.
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
Use the mirror command with a torrent that has a total size greater than size limit
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
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.