FlexRSS Link Rewriting
Posted: Sun Mar 22, 2009 6:59 pm
I could not seem to figure out how to get link rewriting to work the way I wanted it to work in the FlexRSS plugin. The documentation is nonexistent on this feature. I just thought I should share the filter that I finally got to work after playing with python and re in my own scripts. If you ever have problems downloading torrents from mininova, use this.
Pattern:
Replacement:
A few things I just learned. The pattern has to be in parentheses in order to be put in a search group. \g<1> apparently refers to the search group. This will convert any url like this:
http://www.mininova.com/get/0000000
to this:
http://www.mininova.com/get/0000000?direct
Pattern:
Code: Select all
(.*mininova.*)
Code: Select all
\g<1>?direct
http://www.mininova.com/get/0000000
to this:
http://www.mininova.com/get/0000000?direct