()
| 76 | private recorderListener!: RecorderListener; |
| 77 | private pluginManagerListener!: PluginManagerListener; |
| 78 | constructor() { |
| 79 | |
| 80 | process.on('uncaughtException', e => Logger.Get.Log(e.toString())); |
| 81 | |
| 82 | Logger.Get.AddWriter(new ConsoleWriter()); |
| 83 | this.express = Express(); |
| 84 | this.server = new WebServerFactory().Create(); |
| 85 | this.server.on('request', this.express); |
| 86 | this.io = SocketIo(this.server); |
| 87 | |
| 88 | if (C.Hostname !== '') |
| 89 | this.io.origins(SocketSameOrigin); |
| 90 | |
| 91 | this.broadcaster = new Broadcaster(this.io); |
| 92 | |
| 93 | this.RegisterPlugin('bongacams', new BongacamsLocator(new BongacamsExtractor(), 10000)); |
| 94 | this.RegisterPlugin('bongacams_direct', new BongacamsDirectLocator(new BongacamsExtractor(), 10000)); |
| 95 | this.RegisterPlugin('chaturbate', new ChaturbateDirectLocator(new ChaturbateExtractor(), 10000)); |
| 96 | this.RegisterPlugin('camsoda', new CamsodaLocator(new CamsodaExtractor(), 10000)); |
| 97 | this.RegisterPlugin('dummy', new DummyLocator(new DummyExtractor(), 10000)); |
| 98 | |
| 99 | this.StartResourceMonitor(); |
| 100 | } |
| 101 | |
| 102 | public async UplaodVideoRoute(request: Express.Request, response: Express.Response, next: Express.NextFunction) { |
| 103 | const thumbnailGen = new ThumbnailGenerator(); |
nothing calls this directly
no test coverage detected