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] add option to use regular expressions to auto assign label #163

Open
SleepyPrince opened this issue May 8, 2024 · 1 comment

Comments

@SleepyPrince
Copy link

Similar to custom URL, it would be nice to have an option to auto assign the label according to specific urls/domains.
The format can be something like: regexp||label (or anything that can be easy to processed without confusing the user)

I looked into the code and this can be done in webRequest.onBeforeRequest before addTorrent is called.
One limitation is that originally I was planning to match the regular expressions with the origin url (instead of the torrent url). However when the extension accept the magnet address via https://torrent-control.invalid/, the origin url info is lost.
So the regular expression can only be matched to the magnet address, though not ideal but may still be useful.

I have a working local copy but I don't think my amateur code is ready for pull request.

@robertheadley
Copy link

#76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants