Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file selector in torrent details #584

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Conversation

Astalfr
Copy link
Contributor

@Astalfr Astalfr commented Sep 4, 2024

This PR aims to fix the issue described in #575.

Sorting the file list before creating the folder structure could cause the file indices to be incorrect, leading to problems such as not downloading the correct file or folder.

I tested it with a torrent where I encountered this problem and it seems to work properly with this patch.

@johman10 johman10 changed the base branch from master to release November 15, 2024 15:18
@johman10 johman10 merged commit 73201c7 into johman10:release Nov 15, 2024
@johman10
Copy link
Owner

@Astalfr, thanks a lot for creating a PR. This helped me to further debug the issue you linked. I landed on a slightly different solution which involves adding the index to the file object earlier and then only depending on that to ensure we always "talk" about the right file.

I hope this makes sense, but feel free to ask questions or raise concerns. At least with my testing this solved the issue.

johman10 added a commit that referenced this pull request Nov 16, 2024
This PR aims to fix the issue described in
#575.

Sorting the file list before creating the folder structure could cause
the file indices to be incorrect, leading to problems such as not
downloading the correct file or folder.

I tested it with a torrent where I encountered this problem and it seems
to work properly with this patch.

---------

Co-authored-by: Johan van Eck <johveck@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants