Commit graph

143 commits

Author SHA1 Message Date
Ivailo Monev
9d6895e488 generic: port to KPasswdStore
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-05 01:40:28 +03:00
Ivailo Monev
dcf5fe10d3 kget: stretch the first horizontal header column in torrent settings dialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-29 19:41:32 +03:00
Ivailo Monev
4aae226a23 kget: add link to libtorrent site at the bottom of the torrent settings dialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-29 19:33:57 +03:00
Ivailo Monev
f01c72efc2 kget: do not assume sftp protocol is supported
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-29 19:14:24 +03:00
Ivailo Monev
47c1daf0ea kget: save and load checksums of KIO transfer plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 22:21:56 +03:00
Ivailo Monev
8600db397d kget: start checksums probing before the actual transfer job from KIO plugin
depending on how long the checksums probing and transfer takes the result
still may be too late for automatic verification on finished transfer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 02:28:41 +03:00
Ivailo Monev
d260ad1e59 kget: hide checksum jobs progress
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 02:21:32 +03:00
Ivailo Monev
b7fdac6b48 kget: add more checksum search strings
verified working with:
https://ftp2.nluug.nl/windowing/gnome/sources/glib/2.72/glib-2.72.0.tar.xz
https://ftp2.nluug.nl/windowing/gnome/sources/glib/2.72/glib-2.72.0.sha256sum

and:
https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz
https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz.sha256

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 01:35:44 +03:00
Ivailo Monev
3795f5a49b kget: do checksum search once transfer is finished from KIO transfer plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 01:24:43 +03:00
Ivailo Monev
3057987bc5 kget: fix one checkums case, break other
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 01:19:30 +03:00
Ivailo Monev
5a8ef4a718 kget: simplify checksums probing
requires:
96b145819b

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 01:18:23 +03:00
Ivailo Monev
7e4734330a kget: drop support for metalink
for reference:
265b14d6b3

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 12:41:00 +03:00
Ivailo Monev
436d6226e1 kget: delete partial files from KIO transfer plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 13:11:01 +02:00
Ivailo Monev
529adc613c kget: do not override KIO auto-resume option
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 09:21:23 +02:00
Ivailo Monev
5bb4e39849 kget: remove unused splash image
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 09:06:16 +02:00
Ivailo Monev
293acd88d0 kget: fix transfer size when destination already exists
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 09:02:47 +02:00
Ivailo Monev
5342cc8b3b kget: ftp, sftp and http slaves can resume
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 08:38:51 +02:00
Ivailo Monev
fda1c192be kget: drop mirror search and multi-segment transfer plugins
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 16:27:09 +02:00
Ivailo Monev
660e727abc kget: implement file model for KIO transfer plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 16:18:31 +02:00
Ivailo Monev
ba6cc178e3 kget: fix KIO transfer files deletion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 15:54:51 +02:00
Ivailo Monev
ce2892aa7b kget: simplify KIO transfer plugin
fixes status on error too, setError() was not called from
TransferKio::slotResult()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 15:30:20 +02:00
Ivailo Monev
bb4925ea1a kget: log KIO transfer plugin errors
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 14:48:33 +02:00
Ivailo Monev
eade51b5a6 kget: fix KIO transfer plugin status on finished transfer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 14:29:07 +02:00
Ivailo Monev
0c8850be99 kget: if torrent settings file is deleted apply default settings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-25 12:20:40 +02:00
Ivailo Monev
51ed22dcc7 kget: fix for torrent settings of boolean type
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 17:35:09 +02:00
Ivailo Monev
4e750202f8 kget: forbid torrent alert mask setting override
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 17:30:01 +02:00
Ivailo Monev
a0f4566345 kget: fix for torrent settings of boolean type
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 17:18:31 +02:00
Ivailo Monev
a1779579e0 kget: use QSpinBox for torrent settings of integer type
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 17:10:52 +02:00
Ivailo Monev
7aa19717c6 kget: implement default torrent transfer plugin settings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 13:48:14 +02:00
Ivailo Monev
a72410b481 kget: implement torrent transfer plugin settings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 13:20:28 +02:00
Ivailo Monev
b91457910b generic: fix bad usage of mutable iterators
most of which could be immutable, fixes crashes when scrolling quickly
trought pages in Okular for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-02 02:45:06 +02:00
Ivailo Monev
3c648adff3 kget: drop support for Md4 checksums verification
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-02-24 00:47:08 +02:00
Ivailo Monev
59b6899cfe kget: replace QHttpRequestHeader with custom request parser
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-02-19 18:32:18 +02:00
Ivailo Monev
2f0f2be443 kget: check if torrent handle is valid before using it
fixes abort/crash when torrent data is deleted via means other than KGet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-12-09 04:19:21 +02:00
Ivailo Monev
89012d2ee2 kget: change transfer status when unspecified exception is raised during transfer start
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-10-02 23:08:12 +03:00
Ivailo Monev
cdb5683d12 kget: libtorrent v1.2+ compatibility
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-10-02 21:40:26 +03:00
Ivailo Monev
90cabe1ee0 kget: save changes to disk on item deletion from JSON history backend
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-10-02 09:53:10 +03:00
Ivailo Monev
fff145cbcf kget: do not deep-copy the key in JsonStore::load()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-10-02 04:34:21 +03:00
Ivailo Monev
1a4577dd10 kget: replace SQL with JSON history backend
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-10-02 04:14:44 +03:00
Ivailo Monev
e2e708bd07 kget: catch exceptions raised by libtorrent during transfer start
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-09-23 18:44:36 +03:00
Ivailo Monev
d27a0288c2 generic: remove unused dot files [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-27 20:32:08 +03:00
Ivailo Monev
f198345313 generic: format
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-22 04:26:44 +03:00
Ivailo Monev
202a6283ac kget: do not post events for UI-related torrent status changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-21 22:31:38 +03:00
Ivailo Monev
9d38857317 kget: do not post event when torrent status is finished/seeding
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-21 19:02:10 +03:00
Ivailo Monev
b5b89d531e kget: remove redundant break statement in TransferHistoryStore::getStore()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-21 19:00:28 +03:00
Ivailo Monev
15e304e372 kget: libtorrent v1.2+ compatibility
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-21 17:47:16 +03:00
Ivailo Monev
253e25f8ad generic: version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-13 20:09:34 +03:00
Ivailo Monev
5f945828fc kget: implement trackers settings via mirrors capability
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-13 03:58:11 +03:00
Ivailo Monev
876ced7782 kget: do not delete file model, re-set its indexes state instead
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-13 03:38:15 +03:00
Ivailo Monev
f9bf1997b4 kget: deal with TODO related to torrent file model
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-12 23:47:14 +03:00