Chocobo1
138c911ef4
Add compile definition to indicate using of libtorrent 2.0 ( #15297 )
...
The compile definition is temporary which will be removed when qbt
ditches libtorrent 1.x.
3 years ago
AbeniMatteo
e4730191db
Set default file priorities when not specified ( #15190 )
3 years ago
AbeniMatteo
01d851440b
Add "Forced metadata downloading" state ( #15185 )
4 years ago
Vladimir Golovnev (Glassez)
399d3ad85a
Replace QStringRef with QStringView
4 years ago
Chocobo1
fd3d4d479a
Suppress type narrowing warning on MSVC
...
Fix up 45e31a153c
.
4 years ago
Chocobo1
45e31a153c
Reserve space for vector
4 years ago
Chocobo1
7c23d800e6
Use `underlying_type` member directly
...
`LTUnderlyingType` served as a intermediate type for libtorrent 1.1 and
1.2 and is obsoleted now.
Also add helper to convert to underlying type.
4 years ago
Chocobo1
365554d064
Use proper signed number type
...
This also suppress the compiler warning:
src/base/bittorrent/torrentimpl.cpp:228:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
4 years ago
Kacper Michajłow
ccb59fbad3
Suppress C4267 conversion warnings ( #13307 )
...
- warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Caused by mismatch between size_type of std and Qt containers. It is safe to cast to int as all of those containers hold low number of objects.
4 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
Vladimir Golovnev (Glassez)
6aa8251b98
Provide correct error description in "upload mode"
4 years ago
Chocobo1
fdc186c92f
Revise tag related implementations
...
Fix #12690 .
4 years ago
Vladimir Golovnev (Glassez)
75e0990eb3
Provide tracker peers count via TrackerEntry
...
Don't expose additional accessor in Torrent interface.
4 years ago
Vladimir Golovnev (Glassez)
62a6c725d6
Don't overwrite tracker message
...
Use one of the tracker endpoint messages.
4 years ago
Vladimir Golovnev (Glassez)
d4554c2e5c
Correctly handle "no enough disk space" error
...
If torrent failed to write, it stops downloading and goes to
"upload mode" instead of errored state so it just keeps seeding.
Now qBittorrent indicates this state as "errored" and allows
the user to manually bring the torrent out of this state.
4 years ago
Chocobo1
53b7956968
Clean up code
...
and remove unused parameters/variables.
4 years ago
Vladimir Golovnev (Glassez)
1344b31535
Improve ResumeDataStorage
4 years ago
Vladimir Golovnev (Glassez)
cd6959b712
Save "resume data" once file priority is changed
4 years ago
Vladimir Golovnev (Glassez)
35dedd3d83
Implement BencodeResumeDataStorage class
...
Implement ResumeDataStorage class as base for all "resume data" storages.
Implement BencodeResumeDataStorage class and put all existing logic of
"resume data" loading/saving there.
4 years ago
Vladimir Golovnev (Glassez)
764aabc459
Wrap "resume data" in LoadTorrentParams
4 years ago
Vladimir Golovnev (Glassez)
5d889e4a8f
Drop deprecated code
4 years ago
Vladimir Golovnev (Glassez)
b65a714d17
Save resume data when torrent has done checking
4 years ago
Vladimir Golovnev (Glassez)
560239c918
Improve "save resume data" handling
4 years ago
Vladimir Golovnev (Glassez)
0c9ecd1d76
Properly show tracker status for "paused" torrents
4 years ago
Vladimir Golovnev (Glassez)
561b597031
Improve "info hash" handling
...
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1,
or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2.
Add support for native libtorrent2 info hashes.
4 years ago
Vladimir Golovnev (Glassez)
6d6908e625
Initialize torrent status from add torrent params
4 years ago
Vladimir Golovnev (Glassez)
7a8c05dc7c
Improve tracker entries handling
4 years ago
Vladimir Golovnev (Glassez)
8cfd803222
Drop implicit conversions between InfoHash and QString
4 years ago
Chocobo1
e46c88580a
Revise getter function for torrrent queue position
...
This addresses https://github.com/qbittorrent/qBittorrent/pull/14335#issuecomment-774667836
The WebAPI is not affected as a workaround is added.
4 years ago
Vladimir Golovnev (Glassez)
c3f02d833c
Restart "missing files" torrents after changing location
4 years ago
Vladimir Golovnev (Glassez)
e273ac3a0d
Allow "missing files" torrents to save more resume data
4 years ago
Vladimir Golovnev (Glassez)
0b4fef19f6
Remove redundant suffix from TorrentHandle class
...
Originally, it was just a wrapper for libtorrent::torrent_handle class, so it mimicked its name.
It was then transformed into a more complex aggregate, but the name was retained (just by inertia).
Unlike libtorrent::torrent_handle class in whose name "handle" means the pattern used,
it does not matter for qBittorrent classes and just eats up space in the source code.
4 years ago
Vladimir Golovnev (Glassez)
b2199202ab
Reload "missing files" torrent instead of re-checking
4 years ago
Vladimir Golovnev (Glassez)
06105072f9
Extract torrent reloading logic into separate method
4 years ago
Chocobo1
d70b893852
Bump project requirement to C++17
4 years ago
Vladimir Golovnev (Glassez)
4453e7fcdd
Improve content file/folder names handling
...
Move files/folders renaming functions to core classes.
Query file/folder for renaming by its current path.
Add ability to rename content folders from WebAPI/WebUI.
4 years ago
thalieht
8db4bde15d
Group several torrent options into one dialog
...
Speed limits, share limits and the new options to disable DHT, PeX, LSD per torrent
4 years ago
thalieht
fbb8f0cbf5
Save fastresume when setting torrent speed limits
4 years ago
Vladimir Golovnev (Glassez)
1d5dc283fe
Allow to add root folder to torrent content
4 years ago
Vladimir Golovnev (Glassez)
77555cd5c2
Improve torrent name handling
4 years ago
Vladimir Golovnev (Glassez)
5f94238d23
Fix bug of torrents don't save "stopped" state
4 years ago
Vladimir Golovnev (Glassez)
4e04cd27c9
Fix received metadata handling
4 years ago
Vladimir Golovnev
2f6ed86c78
Drop support for building with libtorrent < 1.2.11
...
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
4 years ago
Vladimir Golovnev (Glassez)
9497300a4a
Don't rewrite TorrentInfo instance if it's valid
4 years ago
sledgehammer999
be5cb1683b
Fix status of torrents without metadata
4 years ago
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
4 years ago
Chocobo1
0be2567d97
Don't use deprecated torrent state "allocating"
...
Closes #13737 .
4 years ago
Vladimir Golovnev (Glassez)
85bd0feee0
Handle torrent "paused" state at application level
4 years ago
Vladimir Golovnev (Glassez)
80ca7796ca
Fix torrent state calculation
4 years ago
Vladimir Golovnev (Glassez)
9f0edde12b
Don't resume "paused" torrents when checking by libtorrent
4 years ago