mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-11-06 18:58:01 +00:00
streamer: handling errors does not happen, add workaround
This commit is contained in:
1 parent
df6bf9465f
commit
72c5684da9
2 files changed
+9
-2
No files matched your search
@@ -138,7 +138,12 @@ export class AllFilesService {
|
||||
const entity = await this.fileRepository.findOne({ where: { id: id } });
|
||||
|
||||
if (entity === null) {
|
||||
throw new NotFoundException('entity not found id: ' + fileId);
|
||||
response
|
||||
.status(404)
|
||||
.send('entity not found id: ' + fileId)
|
||||
.end();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.streamerFacade.streamFile(request, response, entity.path);
|
||||
|
||||
Reference in new issue
Block a user