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

[Feature Request] Permit tags to be searchable via Torznab API #311

Open
2 tasks done
binhex opened this issue Sep 28, 2024 · 0 comments
Open
2 tasks done

[Feature Request] Permit tags to be searchable via Torznab API #311

binhex opened this issue Sep 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@binhex
Copy link

binhex commented Sep 28, 2024

  • I have checked the existing issues to avoid duplicates
  • I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Is your feature request related to a problem?

The ability to define custom tags is great, this feature request is to enhance this functionality by permitting the custom tag to be searchable via the Torznab API. This could be done by the end user by specifying a Torznab API numeric category for the tag and then querying the torznab api for the custom category in the normal manner.

Describe the solution you'd like

The ability to define the custom value for the tag, a mock up classifier.yml could look something like this:-

$schema: "https://bitmagnet.io/schemas/classifier-0.1.json"

extensions:
  emulation_rom_extensions:
    - chd
    - nsp
    - nsz

# define tags and numeric category values (used when querying via the torznab api)
tags:
  emulation-roms: 100000

# extend the default workflow with a custom workflow:
workflows:
  custom:
    # first run the default workflow:
    - run_workflow: default
    - if_else:
        # if the extension matches the definition then add to category
        condition: "torrent.files.filter(f, f.extension in extensions.emulation_rom_extensions).size() > 0"
        if_action:
          add_tag: emulation-roms

Final thoughts

It maybe a better idea to scrap the concept of 'tags' and instead simply permit the creation of custom categories instead (viewable via web ui and searchable via torznab api), as the torznab api is all about searching categories and has no concept of tags other than to differentiate between newznab and torznab.

@binhex binhex added the enhancement New feature or request label Sep 28, 2024
@binhex binhex changed the title [Feature Request] Permit the creation of custom categories and expose for torznab api searching [Feature Request] Permit tags to be searchable via Torznab API Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant