Vladimir Golovnev
663da093bd
Fix compilation with Qt 6.6.0
...
PR #22678 .
2025-05-12 11:27:02 +03:00
Vladimir Golovnev
d29f47c36e
Revamp adding torrents to libtorrent session
...
PR #22648 .
2025-05-08 16:31:02 +03:00
Vladimir Golovnev (Glassez)
ab04064adc
Store AddTorrentParams inside alert handlers
2025-05-07 06:52:33 +03:00
Vladimir Golovnev (Glassez)
9afbd47b52
Assign add_torrent_alert handler when adding torrent
2025-05-07 06:52:33 +03:00
Vladimir Golovnev (Glassez)
582dc99cae
Don't access libtorrent session directly from TorrentImpl
2025-05-07 06:52:33 +03:00
Vladimir Golovnev (Glassez)
3691eb948e
Join the similar code paths
2025-05-07 06:52:33 +03:00
Vladimir Golovnev (Glassez)
76bb4e5f98
Add helpers to get InfoHash from libtorrent classes
2025-05-07 06:52:23 +03:00
Vladimir Golovnev
6cd6267c26
Fix ratio handling
...
PR #22638 .
2025-05-01 14:18:18 +03:00
Vladimir Golovnev
e7dee969e1
Remove dubious seeding time max value
...
PR #22624 .
2025-05-01 08:57:10 +03:00
Vladimir Golovnev
c2f2a38582
Call QPromise::start() early to avoid race condition
...
PR #22617 .
2025-04-28 18:04:35 +03:00
Vladimir Golovnev
732b2bcbdb
Provide asynchronous results via QFuture
...
Makes asynchronous logic to look more straightforward.
Allows caller to choose blocking or non-blocking way of obtaining asynchronous results via the same interface.
PR #22598 .
2025-04-27 16:24:07 +03:00
Vladimir Golovnev
33aaa867b5
Drop support of Qt 6.5
...
PR #22599 .
2025-04-27 16:21:20 +03:00
Vladimir Golovnev
b5394e7939
Don't interpret wildcard pattern as filepath globbing
...
PR #22590 .
Closes #22583 .
2025-04-26 09:27:22 +03:00
Chocobo1
8fc5d0914d
Add versioning to socks.py
...
Also mark variable as private in novaprinter.py.
PR #22578 .
2025-04-20 16:47:45 +08:00
Kostiantyn Chernenok
fc5daf6e1d
Clamp seeding time limit in session
...
Add clamping for seeding and inactive seeding time limit on setting from dialog and loading from config.
Closes #21953 .
PR #22558 .
Signed-off-by: Kostiantyn <kos.chernenok@gmail.com >
2025-04-20 16:34:04 +08:00
Vladimir Golovnev
2785636d3f
Prevent crash due to corrupted resume data
...
PR #22569 .
Closes #22540 .
2025-04-17 11:16:17 +03:00
Vladimir Golovnev
15069b2643
Fix the torrent relocates files when switching to "manual" mode
...
PR #22564 .
Closes #22283 .
Closes #22546 .
2025-04-16 10:23:34 +03:00
Chocobo1
3d73026ff2
Add SOCKS4/SOCKS4a proxy support to search engine
...
Pass 'Perform hostname lookup via proxy' setting along the way.
Also add underline to variables and functions that are private to the python module.
PR #22510 .
2025-04-13 16:25:38 +08:00
Chocobo1
ff03eeab5b
Show info hash in log when added a duplicate torrent
...
Closes #22161 .
PR #22505 .
2025-04-08 16:31:04 +08:00
Vladimir Golovnev
055d82bda4
Add option to enable previous Add new torrent dialog behavior
...
Some people are still unhappy with "standalone window mode" of "Add new torrent dialog" so just provide them with an option to use old "modal dialog mode" in all the current qBittorrent branches.
PR #22492 (based on original PR #19874 ).
2025-03-31 09:18:16 +03:00
Chocobo1
0796f96ee4
Merge pull request #22482 from Chocobo1/process_env
...
Refine environment variable scope
2025-03-30 15:12:10 +08:00
Chocobo1
5a716a40fb
Simplify proxy related code
2025-03-28 18:39:25 +08:00
Chocobo1
943e403241
Refine environment variable scope
...
Previously the proxy environment variable will affect the qbt process globally. Now it is
limited to where it required.
2025-03-28 18:15:53 +08:00
Vladimir Golovnev
103ea813dc
RSS: Fix crash when moving a folder into its subfolder
...
PR #22479 .
Closes #18446 .
2025-03-28 09:03:59 +03:00
Vladimir Golovnev
52b1f3588a
RSS: Mark matched article as "read" if refers to duplicate torrent
...
PR #22477 .
2025-03-28 09:01:22 +03:00
Vladimir Golovnev
4bd50672e8
Improve add torrent error handling
...
PR #22468 .
2025-03-25 09:13:15 +03:00
Chocobo1
d21653e8cf
Don't leak parent file descriptors to child processes
...
It is unexpected for the child process to inherit parent file descriptors.
Requires Qt >= 6.6 and only affects Linux.
Closes #10312 .
PR #22457 .
2025-03-23 14:48:21 +08:00
Vladimir Golovnev
627d89813c
RSS: Allow to set refresh interval per feed
...
PR #22448 .
2025-03-22 08:43:04 +03:00
Chocobo1
b28c229f85
Add control for 'hostname resolver cache expiry interval'
...
Also add a few missing units in WebUI.
Closes #22267 .
PR #22439 .
2025-03-17 19:40:06 +08:00
Chocobo1
8d0870c953
Switch to string view where applicable
...
PR #22438 .
2025-03-17 19:28:38 +08:00
Chocobo1
5a4b3b25d3
Use slice method where applicable
...
These code segments already have its boundary checked and can thus be faster.
PR #22411 .
2025-03-15 14:58:59 +08:00
Vladimir Golovnev
d174bc75e4
Show free disk space in status bar
...
PR #22407 .
Closes #19607 .
2025-03-13 14:47:10 +03:00
Vladimir Golovnev
53f919aea8
Add missing includes
...
PR #22362 .
2025-03-05 09:03:00 +03:00
Chocobo1
62a7fd86d6
Improve "split to byte array views" function
...
1. Utilize string matcher
2. Remove split behavior parameter
Previously `KeepEmptyParts` behavior doesn't match Qt's
implementation and since our codebase doesn't really make use of it,
we can just remove the parameter.
3. Add tests.
PR #22352 .
2025-03-03 21:42:03 +08:00
Chocobo1
8da43a4054
Use const accessor
...
This avoids an unnecessary check to the container internal atomic variable and prevents
potential detachment.
PR #22280 .
2025-02-16 15:51:40 +08:00
sledgehammer999
7238bad5a6
Bump to v5.2.0alpha1
2025-02-11 02:04:46 +02:00
Maxime Thiebaut
4406a3f173
Add announce_port support
...
The `announce_port` setting permits to overwrite the port passed along to trackers as the `&port=` parameter. If left as the default, the listening port is used. This setting is only meant for very special cases where a seed's listening port differs from the effectively exposed port (e.g., through external NAT-PMP). See https://github.com/arvidn/libtorrent/pull/7771 for an example use-case.
This PR adds the relevant setting alongside the existing `announce_ip` setting.
PR #21692 .
2025-02-08 16:12:50 +08:00
Vladimir Golovnev
86387fbe49
Return first tracker as fallback for "current tracker"
...
PR #22224 .
Closes #20415 .
2025-02-01 14:58:12 +03:00
Vladimir Golovnev
b76054beba
Store search history
...
PR #22208 .
2025-01-30 08:59:10 +03:00
Chocobo1
f8536162f2
Use compact format for JSON files
...
It saves a bit of space on disk and deters novice users from tampering them.
PR #22211 .
2025-01-29 15:31:06 +08:00
Vladimir Golovnev
3978137534
Store opened search tabs
...
PR #22163 .
Closes #167 .
2025-01-26 17:12:50 +03:00
Chocobo1
f2eecf8a4e
Avoid memory leak on macOS
...
Only Mark-of-the-Web and Power Management are affected.
PR #22176 .
2025-01-18 20:30:14 +08:00
Chocobo1
82d90e599c
Preserve allocated buffer capacity
...
PR #22138 .
2025-01-12 21:01:39 +08:00
Hanabishi
68ecb13d14
Change URL seed error message
...
Current URL seed error message assumes that only possible error is DNS lookup failure, which is not true.
So replace it with a more generic message. Real reason is provided by the 'Error:' part.
PR #22119 .
2025-01-10 08:31:28 +03:00
Vladimir Golovnev
f9f4b60b83
Allow to refresh existing search
...
PR #22122 .
Closes #17184 .
2025-01-08 17:03:32 +03:00
Thomas Piccirello
4fc36b9e99
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 .
2025-01-08 14:51:09 +08:00
Chocobo1
22e156e0af
Simplify captured variable type
...
By capturing the specific data instead of torrent handle the lambda can become non-mutable.
PR #22102 .
2025-01-06 18:22:43 +08:00
Chocobo1
efe06f133d
Revise DHT bootstrap node list
...
Discussion:
https://github.com/qbittorrent/qBittorrent/pull/21296#issuecomment-2562341328
https://github.com/qbittorrent/qBittorrent/pull/21296#issuecomment-2561373010
PR #22081 .
2024-12-31 13:34:08 +08:00
Chocobo1
879c6bf9ff
Simplify conversion to string
...
PR #22036 .
2024-12-23 22:59:01 +08:00
Chocobo1
f2097dc4b5
Avoid redundant copy
...
PR #22035 .
2024-12-23 22:43:23 +08:00