(self,map)
| 326 | return [200, "video/MP2T", action, ""] |
| 327 | |
| 328 | def proxyM3U8(self,map): |
| 329 | shareId = map['share_id'] |
| 330 | fileId = map['file_id'] |
| 331 | |
| 332 | shareToken = self.getToken(shareId,'') |
| 333 | content = self.getMediaSlice(shareId,shareToken,fileId) |
| 334 | |
| 335 | action = { |
| 336 | 'url':'', |
| 337 | 'header':'', |
| 338 | 'param':'', |
| 339 | 'type':'string', |
| 340 | 'after':'' |
| 341 | } |
| 342 | |
| 343 | return [200, "application/octet-stream", action, content] |
| 344 | |
| 345 | def localProxy(self,param): |
| 346 | if not self.login(): |
no test coverage detected