mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-23 12:25:04 +02:00
Remove NFO metadata and save metadata button
This commit is contained in:
parent
3f6ed6dbf9
commit
79a82df914
5 changed files with 0 additions and 163 deletions
|
@ -616,40 +616,6 @@ class Scanner {
|
|||
return false
|
||||
}
|
||||
|
||||
// TODO: Redo metadata
|
||||
async saveMetadata(audiobookId) {
|
||||
// if (audiobookId) {
|
||||
// var audiobook = this.db.audiobooks.find(ab => ab.id === audiobookId)
|
||||
// if (!audiobook) {
|
||||
// return {
|
||||
// error: 'Audiobook not found'
|
||||
// }
|
||||
// }
|
||||
// var savedPath = await audiobook.writeNfoFile()
|
||||
// return {
|
||||
// audiobookId,
|
||||
// audiobookTitle: audiobook.title,
|
||||
// savedPath
|
||||
// }
|
||||
// } else {
|
||||
// var response = {
|
||||
// success: 0,
|
||||
// failed: 0
|
||||
// }
|
||||
// for (let i = 0; i < this.db.audiobooks.length; i++) {
|
||||
// var audiobook = this.db.audiobooks[i]
|
||||
// var savedPath = await audiobook.writeNfoFile()
|
||||
// if (savedPath) {
|
||||
// Logger.info(`[Scanner] Saved metadata nfo ${savedPath}`)
|
||||
// response.success++
|
||||
// } else {
|
||||
// response.failed++
|
||||
// }
|
||||
// }
|
||||
// return response
|
||||
// }
|
||||
}
|
||||
|
||||
async quickMatchBook(libraryItem, options = {}) {
|
||||
var provider = options.provider || 'google'
|
||||
var searchTitle = options.title || libraryItem.media.metadata.title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue