Commit graph

313 commits

Author SHA1 Message Date
pre-commit-ci[bot] 16c7e944bf [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-04-21 17:44:55 +00:00
buthed010203 880d37700e
Apply suggestions from code review
Co-authored-by: bobokun <12660469+bobokun@users.noreply.github.com>
2023-04-21 13:44:42 -04:00
buthed010203 d2f22b3370
Update prints 2023-04-17 17:15:37 -04:00
pre-commit-ci[bot] 8d8e171b81 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-04-17 21:08:38 +00:00
buthed010203 a113179e48
Fixed remove_orphans being slow and not removing empty directories 2023-04-17 16:58:28 -04:00
bobokun c0467bf4ab
use new qbitorrent api tracker status for
removing unregistered torrents instead of my own
2023-04-11 20:42:33 -04:00
bobokun af9238a758
more fixes 2023-04-11 11:23:23 -04:00
bobokun 8e1cd6406a
bug fixes 2023-04-11 07:20:50 -04:00
bobokun 04134d3c0a
more refactoring 2023-04-10 20:50:55 -04:00
bobokun 89d9188d9d
refactor remove_orphaned 2023-04-10 16:44:51 -04:00
bobokun 5cfb0cd4b3
refactor nohardlinks 2023-04-10 16:30:57 -04:00
bobokun 3c1410f8af
refactor recheck 2023-04-10 15:11:03 -04:00
bobokun f0b3ecd4e9
refactor cross_seed 2023-04-10 14:57:26 -04:00
bobokun 5935b5448d
refactor remove_unregistered 2023-04-10 14:55:14 -04:00
bobokun bece9526e3
refactor category and tags 2023-04-10 11:52:51 -04:00
bobokun fab58de5a2
Fixes #258 2023-04-09 20:51:13 -04:00
bobokun 7b8aa3b015
Fixes #260 2023-04-09 15:37:23 -04:00
pre-commit-ci[bot] 6796e989d9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-04-05 07:36:04 +00:00
bakerboy448 acc02e80cd
fixup! 2023-04-05 02:35:54 -05:00
pre-commit-ci[bot] 23ab49081a [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-04-05 07:34:53 +00:00
bakerboy448 d053a66816
(fix) actually finally fix no hardlink seed/ 2023-04-05 02:34:34 -05:00
bakerboy448 43aebb7e32
Fixup! 2023-04-04 21:49:09 -05:00
Bakerboy448 32f2da75c9 (fix) qbit nohardlinks ratio/seed time if tracker not set
(fix) not falling back to default for nohardlinks goals if not set

Fixes #255
2023-04-04 17:23:30 -05:00
bobokun 806ff7ef11
bug fix beyondHD 2023-04-01 13:12:03 -04:00
bobokun d1c26fffa6
adds support for custom noHL tag #210 2023-04-01 11:25:01 -04:00
Bakerboy448 0c8bbd856c simplfy webhook logic & improve logging 2023-03-31 18:33:08 -05:00
Bakerboy448 6347d81387 fixup! refactor webhooks request & add 2s delay 2023-03-31 18:04:37 -05:00
Bakerboy448 c08665c640 fixup! refactor webhooks request & add 2s delay 2023-03-31 17:59:15 -05:00
Bakerboy448 60fff1f13d refactor webhooks request & add 2s delay 2023-03-31 17:35:43 -05:00
Bakerboy448 b352a99d4b lint cleanup
- pylint and misc variable/naming cleanup
- add docstrings
- fix typos
2023-03-31 17:35:43 -05:00
bobokun 382a9af45f
assign share limits before tagging nohl 2023-03-31 17:40:23 -04:00
Bakerboy448 69ed042c68 fixup! qbit module 2023-03-31 12:35:38 -05:00
Bakerboy448 e21d3d0e81 fixup! qbit module 2023-03-31 12:32:31 -05:00
Bakerboy448 a342f68f21 (new) Change NoHardLinks Logic to use Tracker Max Ratio and Max Seed Time if larger than noHL
(fix) Use Tracker Max Ratio / Seed Time for noHL

Fixes #218
Fxies #229
2023-03-31 12:03:17 -05:00
Bakerboy448 44d21d0c65 qbit module
- pylint and misc variable/naming cleanup
- add docstrings
2023-03-31 11:42:58 -05:00
Jacob McSwain c91f9bd751
Fix wrapped JSON Decode error from requests
Also squashes the following:

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
2023-03-29 13:38:35 -05:00
bobokun 484690ffff
Merge pull request #205 from garypiner/unmeet-torrents-deleted
NoHL torrents been removed when criteria not met
2023-02-28 19:22:56 -05:00
garypiner 31aee16b1c NoHL torrents been removed when criteria not met 2023-01-05 17:04:39 +00:00
bobokun 358e871c6c
fixes bug in nohardlink 2022-12-20 19:09:05 -05:00
bobokun c73479cc7c
resolve merge conflict 2022-12-19 19:15:20 -05:00
bobokun fd18d54783
Merge branch 'master' of https://github.com/StuffAnThings/qbit_manage into develop
* 'master' of https://github.com/StuffAnThings/qbit_manage:
  [pre-commit.ci] pre-commit autoupdate
  send notification on nohardlink warning and remove force failure
  3.4.2
  Fixes #196
  refactor noHL
  better logging for FileNotFoundError
  removes alive-progress dependency  causing issues with rolling logs found. Once this is fixed then it can be implemented again https://github.com/rsalmei/alive-progress/issues/104
  better error handling for noHL
  fixes noHL bug with remote not being replaced
  better trace for nohardlink
  better error checking in commands
  minor bug fix in torrent tagging
  bug fix on prev refactor
  bit a refactoring
  Fixes #192 Fixes noHL logic with false negatives not being caught with small files.
  3.4.1
2022-12-19 17:13:52 -05:00
bobokun 99c00e3bbc
send notification on nohardlink warning and remove
force failure
2022-12-19 16:50:32 -05:00
bobokun bb9db628dd Fixes #196 2022-12-11 20:49:43 -05:00
bobokun 9ae1e6b02b refactor noHL 2022-12-11 20:49:43 -05:00
bobokun 2e8817480d better logging for FileNotFoundError 2022-12-11 20:49:43 -05:00
bobokun f2ed8972cd removes alive-progress dependency
causing issues with rolling logs found.
Once this is fixed then it can be implemented again
https://github.com/rsalmei/alive-progress/issues/104
2022-12-11 20:49:43 -05:00
bobokun 12b83568cb better error handling for noHL 2022-12-11 20:49:43 -05:00
bobokun fafdca4499 fixes noHL bug with remote not being replaced 2022-12-11 20:49:43 -05:00
bobokun 8bfbae4b43 better trace for nohardlink 2022-12-11 20:49:43 -05:00
bobokun f98e18434d better error checking in commands 2022-12-11 20:49:43 -05:00
bobokun 4fee4b4929 minor bug fix in torrent tagging 2022-12-11 20:49:43 -05:00
bobokun 763c0e5ebb bug fix on prev refactor 2022-12-11 20:49:43 -05:00
bobokun 911367ea55 bit a refactoring 2022-12-11 20:49:43 -05:00
bobokun 7dc64cd0e7 Fixes #192
Fixes noHL logic with false negatives not being caught with small files.
2022-12-11 20:49:43 -05:00
bobokun db2cb47795
Fixes #196 2022-12-09 12:48:56 -05:00
bobokun 0785d5efca
refactor noHL 2022-12-09 10:29:57 -05:00
bobokun f3b747a0f2
better logging for FileNotFoundError 2022-12-08 12:22:13 -05:00
bobokun 35b8ffafb8
removes alive-progress dependency
causing issues with rolling logs found.
Once this is fixed then it can be implemented again
https://github.com/rsalmei/alive-progress/issues/104
2022-12-08 10:02:19 -05:00
bobokun 24d61d285b
better error handling for noHL 2022-12-07 16:23:57 -05:00
bobokun 79f637c1be
fixes noHL bug with remote not being replaced 2022-12-07 13:20:34 -05:00
bobokun ad324828e7
better trace for nohardlink 2022-12-07 09:43:35 -05:00
bobokun 0003ffd554
better error checking in commands 2022-12-07 09:16:26 -05:00
bobokun fa61c00504
minor bug fix in torrent tagging 2022-12-07 08:32:34 -05:00
bobokun d519e62b01
bug fix on prev refactor 2022-12-07 08:14:12 -05:00
bobokun 60b02fe011
bit a refactoring 2022-12-06 22:14:55 -05:00
bobokun 719de5c4e0
Fixes #192
Fixes noHL logic with false negatives not being caught with small files.
2022-12-06 22:00:51 -05:00
bobokun 9fc7466167
Adds support for #96, #183 2022-12-03 11:07:52 -05:00
bobokun 57fa0b0c41
Changes default share limits to -1 if not defined 2022-11-22 20:46:32 -05:00
bobokun 0f74ba471d
Fixes bug #173 Major refactor in shhare limits
- Fixes bug where paused `noHL` torrents were being removed by qbit-manage when seed time/ratios not met
- Share Limit deletions are now handled directly in qbm. This means qbm determines whether or not things should be deleted rather than qBittorrent.
- Better logging when `noHL` torrents get deleted once share limits are reached
   - It displays the numbers and reason why the share limit has been reached
- `noHL` torrent share limits get updated on each qbm run to reflect the latest config
   - Previously you would have to untag all `noHL` torrents and re-run to apply the new share limits
- `noHL` torrents get tagged and deleted in the same run if share limits are reached
   - Previously you would need to run qbm twice, first run would tag and second run would delete if share limits are reached
- Automatic handling of min_seeding_time requiring no more manual intervention.
   - Torrents that have met share ratio but not met the min_seeding_time requirements will now automatically remove share limits in qbt and resume torrent state in order to seed longer until share ratios are met.
   - These torrents are tagged with a new tag `MinSeedTimeNotReached`. Any torrents with this tag will not have share ratio limits applied in order to avoid qbt from pausing the torrent, (qbm will still delete this torrent once the minimum seed time is reached)
2022-11-21 21:14:20 -05:00
bobokun 0db66e68fd
Fixes bug #158 2022-11-19 11:31:07 -05:00
bobokun ac3267688b
code refactor 2022-11-19 11:13:41 -05:00
bobokun c0b19bbc2d
better handling trace logs 2022-11-19 09:46:38 -05:00
bobokun 7701a8fe0e
fixes empty secret redacting all logs 2022-11-08 09:06:25 -05:00
bobokun b944008487
adds pyupgrade pre-commit 2022-11-01 11:32:02 -04:00
bobokun e86c775776
Adds additional config for resuming torrents #175
that were previously marked as noHL
2022-10-29 15:02:05 -04:00
bobokun 218ca69371
tox and pre-commit formatting 2022-10-29 11:19:09 -04:00
bobokun 97f97f7c50
Fix unknown Error 2022-10-28 15:40:02 -04:00
bobokun 0e3587ab3b
lint 2022-10-28 15:39:41 -04:00
Jon Lee 75552ab5c2
Notifiarr update 2022-10-26 16:11:38 -04:00
Jon Lee cdca77d88e
Adds minimum version check. Fixes #172 2022-10-26 15:42:06 -04:00
Jon Lee cbc98aebc0
Fixes bug with empty_after_x_days #170 2022-10-21 10:24:10 -04:00
voltron4lyfe bf65b3c158
Tracker min seed (#165)
* Specify min_seeding_time per-tracker

* Update sample config for tracker min_seeding_time
2022-10-20 12:06:45 -04:00
Jon Lee 3055f0e6a4
bug fix in orphaned_dir config check 2022-09-26 09:04:33 -04:00
Jon Lee 20833cedcf
BREAKING CHANGE: Adds #155
Adds empty_after_x_days for orphaned data #155
2022-09-25 21:48:57 -04:00
Jon Lee f2ce39f9c4
Adds #124 custom orphaned path 2022-09-24 16:11:55 -04:00
Jon Lee cdbaad2514
fix minor logging bug 2022-09-01 18:50:32 -04:00
bobokun 2e15e35ef5
Adds running commands via config #149 2022-08-21 14:40:57 -04:00
bobokun c4681beb4e
remove unused functions 2022-08-21 14:39:48 -04:00
bobokun 29d51ee78a
Adds log secrets for hiding sensitive information 2022-08-20 22:17:51 -04:00
bobokun ffdcce183c
Logging overhall, separate logs per config 2022-08-20 22:14:28 -04:00
bobokun 5a50d8b694
Ability to load multiple config files #140 2022-08-14 21:41:33 -04:00
bobokun dddafaf0ed
YAML R/W fixes + Adds new FR #146 2022-08-13 16:49:02 -04:00
bobokun 397698a802
Fixes #136
Check ignore list when del unregistered torrents
2022-06-16 08:43:52 -04:00
bobokun d1947e44dc
minor fix 2022-05-20 18:15:20 -04:00
bobokun 7712dff9bf
Fixes windows path error #127 2022-05-20 17:36:45 -04:00
bobokun edbeec5e2a
potential fix for windows 2022-05-20 17:19:41 -04:00
bobokun e2c9c873ba
Fixes #121 Removes uppercase from unreg torrents 2022-04-25 11:03:36 -04:00
bobokun 0381da9876
Remove alive_it from noHL (fix for logging issue?) 2022-04-19 09:00:42 -04:00
bobokun 6ad3218708
throw proper error when Notifiarr is down 2022-03-17 17:51:01 -04:00
bobokun 2ec99cffa0
Fixes BHD Status "STREAM TRUNCATED" #113 2022-03-07 08:10:01 -05:00
bobokun 144bd69aea
Adds tracker to cross-seed webhook #103 2022-02-26 16:20:38 -05:00
bobokun 9845f89aff
[FR]: Allow min_seeding_time #111 2022-02-26 15:52:34 -05:00
bobokun 6b72b9f3fe
add ignore for PTP going down 2022-02-15 18:41:54 -05:00
bobokun 3009c68cff
Remove progress bar final output 2022-02-03 08:23:46 -05:00
bobokun 21dc3245f1
bug fix: torrents not deleting when should 2022-02-02 08:24:18 -05:00
bobokun eb80cbe0fd
additional logic for BHD issue 2022-01-31 20:43:13 -05:00
bobokun 69e39bd05d
bug fix #102: added additional logic to ignore 2022-01-30 15:57:29 -05:00
bobokun 8d6fb140b9
bug fix: empty recyclebin dir causing error 2022-01-26 08:41:31 -05:00
bobokun a4fbf2a582
add tag_nohardlinks to get_torrent_info 2022-01-25 15:48:52 -05:00
bobokun 06fb3b0532
Fixes #100: Deleting contents when not supposed to
[Bug]: Torrents get hard deleted when they should be soft deleted #100
2022-01-25 15:02:16 -05:00
bobokun 4c572ae043
additional logic for issue 2022-01-21 12:22:30 -05:00
bobokun e498bd0c35
changed name of end_time_hook attribute 2022-01-21 12:22:10 -05:00
bobokun ea356eeb70
bug fix for BHD integration 2022-01-20 14:51:38 -05:00
bobokun 2e6f58982d
minor fix: PTP down causing issue 2022-01-19 18:31:17 -05:00
bobokun d918f793d2
add log warning 2022-01-17 14:21:34 -05:00
bobokun cb1999c648
bug fix permissionError on Move 2022-01-17 14:13:06 -05:00
bobokun 5fed8cd0e8
better description of error #97
QBittorrent Version #97
2022-01-15 11:33:08 -05:00
bobokun 52dcc9370d
better error handling moving files 2022-01-15 08:18:52 -05:00
bobokun 8907abbf45
Adds ignoreTags_OnUpdate in config settings #95
[FR]: Tag Torrents with Existing Tags #95
2022-01-13 15:00:05 -05:00
bobokun 102a1e083b
Adds ability to have update multiple tags #95
[FR]: Tag Torrents with Existing Tags #95
2022-01-13 14:39:40 -05:00
bobokun f2db556f90
optimize performance 2022-01-12 18:48:54 -05:00
bobokun 2e03283465
bug fix: remove unregistered torrents
better handling of unregistered torrents by matching full word
2022-01-12 16:15:43 -05:00
bobokun add5ed05b2
add additional ignore msg to BHD integration 2022-01-12 08:36:01 -05:00
bobokun 938656fb4f
Adds [FR] #91
[FR]: Tag torrents which have a tracker issue. #91
2022-01-10 22:00:43 -05:00
bobokun 8d9ec4558e
Update version support check using qbittorrent api 2022-01-10 20:05:04 -05:00
bobokun ac78bd5025
bug_fix: creating empty recyclebin in root dir #77 2022-01-10 15:37:12 -05:00
bobokun 393538acf5
Added Remove Unregistered logic (fixes #90) 2022-01-10 11:59:30 -05:00
bobokun d9a6fcfab9
Fix Bug when creating RecycleBin path 2022-01-10 11:54:18 -05:00
bobokun 8ae68ccc08
Bug Fix to not creating recyclebin when disabled 2022-01-10 10:16:24 -05:00
bobokun 3066c323bf
bug fix: don't make recyclebin if not enabled 2022-01-10 08:00:18 -05:00
bobokun 14b14ae999
Fix unreg torrent incorrectly marked as working 2022-01-09 15:29:12 -05:00
bobokun cc0554da12
Remove noHL error when no torrents in category 2022-01-09 10:38:20 -05:00
bobokun 3cc81bd74d
Bug Fix: Force ATM causing issue with category 2022-01-08 21:35:24 -05:00
bobokun 15075cac07
check compatibility only on major release versions 2022-01-07 15:38:06 -05:00
bobokun 9ea244d426
Minor adjustments to error title 2022-01-07 14:54:33 -05:00
bobokun 3b99fcb6b7
Update API Compatibility check for breaking v4.4.0 2022-01-07 14:48:22 -05:00
bobokun 9316138772
added ignore_msg in BHD integration 2022-01-07 12:58:18 -05:00
bobokun 307959cd3c
Bug fix: Incorrect category when missing trailing slash 2022-01-07 08:10:15 -05:00
bobokun 14390b3450
breaking config change: category
Category save_path must be exact match and not keyword
2022-01-06 13:18:56 -05:00
bobokun 1fb198f613
Bug Fix: Create Category if missing in qbittorrent 2022-01-06 12:13:59 -05:00
bobokun 364082ab72
Fix torrent json incorrect deleted contents value 2022-01-03 08:48:28 -05:00
bobokun 4760e7d784
Fix multitracker torrent incorrectly marked issue 2022-01-02 22:07:43 -05:00
bobokun e8e6a4a12b
Fix no files in recyclebin error 2022-01-02 21:51:56 -05:00
bobokun f838af409b
[FR] Specify recycle bin path per category #77 2022-01-02 17:03:13 -05:00
bobokun 56a856ac4f
Add RecycleBin to exclude patterns by default 2022-01-02 14:33:07 -05:00
bobokun 7af673b86d
remove unecessary newline 2022-01-02 13:59:10 -05:00
bobokun d232fc1c15
Better logging for save_torrents 2022-01-01 10:59:15 -05:00
bobokun 6e358e89cc
Adds Next Run #78
[FR] Adding Next Run part of Finished Run Output #78
2022-01-01 09:54:59 -05:00
bobokun 21c1d5a07b
[FR] Save .torrents in Recycle Bin #73
Save the .torrent and .fastresume files into Recycle Bin before deleting
2021-12-31 19:28:45 -05:00
bobokun 7bba88d9fc
bug fix: Root_dir not having trailing slash 2021-12-31 09:13:55 -05:00