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

feat(filters): detect magnet links from feed entries #122

Merged
merged 4 commits into from
Jun 29, 2024
Merged

Conversation

shouya
Copy link
Owner

@shouya shouya commented Jun 29, 2024

This PR adds a new filter magnet that extracts magnet links from the body of the feed entry and store them in places recognized by bittorrent clients.

For feeds in RSS format, the magnet links will be stored in the <enclosure>. For feeds in Atom format, the magnet links will be stored in a new <link>.

The filter has two configurations:

  • info_hash (boolean, default: false): whether or not to try detect info hash without magnet: prefix. It's used when the magnet link is not directly given in the body in strict magnet link format but somehow extractable.
  • override_existing (boolean, default: false): if the entry already contains a magnet link in its enclosure, whether or not to override it with the detected one.

@shouya shouya merged commit 64d4ed2 into master Jun 29, 2024
2 checks passed
@shouya shouya deleted the magnet-enclosure branch June 29, 2024 12:19
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.

1 participant