mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 02:34:56 +02:00
New data model edit tracks page, match, quick match, clean out old files
This commit is contained in:
parent
be1e1e7ba0
commit
7d66f1eec9
68 changed files with 354 additions and 1529 deletions
|
@ -16,7 +16,7 @@ class Audible {
|
|||
author: authors ? authors.map(({ name }) => name).join(', ') : null,
|
||||
narrator: narrators ? narrators.map(({ name }) => name).join(', ') : null,
|
||||
publisher: publisher_name,
|
||||
publishYear: release_date ? release_date.split('-')[0] : null,
|
||||
publishedYear: release_date ? release_date.split('-')[0] : null,
|
||||
description: stripHtml(publisher_summary).result,
|
||||
cover: this.getBestImageLink(product_images),
|
||||
asin,
|
||||
|
|
|
@ -23,7 +23,7 @@ class GoogleBooks {
|
|||
subtitle: subtitle || null,
|
||||
author: authors ? authors.join(', ') : null,
|
||||
publisher,
|
||||
publishYear: publisherDate ? publisherDate.split('-')[0] : null,
|
||||
publishedYear: publisherDate ? publisherDate.split('-')[0] : null,
|
||||
description,
|
||||
cover: imageLinks && imageLinks.thumbnail ? imageLinks.thumbnail : null,
|
||||
genres: categories ? categories.join(', ') : null,
|
||||
|
|
|
@ -65,7 +65,7 @@ class OpenLibrary {
|
|||
return {
|
||||
title: doc.title,
|
||||
author: doc.author_name ? doc.author_name.join(', ') : null,
|
||||
publishYear: this.parsePublishYear(doc, worksData),
|
||||
publishedYear: this.parsePublishYear(doc, worksData),
|
||||
edition: doc.cover_edition_key,
|
||||
cover: doc.cover_edition_key ? `https://covers.openlibrary.org/b/OLID/${doc.cover_edition_key}-L.jpg` : null,
|
||||
...worksData
|
||||
|
|
|
@ -65,7 +65,7 @@ class iTunes {
|
|||
title: data.collectionName,
|
||||
author: data.artistName,
|
||||
description: stripHtml(data.description || '').result,
|
||||
publishYear: data.releaseDate ? data.releaseDate.split('-')[0] : null,
|
||||
publishedYear: data.releaseDate ? data.releaseDate.split('-')[0] : null,
|
||||
genres: data.primaryGenreName ? [data.primaryGenreName] : [],
|
||||
cover: this.getCoverArtwork(data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue