🔧 Refactoring to move away from calibre for uncompression and extraction

This commit is contained in:
2022-03-07 21:09:58 -08:00
parent 3237c93b94
commit 336735ef03
6 changed files with 56 additions and 27 deletions

View File

@@ -57,12 +57,13 @@ const ComicSchema = mongoose.Schema(
shortboxed: {},
gcd: {},
},
rawFileDetails: { type: RawFileDetailsSchema, es_indexed: true },
rawFileDetails: { type: RawFileDetailsSchema, es_indexed: true, default: {} },
inferredMetadata: {
issue: {
name: { type: String, es_indexed: true },
number: {
type: Number,
es_indexed: true,
required: false,
default: 0,
},

View File

@@ -39,7 +39,6 @@ const VolumeInformation = mongoose.Schema({
original_url: String,
image_tags: String,
},
issues: [
{
api_detail_url: String,
@@ -72,6 +71,19 @@ const ComicVineMetadataSchema = mongoose.Schema({
date_last_updated: String,
deck: String,
description: String,
image: {
icon_url: String,
medium_url: String,
screen_url: String,
screen_large_url: String,
small_url: String,
super_url: String,
thumb_url: String,
tiny_url: String,
original_url: String,
image_tags: String,
},
has_staff_review: Boolean,
id: Number,
name: String,