mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	BookFinder formatting update
This commit is contained in:
		
							parent
							
								
									0282a0521b
								
							
						
					
					
						commit
						b580a23e7e
					
				| @ -354,8 +354,8 @@ class BookFinder { | |||||||
| 
 | 
 | ||||||
|     if (books.length) { |     if (books.length) { | ||||||
|       const resultsHaveDuration = provider.startsWith('audible') |       const resultsHaveDuration = provider.startsWith('audible') | ||||||
|       if (resultsHaveDuration && libraryItem && libraryItem.media?.duration) { |       if (resultsHaveDuration && libraryItem?.media?.duration) { | ||||||
|         const libraryItemDurationMinutes = libraryItem.media.duration/60       |         const libraryItemDurationMinutes = libraryItem.media.duration / 60 | ||||||
|         // If provider results have duration, sort by ascendinge duration difference from libraryItem
 |         // If provider results have duration, sort by ascendinge duration difference from libraryItem
 | ||||||
|         books.sort((a, b) => { |         books.sort((a, b) => { | ||||||
|           const aDuration = a.duration || Number.POSITIVE_INFINITY |           const aDuration = a.duration || Number.POSITIVE_INFINITY | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user