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

Support fetching tracker list from URL #21828

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Piccirello
Copy link
Member

This feature is adapted from qBittorrent-Enhanced-Edition to allow for automatically adding trackers retrieved from a URL. @ngosang's trackerlist repo is a good example, however I've opted not to include a default URL.

Partially addresses #14535.

Trackers specified at the URL will be added to newly added public torrents.
@Piccirello Piccirello added this to the 5.1 milestone Nov 13, 2024
@Piccirello Piccirello requested a review from a team November 13, 2024 01:09
Comment on lines +3977 to +3985
case Net::DownloadStatus::Success:
setAdditionalTrackersFromURL(QString::fromUtf8(result.data.data()));
LogMsg(tr("Public tracker list updated"), Log::INFO);
break;
default:
LogMsg(tr("Failed to update public tracker list. Reason: \"%1\"").arg(result.errorString), Log::WARNING);
break;
}
}

Check notice

Code scanning / CodeQL

No trivial switch statements Note

This switch statement should either handle more cases, or be rewritten as an if statement.
@thalieht
Copy link
Contributor

I see only 1 problem: The box for Automatically append these trackers to new downloads is now too short in GUI, it was 8 lines high and now it's 4.5 (on my machine).

@stalkerok
Copy link
Contributor

Supersedes? #20115

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.

3 participants