mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-20 09:39:58 +02:00
BookFinder formatting update
This commit is contained in:
parent
0282a0521b
commit
b580a23e7e
1 changed files with 3 additions and 3 deletions
|
@ -354,7 +354,7 @@ class BookFinder {
|
|||
|
||||
if (books.length) {
|
||||
const resultsHaveDuration = provider.startsWith('audible')
|
||||
if (resultsHaveDuration && libraryItem && libraryItem.media?.duration) {
|
||||
if (resultsHaveDuration && libraryItem?.media?.duration) {
|
||||
const libraryItemDurationMinutes = libraryItem.media.duration / 60
|
||||
// If provider results have duration, sort by ascendinge duration difference from libraryItem
|
||||
books.sort((a, b) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue