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

Convert recentTrackers->last_used to an array #2783

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

anthonyryan1
Copy link
Contributor

Previously, we were storing a string, and if a user created 20 torrents in a row, it would add 20 trailing carriage returns (\r) to the box.

We already do the logic of stripping empty lines for other purposes, reuse that here.

Add de-duplication of last used trackers (to match the list array).

Also eliminate $announce_list, because it's never used, and grep -rn announce_list * | grep global indicates no other function is using it without it being passed.

Previously, we were storing a string, and if a user created 20 torrents
in a row, it would add 20 trailing carriage returns (\r) to the	box.

We already do the logic	of stripping empty lines for other purposes,
lets reuse that here.

Add de-duplication of last used trackers (to match the list array).

Also eliminate $announce_list, because it's never used, and `grep -rn announce_list * | grep global`
indicates no other function is using it without it being passed.
@stickz stickz merged commit 1d9dfb5 into Novik:master Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants