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

Refactor TorrentInfoEndpoint to fix JSON encoding issue #7843

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jan 22, 2024

While working on #7823 I realized that there is one instance of dead code and one instance of duplicated code in get_torrent_info, both of which have been removed in this PR, along with disputing comments.

@drew2a drew2a marked this pull request as ready for review January 22, 2024 16:29
@drew2a drew2a requested review from a team and xoriole and removed request for a team January 22, 2024 16:29
The code changes in this commit refactor the TorrentInfoEndpoint class in order to fix a JSON encoding issue. The previous implementation used json.dumps, which garbled binary data in the 'pieces' field. This commit removes that line of code and ensures that the GUI does not rely on this field.
@drew2a drew2a force-pushed the refactoring/get_torrent_info branch from e7c92d3 to b63f14c Compare January 24, 2024 06:12
@drew2a drew2a merged commit 998b445 into Tribler:main Jan 24, 2024
20 checks passed
@drew2a drew2a deleted the refactoring/get_torrent_info branch January 24, 2024 06:38
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.

2 participants