Support fetching tracker list from URL

Trackers specified at the URL will be added to newly added public torrents.

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.
PR #21828.
This commit is contained in:
Thomas Piccirello
2025-01-07 22:51:09 -08:00
committed by GitHub
parent 4f3d77963f
commit 4fc36b9e99
7 changed files with 221 additions and 0 deletions

View File

@@ -3148,6 +3148,49 @@ Disable encryption: Only connect to peers without protocol encryption</string>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="checkAddTrackersFromURL">
<property name="title">
<string>Automatically append trackers from URL to new downloads:</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="checkAddTrackersFromURLLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_21">
<item>
<widget class="QLabel" name="labelCustomizeTrackersListUrl">
<property name="text">
<string>URL:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="textTrackersURL"/>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="labeltrackersFromURL">
<property name="text">
<string>Fetched trackers</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="textTrackersFromURL">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_8">
<property name="orientation">