Vladimir Golovnev (Glassez)
4037143f4e
Raise minimum supported Qt version to 5.12
2021-03-23 22:26:26 +02:00
Vladimir Golovnev (Glassez)
50bd845682
Initialize torrent status from add torrent params
2021-03-23 22:26:20 +02:00
Vladimir Golovnev (Glassez)
437b51b3a5
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.
2021-03-23 22:26:18 +02:00
Vladimir Golovnev (Glassez)
c2ccc9dfa4
Properly show tracker status for "paused" torrents
2021-03-23 22:26:16 +02:00
Vladimir Golovnev (Glassez)
b2c7d8211f
Improve tracker entries handling
2021-03-23 22:26:14 +02:00
Vladimir Golovnev (Glassez)
ae2bb4efeb
Accept "share limits" when adding torrent using WebAPI
2021-03-23 22:26:12 +02:00
Chocobo1
d0ec1c4a86
Expose ToS setting from libtorrent
...
Closes #14420 .
2021-03-23 22:26:08 +02:00
Vladimir Golovnev (Glassez)
b45fb74e01
Define template for classes that represent SHA hashes
2021-03-23 21:05:41 +02:00
Vladimir Golovnev (Glassez)
f16c585a77
Drop implicit conversions between InfoHash and QString
2021-03-23 21:05:40 +02:00
Chocobo1
e713ffb064
Properly stop torrent creation if aborted
...
Closes #11346 .
2021-03-23 21:05:37 +02:00
Vladimir Golovnev (Glassez)
2d607f8c1a
Raise minimum libtorrent version to 1.2.12
2021-03-23 21:05:34 +02:00
Chocobo1
27e222455b
Improve detection of filename extension of audio/video files
2021-03-23 21:05:31 +02:00
Michał Kopeć
2b18318e0c
Add an option to disable icons in menus
2021-03-23 21:05:30 +02:00
Chocobo1
b20a3c5b8e
Use std::optional to return results
2021-03-23 21:05:25 +02:00
Chocobo1
2c5271b3b2
Fix potential out-of-bounds access
2021-03-23 21:05:24 +02:00
Chocobo1
58345e5bbf
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.
2021-03-23 21:05:21 +02:00
Chocobo1
bf67ef21c6
Clean up coding style
2021-03-23 21:05:18 +02:00
Vladimir Golovnev (Glassez)
8210f9841e
Restart "missing files" torrents after changing location
2021-03-23 21:05:16 +02:00
Vladimir Golovnev (Glassez)
ae3d17ec01
Allow "missing files" torrents to save more resume data
2021-03-23 21:05:15 +02:00
Vladimir Golovnev (Glassez)
349e958be3
Allow change-case-only file renaming on Windows
2021-03-23 21:05:14 +02:00
dyumin
a454a0303d
Treat errored torrents as finished
2021-03-23 21:05:11 +02:00
an0n666
230f98da4a
Validate HTTPS Tracker Certificate by default
2021-03-23 21:04:56 +02:00
Vladimir Golovnev (Glassez)
13cb3b5ca1
Drop extension from generated content folder name
...
Try to detect whether generated content folder name contains extension
and drop it to avoid possible conflicts between file/folder names.
2021-03-23 21:04:38 +02:00
sledgehammer999
da0b276d5f
Bump to 4.3.3
2021-01-19 00:47:04 +02:00
Chocobo1
fdd54fe568
Simplify code for checking free disk space
...
`QStorageInfo::bytesAvailable()` is guaranteed to return `-1` for an
invalid path.
https://doc.qt.io/qt-5/qstorageinfo.html#bytesAvailable
2021-01-19 00:45:13 +02:00
Chocobo1
e5ce24e55e
Improve detection of file extension string
2021-01-19 00:45:06 +02:00
Chocobo1
be929ed88c
Set source character sets to UTF-8
...
This suppress warning C4819.
https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-160
2021-01-17 22:50:35 +02:00
Chocobo1
2e1f9bf8be
Add script for generating project tarball
2021-01-17 22:50:20 +02:00
lbilli
7fff393b0e
On Linux use legacy 'data' directory only as a fallback
2021-01-17 22:47:13 +02:00
Vladimir Golovnev (Glassez)
1880082017
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.
2021-01-17 22:47:00 +02:00
Chocobo1
77f4e6c2cf
Generate version header when configuring project
...
The basic idea is we create a version header template at
"src/base/version.h.in" and the build systems are expected to replace
strings that are enclosed with @ symbols and generate
"src/base/version.h" for other source files to consume/include.
2021-01-06 21:36:39 +02:00
Vladimir Golovnev (Glassez)
58ac07667e
Use single parameter to accept torrent source
2021-01-06 21:36:34 +02:00
Vladimir Golovnev (Glassez)
74bf3af41c
Use std::optional<bool> instead of custom TriStateBool
2021-01-06 21:36:33 +02:00
Vladimir Golovnev (Glassez)
9317071122
Change parseBool() to return optional bool value
2021-01-06 21:36:31 +02:00
Vladimir Golovnev (Glassez)
dab32f2090
Use std::optional instead of boost::optional
2021-01-06 21:36:29 +02:00
Vladimir Golovnev (Glassez)
dc464d4d41
Use nested namespaces definition syntax
2021-01-06 21:36:28 +02:00
Chocobo1
5a1c4e79b3
Revise store/load state operations of Options Dialog
2021-01-06 21:36:26 +02:00
Chocobo1
d7afad835e
Revise SettingsStorage store/load value interface
2021-01-06 21:36:22 +02:00
Chocobo1
8608d7b9da
Improve load data behavior of SettingsStorage class
...
Previously it only handle the case of failed lookup, now it discard
invalid values when deserializing the database from disk.
Also checks whether the data is convertible to the intended type.
2021-01-06 21:36:22 +02:00
Vladimir Golovnev (Glassez)
72970602af
Reload "missing files" torrent instead of re-checking
2021-01-06 21:36:20 +02:00
Vladimir Golovnev (Glassez)
86579ca87d
Extract torrent reloading logic into separate method
2021-01-06 21:36:19 +02:00
Vladimir Golovnev (Glassez)
e55582124c
Drop notification about move storage failed
2021-01-06 21:36:17 +02:00
Vladimir Golovnev (Glassez)
bd8b06c607
Drop notification about move storage finished
2021-01-06 21:36:16 +02:00
Chocobo1
230fedf069
Move parsing of TriStateBool to a static class function
2021-01-06 21:36:14 +02:00
Chocobo1
ad79fc8d43
Migrate away from deprecated std::iterator class
2021-01-06 21:31:51 +02:00
Chocobo1
ec420f6617
Bump project requirement to C++17
2021-01-06 21:31:47 +02:00
Chocobo1
d908227619
Add a thin layer around SettingsStorage class
...
This new layer would be handy for saving GUI widget states as they don't
need the value cached and they store/load rarely.
2021-01-06 21:31:45 +02:00
sledgehammer999
ac8167410b
Add new languages
...
* Azerbaijani
* Estonian
2021-01-06 21:31:44 +02:00
Vladimir Golovnev (Glassez)
b418f65c2f
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.
2021-01-06 21:31:41 +02:00
Vladimir Golovnev (Glassez)
dd3a8d5d56
Fix folder name extraction functions
...
It should return empty string if there is no parent folder.
2021-01-06 21:31:39 +02:00