Commit Graph

58 Commits

Author SHA1 Message Date
rumanzo
b66b5f8e75 Rewrite handle trackers function. Respect trackers tier
Expect for different types in resumeItem trackers.
New recursion function for dig interface for strings in helpers

https://github.com/rumanzo/bt2qbt/issues/36
2022-04-09 00:09:33 +03:00
rumanzo
e166194b56 Modern qBittorrent doesn't save tags to config file. It uses categories.json instead.
Rewritted handleLabels function. Tests
2022-04-03 19:18:10 +03:00
rumanzo
46103167ef Change build date format 2022-04-01 02:42:46 +03:00
Alexey Kostin
cca7869d2a
Full refactor. Introduce tests (#35)
* start refactor

* default golang loyaout
separate qbittorrent and torrent structures

* stage

* move flags handle to module and cover it with tests
change handle sep with path.join

* ugly remove unneeded fields from resume.dat

* use path joing
prepare for resume structs

* Introduce subtests

* fix behavior

* Move to structures instead of using interfaces

* Make main cmd clean, decomposite functions

* Make main cmd clean, decomposite functions

* Detect torrents functions and tests

* Fixes

* Fixes

* New tests for content layout and file paths
reformat code for project
change libtorrent version
append torrent v2 schema in torrent structs

* filepath helper module
fix some tests

* fileHelpers new functions and tests

* new function with cut last part with tests

* function description and small fix

* rename some variables and structures

* beautiful tests handle for savePaths
starting refactor savepaths

* Refactor HandleSavePath func. Cover with tests
Move replace field creation to handle and assign pointer, instead of generate each time with handle resumeItem.
Moved opts to transferStructure.

* fix some tests

* HandleSavePaths covered with tests and little bit fixed

* Another one additional test for fully function cover

* check for tests

* Remove PiecePriority

* Refactored HandlePieces functions
Removed unused functions

* Rename variables. Introduced new tests

* Append tests

* Rename test funcs

* New tests

* New tests

* move modules

* introduce Makefile

* Adapt fileHelpers for both windows and linux. Linux tests passed
Use slashed paths for search torrents

* remove test template

* test fileset

* Makefile. Version introduce

* Fix darwin i386 version build

* Bug fix with mappedfiles
Need more tests and append new functionality.

* tests for HandleSavePaths with absoulte paths in mapped files

* additional tests with fileshare

* all tests OK

* Fix torrent state. Added tests

* fixes after code inspection

* Magnet link support. Tests

* README.md update

Co-authored-by: Alexey Kostin <a.kostin@corp.mail.ru>
2022-03-30 02:30:29 +03:00
Alexey Kostin
2ddae8fb8d
Merge pull request #30 from rumanzo/transferrenamedfiles
Add ability to transfer torrents with renamed files
2021-05-07 20:00:58 +03:00
rumanzo
10551a7d24 Add ability to transfer torrents with renamed files 2021-05-07 20:00:37 +03:00
Alexey Kostin
9889daba62
Merge pull request #29 from rumanzo/warnings
Update warning message and README.md
2021-05-07 18:01:22 +03:00
rumanzo
e1c226eb89 cosmetic change for array check 2021-05-07 17:41:53 +03:00
rumanzo
f7c5d00b94 Fix removing path separator from utorrent path field 2021-05-07 17:38:38 +03:00
rumanzo
2017f93752 Update warning message and README.md 2021-05-07 15:53:47 +03:00
Alexey Kostin
71c3b1aa66 total downloaded 0 for not completed torrents 2021-03-14 15:36:53 +03:00
Alexey Kostin
dc09cc458a Transfer torrent modified names. caption->qBt-name 2021-01-10 16:51:35 +03:00
Alexey Kostin
f6b36ed9e9 Fix isAbs regexp case 2021-01-10 16:49:16 +03:00
Alexey Kostin
725a6bb260 Fix help Config description 2021-01-10 16:48:50 +03:00
Alexey Kostin
c0076a7153 fix regex 2020-10-27 09:23:00 +03:00
Alexey Kostin
2a2e1a11f0 Append base bitdir to searchpaths 2020-10-26 23:33:08 +03:00
Alexey Kostin
b47c704dc0 Detect abs paths for windows fileshare 2020-10-26 23:17:51 +03:00
Alexey Kostin
62475719a5 Replace MappedFiles separators if defined 2020-07-05 22:30:47 +03:00
Alexey Kostin
0e0c66668c Adapt for libtorrent 1.2.5.0 2020-04-16 23:40:10 +03:00
Alexey Kostin
320c44de2f Adapt for libtorrent 1.2.5.0 2020-04-15 23:59:03 +03:00
Alexey Kostin
8606e47272 Help modification and readme 2020-04-04 17:15:16 +03:00
Alexey Kostin
97c940e9ae
Newversion (#9)
* split to files

* Delete tesing code

* Change gnuflags to go-flags

* Change gnuflags to go-flags

* fix search torrent

* fix search torrent

* Replace impromevents. Separator option

* Help modification. Readme update

* Help modification
2020-04-04 17:00:39 +03:00
Alexey Kostin
d2682d2ad9
Newversion (#8)
* split to files

* Delete tesing code

* Change gnuflags to go-flags

* Change gnuflags to go-flags

* fix search torrent

* fix search torrent

* Replace impromevents. Separator option

* Help modification. Readme update
2020-04-04 16:58:29 +03:00
Alexey Kostin
af4fc92af3 default flags for linux 2020-02-16 15:07:16 +03:00
Alexey Kostin
89bf838757 Save path replace feature 2020-02-16 14:58:26 +03:00
Alexey Kostin
6c51eecb8d Refactor 2020-02-16 13:36:24 +03:00
Alexey Kostin
b8d4330d73 Go module release 2020-02-12 01:10:35 +03:00
Alexey Kostin
1524eb2826 darwin (macos) support 2019-08-14 22:30:48 +03:00
Alexey Kostin
ad4036291b Fix incorrect counting of tasks in the utorrent 2.X that caused gorutine deadlock in some cases. 2019-04-19 12:45:31 +03:00
Alexey Kostin
3d75c95baa Thread limiter 2018-09-20 00:27:48 +03:00
akostin
d4d51afe8d spelling fix 2018-07-31 18:44:25 +03:00
akostin
e64d8532b3 Bug fix for empty labels 2018-05-29 10:47:45 +03:00
Alexey Kostin
8b9baa680a Faster ASCIIconvert 2018-05-14 00:40:36 +03:00
Alexey Kostin
edc5dae8df fix for numjob 2018-05-11 21:43:48 +03:00
akostin
60ffbf1270 gofmt 2018-05-11 17:29:06 +03:00
akostin
bf6f2a519d Print stacktrace for debug 2018-05-11 15:37:55 +03:00
akostin
eb0d359b06 Fix positionnum 2018-05-11 14:44:46 +03:00
akostin
cc45a75218 Panic text output. Gofmt 2018-05-11 14:35:20 +03:00
akostin
6b25796600 Error/panic handler. Better notification. 2018-05-11 14:24:15 +03:00
akostin
e9c18aab73 Strings.Fields() instead regex 2018-05-11 12:57:09 +03:00
Alexey Kostin
78736ef4e0 Pretty log with timestamp 2018-05-10 23:09:40 +03:00
Alexey Kostin
525b7a2a25 Fix for torrent in another location 2018-05-10 23:07:59 +03:00
akostin
8a7b259610 Clever gettrackers (recursive) 2018-05-08 19:10:02 +03:00
Alexey Kostin
09512ecdec Optimization 2018-05-06 19:37:42 +03:00
Alexey Kostin
638d80786c Right piece field len 2018-05-06 18:35:32 +03:00
Alexey Kostin
b9b12c755f Float64 instead float32. Correct "blocks per piece" 2018-05-06 17:04:24 +03:00
akostin
b37e6e23ee Back scanls
fix Qbtcategory existing
2018-04-18 15:26:29 +03:00
akostin
d3fb9c545d Path fix 2018-04-18 15:03:13 +03:00
akostin
b77c41b1a3 Done 2018-04-18 14:29:45 +03:00
Alexey Kostin
dc3dc08e8f Pre refactor for struct 2018-04-18 02:33:00 +03:00