Commit Graph

17 Commits

Author SHA1 Message Date
rumanzo
db4705403c
fixes #47
respect force state of torrents (automanaged 0)
2024-03-20 23:29:52 +03:00
rumanzo
e41bda56fe
fix torrent structures for unusual torrents coding
update go version
better error printing
yet another user notification
2023-12-25 23:39:59 +03:00
rumanzo
ee7cb09a2e
fix LRF RLF unicode symbols in names and file paths
add vscode in gitignore
2023-12-06 21:41:15 +03:00
Alexey Kostin
0b305dd2f9
Fix windows prohibited simbols (#46)
* handle windows fs prohibited symbols

* fix abs path symbols replace

* more readable code

* better replacer
new replacer function with tests

* return zero files from torrent info file tree if there are single file torrent

* don't harm torrent file function, handle filelist size in another places

* more accurate handling single files

* use mapped files for directories or torrent names with space on ending

* normalize backslases too

* Don't normalize cesu8\prohibited symbols on torrent name if torrent file contain several files. But normalize for single file torrent and normalize last space character for both

* Better torrent name and torrent file paths handling
helpers
tests

* move torrents functions to torrents functions
cache single flag

* update README.md

* fix deprecation warnings
2023-12-05 21:17:43 +03:00
rumanzo
a25c2670ff
Additional test with special symbols 2023-11-26 16:27:40 +03:00
rumanzo
7b9c97cfe1
fix opts test
fix opts categories handle
2023-11-25 23:37:21 +03:00
Alexey Kostin
61abb0345d
Portable qbittorent categories search (#45)
* cesu8 handler

* resume file cesu8 handle

* utf8 emoji filepaths

* cesu8 emoji filepaths and torrent names

* cesu8 emoji filepaths and torrent names handling
improve tests

* add fastresume Name field

* update golang ver

* handle torrent files with cesu8 encoded file paths and handle them as NoSubfolder torrents for better compatibility

* fix cesu8 named single file torrents

* search categories json in case portable qBittorrent
2023-11-25 22:48:45 +03:00
Alexey Kostin
fda659db74
Cesu8 (#44)
* cesu8 handler

* resume file cesu8 handle

* utf8 emoji filepaths

* cesu8 emoji filepaths and torrent names

* cesu8 emoji filepaths and torrent names handling
improve tests

* add fastresume Name field

* update golang ver

* handle torrent files with cesu8 encoded file paths and handle them as NoSubfolder torrents for better compatibility

* fix cesu8 named single file torrents
2023-11-25 22:47:40 +03:00
rumanzo
44c038bd67 Fixed doubling end slashes 2022-05-05 22:00:19 +03:00
Alexey Kostin
47e0028bc1
Fixstructures (#39)
* Fix structures

* torrents v2 file tree interface

* get files vrom both v1 and v2 torrents

* fix typo

* style

* cleanup makefile

* new test fileset with real qBittorrent files and new tests

* counting files using torrent file

* Handle v2 and hybryd torrents
2022-04-17 16:01:18 +03:00
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
Alexey Kostin
ef8fd5825a rename variables in getTrackers 2022-04-04 22:58:23 +03:00
rumanzo
2d91e47377 Fix handling trackers. Test cover 2022-04-04 17:09:05 +03:00
rumanzo
f2decc007c Fix help 2022-04-03 19:20:26 +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
f9fbd89d5c FIx withoutTags option 2022-04-01 02:37:13 +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