From 6e8270c5eaf3e9c379cce5a11922ba3f4b68d16d Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 24 Aug 2021 20:32:13 -0500 Subject: [PATCH] Emit update when cover is updated --- client/package.json | 2 +- package.json | 2 +- server/Scanner.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/package.json b/client/package.json index 5caf4e9f..f64ab72a 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf-client", - "version": "0.9.73-beta", + "version": "0.9.74-beta", "description": "Audiobook manager and player", "main": "index.js", "scripts": { diff --git a/package.json b/package.json index 9a743080..f3f421ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf", - "version": "0.9.73-beta", + "version": "0.9.74-beta", "description": "Self-hosted audiobook server for managing and playing audiobooks.", "main": "index.js", "scripts": { diff --git a/server/Scanner.js b/server/Scanner.js index dda4a7ea..fd051f22 100644 --- a/server/Scanner.js +++ b/server/Scanner.js @@ -200,6 +200,7 @@ class Scanner { audiobook.book.cover = results[0] await this.db.updateAudiobook(audiobook) found++ + this.emitter('audiobook_updated', audiobook.toJSONMinified()) } else { notFound++ }