Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cat in Config does not respect fuzzy matching #695

Closed
bakerboy448 opened this issue Nov 21, 2024 · 1 comment · Fixed by #741
Closed

[Bug]: Cat in Config does not respect fuzzy matching #695

bakerboy448 opened this issue Nov 21, 2024 · 1 comment · Fixed by #741
Assignees
Labels
feature request New feature or request status:added-to-develop Feature Request or Bug Fix is in Develop

Comments

@bakerboy448
Copy link
Collaborator

Describe the Bug

cat:
  # <Category Name> : <save_path> # Path of your save directory. Can be a keyword or full path
  audiobooks: /mnt/data/torrents/audiobooks
  books: /mnt/data/torrents/books
  movies: /mnt/data/torrents/movies
  movies4k: /mnt/data/torrents/movies4k
  prowlarr: /mnt/data/torrents/prowlarr
  tv: /mnt/data/torrents/tv
  tv4k: /mnt/data/torrents/tv4k
  seeds-audiobooks: /mnt/data/torrents/seeds-audiobooks
  seeds-books: /mnt/data/torrents/seeds-books
  seeds-movies: /mnt/data/torrents/seeds-movies
  seeds-movies4k: /mnt/data/torrents/seeds-movies4k
  seeds-tv: /mnt/data/torrents/seeds-tv
  seeds-tv4k: /mnt/data/torrents/seeds-tv4k
  seeds-movies.cross-seed: /mnt/data/torrents/seeds-movies
  seeds-movies4k.cross-seed: /mnt/data/torrents/seeds-movies4k
  seeds-tv.cross-seed: /mnt/data/torrents/seeds-tv
  seeds-tv4k.cross-seed: /mnt/data/torrents/seeds-tv4k
  movies.cross-seed: /mnt/data/torrents/seeds-movies
  movies4k.cross-seed: /mnt/data/torrents/seeds-movies4k
  tv.cross-seed: /mnt/data/torrents/seeds-tv
  seeds: /mnt/data/torrents/seeds/
  seeds-data: seeds-data

expected that seeds-data matches any torrents with path like seeds-data
however this does not work instead it adds every save path as a cat

cat:
  # <Category Name> : <save_path> # Path of your save directory. Can be a keyword or full path
  audiobooks: /mnt/data/torrents/audiobooks
  books: /mnt/data/torrents/books
  movies: /mnt/data/torrents/movies
  movies4k: /mnt/data/torrents/movies4k
  prowlarr: /mnt/data/torrents/prowlarr
  tv: /mnt/data/torrents/tv
  tv4k: /mnt/data/torrents/tv4k
  seeds-audiobooks: /mnt/data/torrents/seeds-audiobooks
  seeds-books: /mnt/data/torrents/seeds-books
  seeds-movies: /mnt/data/torrents/seeds-movies
  seeds-movies4k: /mnt/data/torrents/seeds-movies4k
  seeds-tv: /mnt/data/torrents/seeds-tv
  seeds-tv4k: /mnt/data/torrents/seeds-tv4k
  seeds-movies.cross-seed: /mnt/data/torrents/seeds-movies
  seeds-movies4k.cross-seed: /mnt/data/torrents/seeds-movies4k
  seeds-tv.cross-seed: /mnt/data/torrents/seeds-tv
  seeds-tv4k.cross-seed: /mnt/data/torrents/seeds-tv4k
  movies.cross-seed: /mnt/data/torrents/seeds-movies
  movies4k.cross-seed: /mnt/data/torrents/seeds-movies4k
  tv.cross-seed: /mnt/data/torrents/seeds-tv
  seeds: /mnt/data/torrents/seeds/
  seeds-data: seeds-data
  PrivateHD: /mnt/data/torrents/seeds-data/PrivateHD/
  BroadcastheNet: /mnt/data/torrents/seeds-data/BroadcastheNet/

note that
PrivateHD: /mnt/data/torrents/seeds-data/PrivateHD/
BroadcastheNet: /mnt/data/torrents/seeds-data/BroadcastheNet/

