(self, pluginName, account=None, type="HTTP", **kwargs)
| 39 | return self.core.config["download"]["interface"] |
| 40 | |
| 41 | def getRequest(self, pluginName, account=None, type="HTTP", **kwargs): |
| 42 | self.lock.acquire() |
| 43 | |
| 44 | options = self.getOptions() |
| 45 | options.update(kwargs) # submit kwargs as additional options |
| 46 | |
| 47 | if type == "XDCC": |
| 48 | req = XDCCRequest(self.bucket, options) |
| 49 | |
| 50 | else: |
| 51 | req = Browser(self.bucket, options) |
| 52 | |
| 53 | if account: |
| 54 | cj = self.getCookieJar(pluginName, account) |
| 55 | req.setCookieJar(cj) |
| 56 | else: |
| 57 | req.setCookieJar(CookieJar(pluginName)) |
| 58 | |
| 59 | self.lock.release() |
| 60 | return req |
| 61 | |
| 62 | def getHTTPRequest(self, **kwargs): |
| 63 | """ returns a http request, dont forget to close it ! """ |
no test coverage detected