Ticket #1614 (new help)

Opened 14 months ago

Last modified 14 months ago

Trying to update the http_header

Reported by: buddub Owned by:
Priority: major Milestone:
Component: Plugins Keywords: httpheader kat.ph referer
Cc: Version (eg. 1.0r2700):

Description

I found that kat.ph are using torcache.net, which makes my downloads fail (rewriting the url doesn't do the trick). This can be solved by setting the HTTP referer header to the download url. E.g

If i want to download:

https://torcache.net/torrent/xxxxxxxxxxxxxxxxxxxxxxxxxxx.torrent

I would set

referer:https://torcache.net/torrent/xxxxxxxxxxxxxxxxxxxxxxxxxxx.torrent

How do I accomplish this ?

Change History

comment:1 Changed 14 months ago by flexget

another problem with torcache and the other sites that use the same code is that they return an HTTP status code of 200 even if the torrent was not found, instead of a 404.

comment:2 Changed 14 months ago by heinbloed

I use the following settings to rewrite entries from kat.ph to cached torrents at zoink:

    rss: 
        url: http://kat.ph/search/verified%3A1%20category%3Atv/?rss=1
        other_fields: [hash]
    manipulate:
        - url:
            from: hash
            replace:
                regexp: '(.*)'
                format: 'http://zoink.it/torrent/\1.torrent'   
Note: See TracTickets for help on using tickets.