mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Updated function parseAndCheckForUpdates to pass Library Item rather then just the metadata object
This commit is contained in:
		
							parent
							
								
									68621e0c07
								
							
						
					
					
						commit
						7a751b8f91
					
				| @ -252,7 +252,7 @@ class Book { | ||||
|     if (metadataAbs) { | ||||
|       Logger.debug(`[Book] Found metadata.abs file for "${this.metadata.title}"`) | ||||
|       const metadataText = await readTextFile(metadataAbs.metadata.path) | ||||
|       const abmetadataUpdates = abmetadataGenerator.parseAndCheckForUpdates(metadataText, this.metadata, 'book') | ||||
|       const abmetadataUpdates = abmetadataGenerator.parseAndCheckForUpdates(metadataText, this, 'book') | ||||
|       if (abmetadataUpdates && Object.keys(abmetadataUpdates).length) { | ||||
|         Logger.debug(`[Book] "${this.metadata.title}" changes found in metadata.abs file`, abmetadataUpdates) | ||||
|         metadataUpdatePayload = { | ||||
| @ -489,4 +489,4 @@ class Book { | ||||
|     return this.metadata.authorName | ||||
|   } | ||||
| } | ||||
| module.exports = Book | ||||
| module.exports = Book | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user