req.addSubtitle with possibility to send http headers
|Assignee:||Andreas Smas||% Done:|
I'm building a plugin to fetch subtitles from a website, but the download subtitle is a URL that requires to send a Cookie: header with the user session.
Could you have to possibility to send custom http headers in req.addSubtitle?
An example is this: http://www.legendasdivx.com/modules.php?name=Downloads&d_op=getit&lid=182454
You can only downlaod the zip/rar if you are logged in (with a cookie)
- Status changed from New to Need feedback
Is this still valid?
Since there is a LegendasDivX plugin in the repo?
Yes, still valid. Is in the repo for tests only.
Ah OK, I see.
Showtime should deal with cookies automatically in its HTTP client without the plugins having to worry about them at all.
Please try that and if it does not work enable HTTP debug in settings:dev and attach the debug log.
The problem is that i need to send a custom cookie.
Sorry for forgetting about this.
Perhaps plugin.addHTTPAuth() will solve your issue?
See the JSAPI_plugin wiki page.
Is the problem still alive?
- Status changed from Need feedback to Fixed
- % Done changed from 0 to 100
Also available in: Atom