Last active
October 21, 2019 07:15
-
-
Save Hexhu/79e6a5473b88da9d2c36e9a033724358 to your computer and use it in GitHub Desktop.
Turn all trackers in github.com/ngosang/trackerslist into magnet URI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt 2>/dev/null | | |
sed -e 's/:/%3A/g; s/\//%2F/g;' | | |
tr '\n' '_' | | |
sed -e 's/__*/\&tr=/g; s/^/\&tr=/; s/\&tr=$/\n/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If no escaping is required, but the URI needs to be in a comma-separated list: