@Shr00m wrote:
I'm getting this error when downloading from a private RSS feed. I can copy/paste this URL in a browser and the torrent downloads without any login information so I know its not that.
(failure reason: Unexpected html content received from
http://example.org/torrents.php?action=download&authkey=&torrent_pass=&id=207102- maybe a login page?)
Let's call this URL "RSS URL"
If I get the download URL outside of the RSS feed from the main webpage its in this format:
https://example.org/torrents.php?action=download&id=207102&authkey=<MyAuthKey>&torrent_pass=<MyPass>
Let's call this URL "Web URL"
So, I'm trying to use the urlrewriter plugin to make "RSS URL" mimic "WEB URL". It appears the only changes that I need to do is:
1. Replace http with https
2. Move &id=207102 directly after action=downloadI'm using the following template in my config file:
rewrite: urlrewrite: sitename: regexp: 'http:\/\/example.org\/torrents.php\?action=download&authkey=(?P<authKey>\w+)&torrent_pass=(?P<torrent_pass>\w+)&id=(?P<id>\d+)' format: 'https:\/\/example.org\/torrents.php?action=download&id=\g<id>&authkey=\g<authKey>&torrent_pass=\g<torrent_pass>'
When I execute flexget I can see the following in the logs:
2017-07-24 16:53 DEBUG urlrewriter get_tv_all Checking 0 entries
Why isn't it matching? I've even validated it here: https://regex101.com/
Is there a better way to troubleshoot this?
Does anyone see what I'm doing wrong?Thanks!
Posts: 1
Participants: 1