were added

additonally it is impossible to ignore more than 1 path with the Uncategorized keyword as all keys must be distinct

Config

https://logs.notifiarr.com/?35bc79bc57beb353#GpbkEWwdrdHMdtCPWmSi8PTEJKPqEtcykb6n8wAytWep

Logs

N/A

Screenshots

No response

Installation

Nix

Version Number

4.1.14-develop2

What branch are you on?

develop

@bakerboy448 bakerboy448 added the bug Something isn't working label Nov 21, 2024
bobokun added a commit that referenced this issue Jan 4, 2025
@bobokun
Copy link
Collaborator

bobokun commented Jan 4, 2025

The Can be a keyword or full path was deprecated, you can see that the comment is no longer in the recent config.yml.sample.

However I just implemented fuzzy matching for this use case. If you want to achieve this please test it out in the latest develop branch and use Unix filename pattern matching which should work. In your specific example you can use seeds-data: '/mnt/data/torrents/seeds-data/*' which should match now to all seeds-data category.

@bobokun bobokun added feature request New feature or request status:added-to-develop Feature Request or Bug Fix is in Develop and removed bug Something isn't working labels Jan 4, 2025
@bobokun bobokun mentioned this issue Feb 2, 2025
@bobokun bobokun linked a pull request Feb 2, 2025 that will close this issue
bobokun added a commit that referenced this issue Feb 2, 2025
* 4.1.16-develop1

