Page 1 of 1

FlexRSS Link Rewriting

Posted: Sun Mar 22, 2009 6:59 pm
by key134
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:

Code: Select all

(.*mininova.*)
Replacement:

Code: Select all

\g<1>?direct
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

Re: FlexRSS Link Rewriting

Posted: Tue Dec 01, 2009 4:03 pm
by vinnievegas
I have a feed that messes the link up. it adds semicolons when there shouldn't be any.

Here is the original link.

Code: Select all

hxxp://www.site.org/torrents.php?action=download&id=xxxxx&authkey=xxxxxxxxxx&torrent_pass=xxxxxxxxxx
Heres the link after flexrss messes it up.

Code: Select all

hxxp://www.site.org/torrents.php?action=download&id;=xxxxx&authkey;=xxxxxxxxxx&torrent;_pass=xxxxxxxxxx
Is there a way to get it to rewrite the link without the semicolons?
Thanks

Re: FlexRSS Link Rewriting

Posted: Fri Dec 04, 2009 2:31 am
by hordak
I have not upgraded to the 1.2.0 rcs because this plugin has not been rewritten yet.

You need to use the link rewrite in the filter tab. You will need to filter for the torrents that you are interested in

Pattern ;
Replacement .*

There is something corrupted in the mininova feed that is adding this additional character.

Re: FlexRSS Link Rewriting

Posted: Fri Dec 04, 2009 1:00 pm
by vinnievegas
Still doesnt work with the link replacement you provided.