Adding inode to files and audiobooks to support renaming, setting up watcher and removing chokidar

This commit is contained in:
advplyr committed 2021-08-25 17:36:54 -05:00
1 parent 0c1a29adbf
commit cb40e063da
17 files changed
+558 -234

No files matched your search

+6
View File
@@ -26,6 +26,12 @@ class OpenLibrary {
async getWorksData(worksKey) {
var worksData = await this.get(`${worksKey}.json`)
if (!worksData) {
return {
errorMsg: 'Works Data Request failed',
errorCode: 500
}
}
if (!worksData.covers) worksData.covers = []
var coverImages = worksData.covers.filter(c => c > 0).map(c => `https://covers.openlibrary.org/b/id/${c}-L.jpg`)
var description = null