(self,map)
| 302 | return [200, "video/MP2T", action, ""] |
| 303 | |
| 304 | def proxyM3U8(self,map): |
| 305 | shareId = map['share_id'] |
| 306 | fileId = map['file_id'] |
| 307 | |
| 308 | shareToken = self.getToken(shareId,'') |
| 309 | content = self.getMediaSlice(shareId,shareToken,fileId) |
| 310 | |
| 311 | action = { |
| 312 | 'url':'', |
| 313 | 'header':'', |
| 314 | 'param':'', |
| 315 | 'type':'string', |
| 316 | 'after':'' |
| 317 | } |
| 318 | |
| 319 | return [200, "application/octet-stream", action, content] |
| 320 | |
| 321 | def localProxy(self,param): |
| 322 | if not self.login(): |
no test coverage detected