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

Added internal BitTorrent v2 support #8463

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

qstokkink
Copy link
Contributor

Fixes #8457

Note: this is not the big refactor into libtorrent, just the bare minimum not to crash on v2 info dicts.

This PR:

  • Adds v2 info dict support into the TorrentDef.
  • Adds TorrentDef.get_file_indices() to fetch the file indices of the file list1.
  • Updates Files.tsx to use currentIndices instead of currentIndcices.
  • Updates various GUI files to not depend on the file list length for indices1.
  • Updates the TorrentInfoEndpoint to no longer return the raw metainfo, but instead give the files and names directly (this was previously derived inside the GUI).

Footnotes

  1. The list of files is not (or, no longer) equal to the list of indices (these include padding files now). 2

@qstokkink qstokkink force-pushed the add_btv2_support branch 2 times, most recently from 16b9b5b to bf98f26 Compare March 3, 2025 15:36
@qstokkink
Copy link
Contributor Author

Oops, the commit is still named "WIP: Add internal BitTorrent v2 support".. renaming.

@qstokkink qstokkink changed the title WIP: Add internal BitTorrent v2 support READY: Add internal BitTorrent v2 support Mar 3, 2025
@qstokkink qstokkink marked this pull request as ready for review March 3, 2025 15:46
@qstokkink qstokkink changed the title READY: Add internal BitTorrent v2 support Added internal BitTorrent v2 support Mar 4, 2025
@qstokkink qstokkink merged commit 6460acb into Tribler:main Mar 4, 2025
7 checks passed
@qstokkink qstokkink deleted the add_btv2_support branch March 4, 2025 08:30
This was referenced Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support? BitTorrent v2 torrents for the 8.1.0 release
2 participants