Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Help with Url Rewrite Rules

$
0
0

@softair wrote:

I'm trying to download torrent files via a demonoid rss feed. I know I have to use url_rewrite, and the only reference I can find suggests

regexp: 'http://{? Demonoid ?}/files/details/(?P<id>\d*)/(?P<user>\d*)/
format: 'http://{? Demonoid ?}/files/download/\g<id>/'

where the Demonoid variable is "www.demonoid.pw"

This doesn't actually work, and flexget thinks it has a login page or something, presumably because it's actually downloading the details page.

As far as I can see, the details page is of the form
www.demonoid.pw/files/details/123456
and changing that to
www.demonoid.pw/files/download/123456
gets you the torrent file.

But I can't find anything that actually tells me what the (?P... and g... stuff actually does. The regexp and format look a bit like regular expressions, but running them through the recommended RegExr just throws up errors, How can I find out the actual meaning of these, so I have some chance of constructing something that works with demonoid.pw ?

Any help gratefully received.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles