Commit Graph

131 Commits

Author SHA1 Message Date
rumanzo
f9fbd89d5c FIx withoutTags option 2022-04-01 02:37:13 +03:00
rumanzo
b304a20555 makefile little fix with predefined variable 2022-03-31 00:00:53 +03:00
rumanzo
9e3eb528c1 README.md update
give up with darwin i386 build
2022-03-30 03:23:02 +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
Alexey Kostin
af6ab6bc59
Merge pull request #28 from rumanzo/issue-27
Issue 27
2021-05-07 17:55:59 +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
rumanzo
f421df467c We can't trust anyone when splitting paths. Path separator may be / and may be \ 2021-05-07 15:39:47 +03:00
Alexey Kostin
96ed446c41 Update README.md 2021-03-14 21:00:30 +03:00
Alexey Kostin
79f4dff753
Merge pull request #25 from rumanzo/fixremaining
Fixremaining
2021-03-14 20:58:06 +03:00
Alexey Kostin
c39b5b41a9 Fix a bug 2021-03-14 17:41:05 +03:00
Alexey Kostin
04a0b7c93c Rename functions. New filling PiecePriority 2021-03-14 16:47:31 +03:00
Alexey Kostin
71c3b1aa66 total downloaded 0 for not completed torrents 2021-03-14 15:36:53 +03:00
Alexey Kostin
0009754f1e Revert "fix piecepriotiry structure"
This reverts commit 45d06fac8b.
2021-03-05 23:28:42 +03:00
Alexey Kostin
9b0c36ee42
Merge pull request #24 from R3D4CTED/patch-1
Fixed spelling of "powershell"
2021-02-20 10:39:53 +03:00
[REDACTED]
26e6446e0e
Fixed spelling of "powershell" 2021-02-20 11:12:37 +05:30
Alexey Kostin
00fad06b37 Update Readme 2021-01-10 17:04:36 +03:00
Alexey Kostin
a66229cb8d Update Readme 2021-01-10 16:53:15 +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
337436544f vendor update 2021-01-10 16:43:14 +03:00
Alexey Kostin
4002b2ad4e vendor update 2021-01-10 16:42:39 +03:00
Alexey Kostin
7e57318c2e Merge branch 'master' of github.com:rumanzo/bt2qbt 2021-01-10 15:51:45 +03:00
Alexey Kostin
c2359e3f11
Merge pull request #23 from rumanzo/issue20
fix regex
2020-10-27 09:24:02 +03:00
Alexey Kostin
1a0a2a7bed fix regex 2020-10-27 09:23:28 +03:00
Alexey Kostin
c0076a7153 fix regex 2020-10-27 09:23:00 +03:00
Alexey Kostin
11d34f5020
Merge pull request #22 from rumanzo/issue20
Append base bitdir to searchpaths
2020-10-26 23:37:59 +03:00
Alexey Kostin
2a2e1a11f0 Append base bitdir to searchpaths 2020-10-26 23:33:08 +03:00
Alexey Kostin
991ae93120
Merge pull request #21 from rumanzo/issue20
Detect abs paths for windows fileshare
2020-10-26 23:18:41 +03:00
Alexey Kostin
b47c704dc0 Detect abs paths for windows fileshare 2020-10-26 23:17:51 +03:00
Alexey Kostin
4e331b5295
Merge pull request #19 from rumanzo/readmeupdate
Update README.md
2020-08-03 18:26:01 +03:00
Alexey Kostin
9d1eaaf7b3
Update README.md 2020-08-03 18:24:34 +03:00
Alexey Kostin
885c0ff94c
Merge pull request #17 from rumanzo/mappedfilesreplace
Replace MappedFiles separators if defined
2020-07-05 22:51:35 +03:00
Alexey Kostin
62475719a5 Replace MappedFiles separators if defined 2020-07-05 22:30:47 +03:00
Alexey Kostin
fae76887f2
Merge pull request #16 from rumanzo/issue-15
Correct file priority counting
2020-06-02 22:15:25 +03:00
Alexey Kostin
a47547fb3e Correct file priority counting 2020-06-02 22:09:53 +03:00
Alexey Kostin
45d06fac8b fix piecepriotiry structure 2020-04-24 01:56:57 +03:00
Alexey Kostin
4e54ce54a7
Merge pull request #11 from rumanzo/cleanup
cleanup
2020-04-17 02:08:22 +03:00
Alexey Kostin
0e0c66668c Adapt for libtorrent 1.2.5.0 2020-04-16 23:40:10 +03:00
Alexey Kostin
ef379f8e2c
Merge pull request #10 from rumanzo/libtorrent_1.2.5.0
Adapt for libtorrent 1.2.5.0
2020-04-15 23:59:50 +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
372e9fb928
Merge pull request #7 from rumanzo/build-patch-1
Update build.sh
2020-03-03 13:31:14 +03:00