Closed Astalfr closed 1 week ago
@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.
This PR aims to fix the issue described in https://github.com/johman10/flood-for-transmission/issues/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.