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

core: modified filters for selectors #11918

Merged

Conversation

seeyabye
Copy link
Contributor

This is a follow-up on #11907

This PR moves filters in to be defined individually for each selector.

Example code:

  selectors:
    - selector: a[href^="download.php?id="]
      attribute: href
      filters:
        - name: querystring
          args: url
        - name: urldecode
    - selector: a[href^="magnet:"]
      filters:
        - name: tolower

The first selector's filter will apply querystring and urldecode. The second selector's filter will apply tolower

Signed-off-by: seeyabye <seeyabye91@gmail.com>
Copy link
Contributor

@ilike2burnthing ilike2burnthing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, working

@ilike2burnthing ilike2burnthing merged commit 0b376fa into Jackett:master Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants