Suggest, post, or discuss plugins for Deluge
key134
Post
by key134 » 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
vinnievegas
New User
Posts: 6 Joined: Sun Nov 09, 2008 5:49 pm
Post
by vinnievegas » Tue Dec 01, 2009 4:03 pm
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
hordak
Leecher
Posts: 59 Joined: Thu Apr 10, 2008 10:59 pm
Post
by hordak » Fri Dec 04, 2009 2:31 am
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.
vinnievegas
New User
Posts: 6 Joined: Sun Nov 09, 2008 5:49 pm
Post
by vinnievegas » Fri Dec 04, 2009 1:00 pm
Still doesnt work with the link replacement you provided.