Chocobo1
5a96e1fc7a
Use Qt provided forward declaration header
2020-12-26 20:26:58 +02:00
Chocobo1
177ac32a5e
Use the correct type when referring to info hash
2020-12-26 20:26:55 +02:00
Vladimir Golovnev (Glassez)
5f34d1555b
Fix received metadata handling
2020-12-26 20:26:54 +02:00
Vladimir Golovnev
f94f4d2391
Drop support for building with libtorrent < 1.2.11
...
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru >
2020-12-26 20:26:52 +02:00
FranciscoPombal
817e9c4747
Fix method invocation on Qt < 5.10
...
Fixup 0c3fe54b0b
2020-12-26 20:26:48 +02:00
Vladimir Golovnev (Glassez)
28844eff44
Search for existing files in separate thread
2020-12-26 20:26:47 +02:00
Vladimir Golovnev (Glassez)
389664213b
Don't rewrite TorrentInfo instance if it's valid
2020-12-26 20:26:46 +02:00
Vladimir Golovnev (Glassez)
953b6fd6f8
Properly handle "Append extension" option changing
2020-12-26 20:26:45 +02:00
Vladimir Golovnev (Glassez)
9b4f3fcbf8
Clean up metadata downloading code
2020-12-26 20:26:43 +02:00
sledgehammer999
894446d308
Don't try to remove folders for a torrent without metadata
2020-12-26 20:26:34 +02:00
sledgehammer999
47e9c5ac08
Fix status of torrents without metadata
2020-12-26 20:26:33 +02:00
Vladimir Golovnev (Glassez)
1728c16580
Improve coding style
2020-11-24 16:14:14 +02:00
sledgehammer999
7092a98c93
Add Latgalian translation
...
Closes #12415
2020-11-24 16:14:08 +02:00
Chocobo1
b6ab2abf3f
Don't use deprecated torrent state "allocating"
...
Closes #13737 .
2020-11-24 16:14:05 +02:00
Vladimir Golovnev (Glassez)
3edaaa30c9
Handle torrent "paused" state at application level
2020-11-24 16:14:04 +02:00
FranciscoPombal
f92c4c0a40
Fix extra/missing trailing new lines in files
2020-11-24 16:14:00 +02:00
Chocobo1
baa609b713
Remove unused function
2020-11-24 16:13:55 +02:00
NotTsunami
88a90ed7d4
Fix mingw64 build error
...
mingw64 defines interface, so revert back to previous naming scheme
Fixes: 87864531ab
Closes #13649
2020-11-24 16:13:51 +02:00
Vladimir Golovnev (Glassez)
5730e917a1
Fix torrent state calculation
2020-11-24 16:13:46 +02:00
Vladimir Golovnev (Glassez)
5e7d7c2ef0
Don't resume "paused" torrents when checking by libtorrent
2020-11-24 16:13:45 +02:00
Chocobo1
7e89893454
Add support for tracker scrape in libtorrent 2.0
2020-11-24 16:13:39 +02:00
Chocobo1
d83f09e731
Migrate away from deprecated functions in libtorrent 2.0
2020-11-24 16:13:38 +02:00
Chocobo1
36575b225d
Improve compatibility with libtorrent 2.0
...
In libtorrent 2.0, the `connection_type` was changed to a flag type and
hence it cannot be used in a switch statement directly. Also our use of
`connection_type` is limited so that a single equality comparison
would cover all of our use cases.
2020-11-24 16:13:36 +02:00
Chocobo1
621578353d
Remove redundant checking before remove
2020-11-24 16:13:29 +02:00
Chocobo1
ca776c3036
Fix class name
2020-11-24 16:13:28 +02:00
Chocobo1
9d27eb3b57
Move qHash helper for libtorrent types to its own file
2020-11-24 16:13:26 +02:00
Vladimir Golovnev (Glassez)
9171dffe97
Prevent resume data to be saved for removed torrent
2020-11-24 16:13:25 +02:00
Chocobo1
f02b65b866
Fix typos
2020-11-24 16:13:19 +02:00
Andrei Stepanov
891c471160
Fix typo in connection.cpp
...
limiation -> limitation
2020-11-24 16:13:17 +02:00
Vladimir Golovnev
720c1c8216
Merge pull request #13395 from glassez/disk_io
...
Implement disk IO thread wrapper
2020-10-17 12:53:25 +03:00
lbilli
1c7bfcac46
Don't create 'data' subdirectory on Linux
2020-10-15 14:02:28 -04:00
Anton Bershanskiy
b4bfdd6f7a
Add option for hashing_threads, use 10 asyc IO threads
...
Add option for setting lt::settings_pack::hashing_threads
introduced by libtorrent 2.0. It has no effect for earlier
libtorrent versions.
Use 10 async IO threads, as per #11461 .
Closes #11461 .
2020-10-13 00:58:13 +03:00
Chocobo1
19d77b0881
Add support for creating v2 torrents
2020-10-10 23:21:26 +08:00
Vladimir Golovnev
bad5e1f887
Merge pull request #12086 from FranciscoPombal/code-cleanup
...
Clean ups
2020-10-09 07:13:18 +03:00
FranciscoPombal
2c10b3936b
Change some types (uint -> int) in RSS subsystem
2020-10-07 23:26:13 +01:00
FranciscoPombal
deffdbe881
Change some types (uint -> int) in Session class
2020-10-07 23:26:13 +01:00
FranciscoPombal
87864531ab
Clean up in Session class
2020-10-07 23:26:13 +01:00
FranciscoPombal
f502f60f7c
Avoid unessary QString allocation
2020-10-07 15:34:26 +01:00
Mike Tzou
2bfaa8229a
Merge pull request #13431 from Chocobo1/namespace
...
Fix code defects
2020-09-26 11:20:10 +08:00
Chocobo1
ef9765cea1
Remove meaningless const on pointers
...
This only apply to signals.
2020-09-25 15:13:14 +08:00
Chocobo1
ac3ab2432a
Remove redundant namespace prefix
2020-09-25 15:10:20 +08:00
Chocobo1
f487d32594
Fix initialization order
2020-09-25 12:25:09 +08:00
Mike Tzou
1a3091a980
Merge pull request #13419 from silverqx/patch-1
...
Fix fully-qualified-moc-types clazy warning
2020-09-22 22:34:52 +08:00
Silver Zachara
97df5667e7
Use fully-qualified type names
...
Fixed fully-qualified-moc-types clazy warnings
2020-09-21 18:30:02 +02:00
Mike Tzou
c3b5668a07
Merge pull request #12577 from NotTsunami/peer
...
Allow users to configure no_connect_privileged_ports
2020-09-22 00:02:20 +08:00
NotTsunami
2eb3ff7f06
Allow users to configure no_connect_privileged_ports
...
Don't hardcode lt::settings_pack::no_connect_privileged_ports. We
support the peer alert for it already, so connections blocked by this
setting should be logged.
2020-09-20 22:46:28 -04:00
Vladimir Golovnev
04d345251e
Merge pull request #13400 from glassez/sequential
...
Improve sequentialDownload/firstLastPiecePriority handling
2020-09-20 08:00:33 +03:00
FranciscoPombal
2534909d3b
CMake: fix linking against OpenSSL
...
This should have been there from the start,
but for some reason, the lack of it didn't cause any issued
for many systems.
2020-09-18 17:53:14 +01:00
Vladimir Golovnev (Glassez)
39d32063c1
Implement disk IO thread wrapper
2020-09-18 15:56:29 +03:00
Vladimir Golovnev (Glassez)
ff36356be0
Improve sequentialDownload/firstLastPiecePriority handling
...
Always store firstLastPiecePriority in resume data.
Don't recalculate firstLastPiecePriority value each time it is accessed.
Always store sequentialDownload in resume data as native libtorrent field.
2020-09-18 13:33:55 +03:00