* Update SUPPORTED_VERSIONS.json for master (#724)

* 4.1.15-develop1

* Update SUPPORTED_VERSIONS.json for master (#706)

* 4.1.14-develop1

* Update SUPPORTED_VERSIONS.json for master (#692)

* 4.1.13-develop

* Bump croniter from 3.0.3 to 3.0.4 (#680)

Bumps [croniter](https://github.com/kiorky/croniter) from 3.0.3 to 3.0.4.
- [Changelog](https://github.com/kiorky/croniter/blob/master/CHANGELOG.rst)
- [Commits](corpusops/croniter@3.0.3...3.0.4)

---
updated-dependencies:
- dependency-name: croniter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump qbittorrent-api from 2024.9.67 to 2024.10.68 (#684)

Bumps [qbittorrent-api](https://github.com/rmartin16/qbittorrent-api) from 2024.9.67 to 2024.10.68.
- [Release notes](https://github.com/rmartin16/qbittorrent-api/releases)
- [Changelog](https://github.com/rmartin16/qbittorrent-api/blob/main/CHANGELOG.md)
- [Commits](rmartin16/qbittorrent-api@v2024.9.67...v2024.10.68)

---
updated-dependencies:
- dependency-name: qbittorrent-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update SUPPORTED_VERSIONS.json

* bump develop

* (ci): add ci for version bump on develop (#688)

* Fixes bug in torrent exporting for qbit versions under 4.5.0

* Bump actions/checkout from 3 to 4 (#690)

* Bump actions/setup-python from 3 to 5 (#689)

* Bump croniter from 3.0.4 to 5.0.1 (#685)

* [pre-commit.ci] pre-commit autoupdate (#682)

* 4.1.13

* Update SUPPORTED_VERSIONS.json

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: bobokun <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bakerboy448 <[email protected]>
Co-authored-by: bobokun <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* chore(docs): Sync wiki to docs [skip-cd]

* Bump qbittorrent-api from 2024.10.68 to 2024.11.69 (#693)

* Bump qbittorrent-api from 2024.10.68 to 2024.11.69

Bumps [qbittorrent-api](https://github.com/rmartin16/qbittorrent-api) from 2024.10.68 to 2024.11.69.
- [Release notes](https://github.com/rmartin16/qbittorrent-api/releases)
- [Changelog](https://github.com/rmartin16/qbittorrent-api/blob/main/CHANGELOG.md)
- [Commits](rmartin16/qbittorrent-api@v2024.10.68...v2024.11.69)

---
updated-dependencies:
- dependency-name: qbittorrent-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

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

for more information, see https://pre-commit.ci

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* bump develop (#694)

* chore: bump qbittorrent-api (#697)

* chore: bump qbittorrent-api
* Update VERSION

* Update SUPPORTED_VERSIONS.json

* chore(docs): Sync wiki to docs [skip-cd]

* 4.1.14

* Update SUPPORTED_VERSIONS.json

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

for more information, see https://pre-commit.ci

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

for more information, see https://pre-commit.ci

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: bobokun <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bakerboy448 <[email protected]>
Co-authored-by: bobokun <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Actionbot <[email protected]>

* (fix): BHD add additional unregistered messages for season packs (#707)

* (fix): BHD add additional unregistered messages for season packs

* Update VERSION

* docs: update README.md (#708)

* Update README.md

Fixed small typo

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

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* (bhd): handle additional season pack unregistered (#709)

* (bhd): handle additional season pack unregistered

"COMPLETE SEASON UPLOADED" did not match 

Complete Season Uploaded: https://beyond-hd.me/torrents/[link]

* fixup!

* Bump qbittorrent-api from 2024.11.70 to 2024.12.71 (#712)

Bumps [qbittorrent-api](https://github.com/rmartin16/qbittorrent-api) from 2024.11.70 to 2024.12.71.
- [Release notes](https://github.com/rmartin16/qbittorrent-api/releases)
- [Changelog](https://github.com/rmartin16/qbittorrent-api/blob/main/CHANGELOG.md)
- [Commits](rmartin16/qbittorrent-api@v2024.11.70...v2024.12.71)

---
updated-dependencies:
- dependency-name: qbittorrent-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* bump 4.1.15-develop4

* Update SUPPORTED_VERSIONS.json

* Bump croniter from 5.0.1 to 6.0.0 (#711)

* Fix help description for --rem-orphaned argument (#716)

* Bump ruamel-yaml from 0.18.6 to 0.18.7 (#720)

Bumps ruamel-yaml from 0.18.6 to 0.18.7.

---
updated-dependencies:
- dependency-name: ruamel-yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ruamel-yaml from 0.18.7 to 0.18.8 (#721)

Bumps ruamel-yaml from 0.18.7 to 0.18.8.

---
updated-dependencies:
- dependency-name: ruamel-yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump gitpython from 3.1.43 to 3.1.44 (#722)

Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.43 to 3.1.44.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](gitpython-developers/GitPython@3.1.43...3.1.44)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (#715)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v3.19.0 → v3.19.1](asottile/pyupgrade@v3.19.0...v3.19.1)

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

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: bobokun <[email protected]>

* Fixes #719

* 4.1.15

* Update SUPPORTED_VERSIONS.json

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

for more information, see https://pre-commit.ci

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: bobokun <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bakerboy448 <[email protected]>
Co-authored-by: bobokun <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Actionbot <[email protected]>
Co-authored-by: tanka8 <[email protected]>
Co-authored-by: Michael Brünen <[email protected]>

* Adds #695

* Bump ruamel-yaml from 0.18.8 to 0.18.9 (#725)

Bumps ruamel-yaml from 0.18.8 to 0.18.9.

---
updated-dependencies:
- dependency-name: ruamel-yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ruamel-yaml from 0.18.9 to 0.18.10 (#727)

Bumps ruamel-yaml from 0.18.9 to 0.18.10.

---
updated-dependencies:
- dependency-name: ruamel-yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* log orphaned files detected in info instead of debug

* Bump pre-commit from 4.0.1 to 4.1.0 (#735)

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](pre-commit/pre-commit@v4.0.1...v4.1.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 (#739)

Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](dependabot/fetch-metadata@v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (#734)

updates:
- [github.com/hhatto/autopep8: v2.3.1 → v2.3.2](hhatto/autopep8@v2.3.1...v2.3.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* 4.1.16

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bakerboy448 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Actionbot <[email protected]>
Co-authored-by: tanka8 <[email protected]>
Co-authored-by: Michael Brünen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request status:added-to-develop Feature Request or Bug Fix is in Develop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants