advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.7k stars 472 forks source link

[Bug]: "Match" has a slow race condition with user input #2231

Open wtanksleyjr opened 1 year ago

wtanksleyjr commented 1 year ago

Describe the issue

After accepting metadata changes from a Match operation (from the dropdown on the book's library item), the edit-book modal dialog is offered to the user as though ready for editing. But if the user makes any changes before the system completely removes the green "Item details updated" banner, the user edits will be removed and reset to the book's state immediately following the Match.

Ideally, I'd like the modal dialogue to be ready for user input immediately after the dialogue appears. If that's not possible, it would be better to make the modal not editable until user input can be preserved.

Steps to reproduce the issue

  1. This is a "slow race", but time still matters. Read the steps before trying to recreate it.
  2. "Match" a book (probably using the drop-down). Accept all offered metadata, and press OK.
  3. You'll be taken to the book-edit modal dialog. Observe the green "Item Details Updated" banner, its disappearance marks the race condition.
  4. While the green banner is still showing, delete one of the genres, or an author, or something else convenient.
  5. Wait for the green ribbon to retract.
  6. As soon as the banner is gone, all of the user changes will be reverted to the results of the match.
  7. Desired behavior: don't revert user input.

Audiobookshelf version

2.4.4

How are you running audiobookshelf?

Docker

advplyr commented 1 year ago

I'm not able to reproduce this. It also doesn't follow logically with the code because the duration of the toast is not related to anything else.

When you update a book, whether it is through the match tab or through the details tab, the server will emit a socket event notifying all clients of the update. If you have the edit modal open then the inputs will be updated when this socket event is received.

The only thing I can think of that is happening for you is that socket event is being delayed for you by either your client or your server. I can't think of how that would happen but you can do a simple test to see if my guess is correct.

  1. Open the dev console
  2. Update a book and press save
  3. See how quickly the "Item updated" console log appears (for me it is immediate)

The "Item updated" message is logged when the client receives the socket event I described above. update_item_socket_event_test

wtanksleyjr commented 1 year ago

Interesting! So what I get is an instant "item updated", and then another "item updated" that comes in right as the green banner hides itself. How odd.

advplyr commented 1 year ago

Can you run the same test except monitor the server logs at the same time? Perhaps that will show some other update happening a few seconds later.

wtanksleyjr commented 1 year ago

Sure, let's see what I can do with docker logs. ...

On Sun, Oct 22, 2023 at 6:55 AM advplyr @.***> wrote:

Can you run the same test except monitor the server logs at the same time? Perhaps that will show some other update happening a few seconds later.

— Reply to this email directly, view it on GitHub https://github.com/advplyr/audiobookshelf/issues/2231#issuecomment-1774102203, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7H6PKNOFKCWBZGNBOZS3YAUQUFAVCNFSM6AAAAAA6JWUFMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGEYDEMRQGM . You are receiving this because you authored the thread.Message ID: @.***>

wtanksleyjr commented 1 year ago

Worked great (i.e. was able to recreate it). Here's all of the log entries. I notice one thng that I forgot to mention: I have an older setup (originally used ABS metadata) on which I enabled json metadata stored in the book-folders, and I observe it sees that and loads it a second time. That ... just MIGHT be the problem, maybe?

10/76399]audiobookshelf_1  | [2023-10-23 01:57:12] DEBUG: Loaded 19 of 19 items for libary page in 8.49s (LibraryItem.js:469)
audiobookshelf_1  | [2023-10-23 01:57:45] DEBUG: Book Search: title: "Ballad of Songbirds and Snakes", author: "Suzanne Collins", provider: audible (BookFinder.js:306)
audiobookshelf_1  | [2023-10-23 01:57:45] DEBUG: [Audible] Search url: https://api.audible.com/1.0/catalog/products?num_results=10&products_sort_by=Relevance&title=Ballad+of+Songbirds+and+Snakes&author=Suzanne+Collins (Audible.js:105)
audiobookshelf_1  | [2023-10-23 01:57:46] DEBUG: [Audible] ASIN url: https://api.audnex.us/books/1338635204 (Audible.js:70)
audiobookshelf_1  | [2023-10-23 01:58:03] DEBUG: [LibraryItemController] Requesting download cover from url "https://m.media-amazon.com/images/I/81ncOzQvvFL.jpg" (LibraryItemController.js:170)
audiobookshelf_1  | [2023-10-23 01:58:03] DEBUG: [fileUtils] Downloading file to /audiobooks/libby/4852029/cover (fileUtils.js:208)
audiobookshelf_1  | [2023-10-23 01:58:03] DEBUG: [CacheManager] Going to purge 04050691-33d1-416c-8336-73a6a0df036a_400.webp (CacheManager.js:94)
audiobookshelf_1  | [2023-10-23 01:58:03] INFO: [CoverManager] Downloaded libraryItem cover "/audiobooks/libby/4852029/cover.jpg" from url "https://m.media-amazon.com/images/I/81ncOzQvvFL.jpg" for "Ballad of Songbirds and Snakes"
audiobookshelf_1  | [2023-10-23 01:58:04] DEBUG: [LibraryItem] Success saving abmetadata to "/audiobooks/libby/4852029/metadata.json" (LibraryItem.js:403)
audiobookshelf_1  | [2023-10-23 01:58:05] INFO: [LibraryItem] Library item "04050691-33d1-416c-8336-73a6a0df036a" updated
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [BookMetadata] Key updated title The Ballad of Songbirds and Snakes (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [BookMetadata] Key updated subtitle A Hunger Games Novel (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [BookMetadata] Key updated series [
audiobookshelf_1  |   {
audiobookshelf_1  |     id: 'a09b73ad-f940-41aa-932a-69961fd46b33',
audiobookshelf_1  |     name: 'Hunger Games',
audiobookshelf_1  |     sequence: null
audiobookshelf_1  |   }
audiobookshelf_1  | ] (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [BookMetadata] Key updated publisher Scholastic Audio (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [BookMetadata] Key updated description It is the morning of the reaping that will kick off the 10th annual Hunger Games. In the Capitol, 18-year-old Coriolanus Snow is preparing for his one shot at glory as a mentor in the Games. The once-mighty house of Snow has fallen on hard times, its fate hanging on the slender chance that Coriolanus will be able to out charm, outwit, and outmaneuver his fellow students to mentor the winning tribute. The odds are against him. He’s been given the humiliating assignment of mentoring the female tribute from District 12, the lowest of the low. Their fates are now completely intertwined - every choice Coriolanus makes could lead to favor or failure, triumph or ruin. Inside the arena, it will be a fight to the death. Outside the arena, Coriolanus starts to feel for his doomed tribute...and must weigh his need to follow the rules against his desire to survive no matter what it takes.  (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [BookMetadata] Key updated asin 1338635204 (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [Book] Key updated tags [
audiobookshelf_1  |   'Literature & Fiction',
audiobookshelf_1  |   'Action & Adventure',
audiobookshelf_1  |   'Science Fiction & Fantasy',
audiobookshelf_1  |   'Science Fiction',
audiobookshelf_1  |   'Dystopian'
audiobookshelf_1  | ] (Book.js:168)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [LibraryItemController] Series was removed from book. Check if series is now empty. (LibraryItemController.js:141)
audiobookshelf_1  | [2023-10-23 01:58:05] DEBUG: [FfmpegHelpers] Resize Image Cmd: ffmpeg -i /audiobooks/libby/4852029/cover.jpg -y -vf scale=400:-1 /metadata/cache/covers/04050691-33d1-416c-8336-73a6a0df036a_400.webp (ffmpegHelpers.js:76)
audiobookshelf_1  | [2023-10-23 01:58:06] INFO: [ApiRouter] Series "The Hunger Games" is now empty. Removing series
audiobookshelf_1  | [2023-10-23 01:58:06] DEBUG: [Watcher] File Added /audiobooks/libby/4852029/cover.jpg (Watcher.js:139)
audiobookshelf_1  | [2023-10-23 01:58:06] DEBUG: [Watcher] Modified file in library "Main" and folder "24f5cad1-83e1-4060-a2d5-d46e1e1dee95" with relPath "/4852029/cover.jpg" (Watcher.js:203)
audiobookshelf_1  | [2023-10-23 01:58:06] DEBUG: [LibraryItemController] Updated library item media The Ballad of Songbirds and Snakes (LibraryItemController.js:149)
audiobookshelf_1  | [2023-10-23 01:58:06] DEBUG: [LibraryItem] Success saving abmetadata to "/audiobooks/libby/4852029/metadata.json" (LibraryItem.js:403)
audiobookshelf_1  | [2023-10-23 01:58:07] INFO: [LibraryItem] Library item "04050691-33d1-416c-8336-73a6a0df036a" updated
audiobookshelf_1  | [2023-10-23 01:58:07] DEBUG: Book Search: title: "1338635204", author: "", provider: audible (BookFinder.js:306)
audiobookshelf_1  | [2023-10-23 01:58:07] DEBUG: [Audible] ASIN url: https://api.audnex.us/books/1338635204 (Audible.js:70)
audiobookshelf_1  | [2023-10-23 01:58:07] DEBUG: [FfmpegHelpers] Resize Image Cmd: ffmpeg -i /audiobooks/libby/4852029/cover.jpg -y -vf scale=400:-1 /metadata/cache/covers/04050691-33d1-416c-8336-73a6a0df036a_400.webp (ffmpegHelpers.js:76)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [Scanner] Scanning file update groups in folder "24f5cad1-83e1-4060-a2d5-d46e1e1dee95" of library "Main" (LibraryScanner.js:395)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [Scanner] scanFolderUpdates fileUpdateGroup { '4852029': [ 'cover.jpg' ] } (LibraryScanner.js:396)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [LibraryScanner] Folder update for relative path "4852029" is in library item "The Ballad of Songbirds and Snakes" - scan for updates (LibraryScanner.js:492)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [Scan] "04050691-33d1-416c-8336-73a6a0df036a": New library file found with path "/audiobooks/libby/4852029/cover.jpg" for library item "4852029" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [Scan] "04050691-33d1-416c-8336-73a6a0df036a": Library item "4852029" changed: [size,lastScan] (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [FfmpegHelpers] Image resized Successfully (ffmpegHelpers.js:83)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [FfmpegHelpers] Image resized Successfully (ffmpegHelpers.js:83)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [Scan] "04050691-33d1-416c-8336-73a6a0df036a": Found metadata file "/audiobooks/libby/4852029/metadata.json" - preferring (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-23 01:58:10] DEBUG: [Scan] "04050691-33d1-416c-8336-73a6a0df036a": Updating book sequence "undefined" => "0" for book "The Ballad of Songbirds and Snakes" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-23 01:58:11] DEBUG: [Scan] "04050691-33d1-416c-8336-73a6a0df036a": Success saving abmetadata to "/audiobooks/libby/4852029/metadata.json" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-23 01:58:11] DEBUG: [LibraryScanner] Folder scan results { '4852029': 2 } (LibraryScanner.js:347)
advplyr commented 1 year ago

It has to do with the file watcher detecting the new cover added. Can you try testing this again but exclude the cover image when matching?

wtanksleyjr commented 1 year ago

Sure, pending...

On Mon, Oct 23, 2023 at 3:03 PM advplyr @.***> wrote:

It has to do with the file watcher detecting the new cover added. Can you try testing this again but exclude the cover image when matching?

— Reply to this email directly, view it on GitHub https://github.com/advplyr/audiobookshelf/issues/2231#issuecomment-1776092948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7H6KLHLU4DWMYCXYRFSTYA3STDAVCNFSM6AAAAAA6JWUFMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZWGA4TEOJUHA . You are receiving this because you authored the thread.Message ID: @.***>

wtanksleyjr commented 1 year ago

Yes, that seems to be likely; I couldn't make this happen so long as I unchecked the cover. Nice!

On Mon, Oct 23, 2023 at 3:03 PM advplyr @.***> wrote:

It has to do with the file watcher detecting the new cover added. Can you try testing this again but exclude the cover image when matching?

— Reply to this email directly, view it on GitHub https://github.com/advplyr/audiobookshelf/issues/2231#issuecomment-1776092948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7H6KLHLU4DWMYCXYRFSTYA3STDAVCNFSM6AAAAAA6JWUFMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZWGA4TEOJUHA . You are receiving this because you authored the thread.Message ID: @.***>

wtanksleyjr commented 1 year ago

Oops, I've done several more with the cover unchecked, and it did happen two more times. So it's less common, but not unheard-of, without the cover.

advplyr commented 1 year ago

Can you reproduce this again showing the logs when you are not including the cover image?

From your previous logs it was pretty clear this was the watcher picking up the cover image and running a scan. The watcher has a few second delay which explains why it is lining up with the toast notification for you.

wtanksleyjr commented 1 year ago

Here's a set of logs of the same thing without the cover image checked:

audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [BookMetadata] Key updated title Toil & Trouble (BookMetadata.js:211)
audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [BookMetadata] Key updated authors [                                                                                                                           audiobookshelf_1  |   {                                                                                                                                                                                         audiobookshelf_1  |     id: '8c443d23-9469-4c71-b2a5-6f0c967582c3',                                                                                                                                             audiobookshelf_1  |     name: 'Augusten Burroughs'                                                                                                                                                              audiobookshelf_1  |   }                                                                                                                                                                                         audiobookshelf_1  | ] (BookMetadata.js:211)                                                                                                                                                                     audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [BookMetadata] Key updated narrators [ 'Anne Bobby', 'Augusten Burroughs', 'Gabra Zackman', 'Robin Miles' ] (BookMetadata.js:211)                              audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [BookMetadata] Key updated publishedYear 2019 (BookMetadata.js:211)                                                                                            audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [BookMetadata] Key updated description "...on top of everything else, the audiobook features a multi-textural and atmospheric full-cast performance.... This is a wild, spookily engaging take on a memoir from an iconic writer." (Paste)  From the number-one New York Times best-selling author comes another stunning memoir that is tender, touching...and just a little spooky.  "Here’s a partial list of things I don’t believe in: God. The Devil. Heaven. Hell. Bigfoot. Ancient aliens. Past lives. Vampires. Zombies. Homeopathy. Bigfoot. Canola oil, because there's no such thing as a canola. Note that 'witches' and 'witchcraft' are absent from this list. When really they should be right there at the top. The thing is, I wouldn’t believe in them, and I would privately ridicule any idiot who did, except for one thing: I am a witch." (From Toil & Trouble) For as long as Augusten Burroughs could remember, he knew things he shouldn't have known. He manifested things that shouldn't have come to pass. And he told exactly no one about this, save one person: his mother. His mother reassured him that it was all perfectly normal, that he was descended from a long line of witches, going back to the days of the early American colonies. And that this family tree was filled with witches. It was a bond that he and his mother shared - until the day she left him in the care of her psychiatrist to be raised in his family (but that's a whole other story). After that, Augusten was on his own. On his own to navigate the world of this tricky power; on his own to either use or misuse this gift. From the hilarious to the terrifying, Toil & Trouble is a chronicle of one man's journey to understand himself, to reconcile the powers he can wield with things with which he is helpless. There are very few things that are coincidences, as you will learn in Toil & Trouble. Ghosts are real, trees can want to kill you, beavers are the spawn of satan, houses are alive, and in the end, love is the most powerful magic of all.  "[Toil & Trouble] is fully brought to life in a complete and unabridged 'theatre of the mind' audio book experience by the narrative team of Augusten Burroughs, Anne Bobby, Robin Miles, and Gabra Zackman." (Midwest Book Review) (BookMetadata.js:211)                                                                                                                                                                                       audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [BookMetadata] Key updated asin 125024014X (BookMetadata.js:211)                                                                                               audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [Book] Key updated tags [ 'Personal Development', 'Personal Success' ] (Book.js:168)                                                                           audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [LibraryItemController] Updated library item media Toil & Trouble (LibraryItemController.js:149)                                                               audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [LibraryItem] Removing metadata.abs for item "Toil & Trouble" (LibraryItem.js:374)                                                                             audiobookshelf_1  | [2023-10-29 01:32:07] DEBUG: [LibraryItem] Success saving abmetadata to "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.json" (LibraryItem.js:403)      audiobookshelf_1  | [2023-10-29 01:32:09] INFO: [LibraryItem] Library item "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e" updated                                                                                       audiobookshelf_1  | [2023-10-29 01:32:09] DEBUG: Book Search: title: "125024014X", author: "", provider: audible (BookFinder.js:306)                                                                            audiobookshelf_1  | [2023-10-29 01:32:09] DEBUG: [Audible] ASIN url: https://api.audnex.us/books/125024014X (Audible.js:70)                                                                                     audiobookshelf_1  | [2023-10-29 01:32:10] DEBUG: [Watcher] File Removed /audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.abs (Watcher.js:147)                                 audiobookshelf_1  | [2023-10-29 01:32:10] DEBUG: [Watcher] Modified file in library "Main" and folder "204ed059-88df-440a-9526-04b660c20623" with relPath "/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.abs" (Watcher.js:203)                                                                                                                                                                                  audiobookshelf_1  | [2023-10-29 01:32:10] DEBUG: [Watcher] File Added /audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.json (Watcher.js:139)                                  audiobookshelf_1  | [2023-10-29 01:32:10] DEBUG: [Watcher] Modified file in library "Main" and folder "204ed059-88df-440a-9526-04b660c20623" with relPath "/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.json" (Watcher.js:203)                                                                                                                                                                                 audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scanner] Scanning file update groups in folder "204ed059-88df-440a-9526-04b660c20623" of library "Main" (LibraryScanner.js:395)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scanner] scanFolderUpdates fileUpdateGroup {
audiobookshelf_1  |   'Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby': [ 'metadata.abs', 'metadata.json' ]
audiobookshelf_1  | } (LibraryScanner.js:396)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [LibraryScanner] Folder update for relative path "Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" is in library item "Toil & Trouble" - scan for updates (LibraryScanner.js:492)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library item "Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ino" changed from "48105074" t95" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library item "Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtime" changed from "1594523024501" to "1683287868819" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part01.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part01.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523189506" to "1683252424680" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part02.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part02.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523189722" to "1683252424824" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part03.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part03.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523189994" to "1683252425004" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part04.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part04.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523190174" to "1683252425136" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part05.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part05.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523190418" to "1683252425308" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part06.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part06.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523190666" to "1683252425488" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part07.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part07.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523190894" to "1683252425692" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part08.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part08.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523191078" to "1683252425832" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part09.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part09.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523191318" to "1683252426008" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Part10.mp3" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288111417" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "4be33c85e3bbd81d2df1523b0b8e90e9.xhash" for library item "/audiobooks/overdrive/Augusten
-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "4be33c85e3bbd81d2df1523b0b8e90e9.xhash" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523189486" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Cover.jpg" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble-Cover.jpg" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523189486" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble.jpg" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble.jpg" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523191934" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble.wax" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "Toil & Trouble.wax" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523191934" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "book.json" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "size" changed from "2898" to "2990" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "book.json" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "mtimeMs" changed from "1649371764083" to "1677447362886" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "book.json" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "book.json" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1649371764083" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "folder.jpg" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "folder.jpg" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523191934" to "1683288112421" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "info.txt" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "info.txt" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1624915820114" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "processed.done" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "processed.done" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1624915820114" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "processed.wax.txt" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "processed.wax.txt" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "birthtimeMs" changed from "1594523191950" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library file "tag.cache" for library item "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" key "ctimeMs" changed from "1650898261537" to "1683288112441" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:14] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Library item "Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" changed: [ino,birthtime,size,lastScan,lastScanVersion] (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:15] DEBUG: [AudioFileScanner] Smart track order for "Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby" using track key trackNumFromFilename (AudioFileScanner.js:91)   
audiobookshelf_1  | [2023-10-29 01:32:15] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Found metadata file "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.json" - preferring (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:15] DEBUG: [Scan] "3bcd8a29-c8eb-47e2-b335-7ed7b6f2af6e": Success saving abmetadata to "/audiobooks/overdrive/Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby/metadata.json" (ScanLogger.js:65)
audiobookshelf_1  | [2023-10-29 01:32:15] DEBUG: [LibraryScanner] Folder scan results { 'Augusten-Burroughs-Toil-Trouble-A-Memoir-Anne-Bobby': 2 } (LibraryScanner.js:347)
advplyr commented 1 year ago

Something is creating or removing metadata.abs and metadata.json files. Do you have some other scripts running? Do you have 2 instances of audiobookshelf running?

wtanksleyjr commented 1 year ago

None of my scripts touch anything in there except by moving a completely populated folder in (I ran into problems otherwise). I only move folders out manually, and never tinker otherwise.

Running 2 instances ... that would be quite a disaster. I'm only running one that I know of, surely doing that would cause all kinds of problems aside from this. I admit I don't know for absolutely sure, but ... it doesn't seem very likely. Nor can I find any sign that I'm doing that.

-Wm

On Sun, Oct 29, 2023 at 5:02 AM advplyr @.***> wrote:

Something is creating or removing metadata.abs and metadata.json files. Do you have some other scripts running? Do you have 2 instances of audiobookshelf running?

— Reply to this email directly, view it on GitHub https://github.com/advplyr/audiobookshelf/issues/2231#issuecomment-1784084498, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7H6NAHFY4ZB6IGWRAXQLYBZAUVAVCNFSM6AAAAAA6JWUFMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGA4DINBZHA . You are receiving this because you authored the thread.Message ID: @.***>

advplyr commented 8 months ago

Are you still having this issue in 2.8.0?

wtanksleyjr commented 8 months ago

I'll check. (I stopped using Match almost completely when I modified my Libation script to include the new expanded metadata - once I could put ALL of the Genre/Tags together into Tags, and then put only what I consider essential into the Genre, I found that I prefer it to the results of doing a Match.)

Be right back.

wtanksleyjr commented 8 months ago

Yes, I still see the same thing reported.

  1. Use popup "..." menu to run Match. I have Audible selected as my provider; I also picked a book I knew would match.
  2. Choose correct match; add an extra Tag like ", Something" to the Tags field. Save the result.
  3. As soon as the editing dialog appears, click the 'x' on your manually added tag. It turned out to be very easy; I tried to rush and fumbled, but it worked anyhow.
  4. Wait. The tag you just 'x'ed out will reappear after a relaxed few seconds.