[PR #2283] [MERGED] Fix handling of single media file updates #3686

Closed
opened 2026-04-25 00:16:39 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2283
Author: @mikiher
Created: 11/4/2023
Status: Merged
Merged: 11/6/2023
Merged by: @advplyr

Base: masterHead: watcher-single-file-update


📝 Commits (1)

  • 567e1c4 Fix handling of single mefia file updates

📊 Changes

1 file changed (+14 additions, -4 deletions)

View changed files

📝 server/scanner/LibraryScanner.js (+14 -4)

📄 Description

Resolves #2282.

After the fix, relevant logs lines:

[2023-11-04 11:03:26] DEBUG: [Watcher] File Added /torrents/2BR02B - librivox.m4b (Watcher.js:151)
[2023-11-04 11:03:26] DEBUG: [Watcher] Modified file in library "Torrents" and folder "7574feec-eebc-4858-a01e-7613f1eac121" with relPath "/2BR02B - librivox.m4b" (Watcher.js:256)
[2023-11-04 11:03:26] DEBUG: [Watcher] Waiting to add file at "/torrents/2BR02B - librivox.m4b". mtimeMs=1696863726581.3113 lastMTimeMs=0 (loop 0) (Watcher.js:209)
[2023-11-04 11:03:27] DEBUG: [Watcher] File finished adding at "/torrents/2BR02B - librivox.m4b" (Watcher.js:205)
[2023-11-04 11:03:30] DEBUG: [Scanner] Scanning file update groups in folder "7574feec-eebc-4858-a01e-7613f1eac121" of library "Torrents" (LibraryScanner.js:459)
[2023-11-04 11:03:30] DEBUG: [Scanner] scanFolderUpdates fileUpdateGroup { '2BR02B - librivox.m4b': '2BR02B - librivox.m4b' } (LibraryScanner.js:460)
[2023-11-04 11:03:31] DEBUG: [LibraryScanner] Folder update group must be a new item "2BR02B - librivox.m4b" in library "Torrents" (LibraryScanner.js:582)
[2023-11-04 11:03:31] DEBUG: [AudioFileScanner] Smart track order for "2BR02B - librivox.m4b" using track key trackNumFromMeta (AudioFileScanner.js:94)
[2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": "2BR02B - librivox" Getting metadata with precedence [folderStructure, audioMetatags, txtFiles, opfFile, absMetadata] (ScanLogger.js:65)
[2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": setChapters: Using embedded chapters in first audio file /torrents/2BR02B - librivox.m4b (ScanLogger.js:65)
[2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": Success saving abmetadata to "/workspaces/audiobookshelf/metadata/items/72fb15fe-b773-48c4-a40a-e6f1cb4a97f9/metadata.json" (ScanLogger.js:65)
[2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": Created new library item "2BR02B - librivox.m4b" (ScanLogger.js:65)
[2023-11-04 11:03:31] DEBUG: [LibraryScanner] Folder scan results { '2BR02B - librivox.m4b': 1 } (LibraryScanner.js:386)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/2283 **Author:** [@mikiher](https://github.com/mikiher) **Created:** 11/4/2023 **Status:** ✅ Merged **Merged:** 11/6/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `watcher-single-file-update` --- ### 📝 Commits (1) - [`567e1c4`](https://github.com/advplyr/audiobookshelf/commit/567e1c46db5e8e2c081b541d2649da29a004dd88) Fix handling of single mefia file updates ### 📊 Changes **1 file changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/scanner/LibraryScanner.js` (+14 -4) </details> ### 📄 Description Resolves #2282. After the fix, relevant logs lines: ``` [2023-11-04 11:03:26] DEBUG: [Watcher] File Added /torrents/2BR02B - librivox.m4b (Watcher.js:151) [2023-11-04 11:03:26] DEBUG: [Watcher] Modified file in library "Torrents" and folder "7574feec-eebc-4858-a01e-7613f1eac121" with relPath "/2BR02B - librivox.m4b" (Watcher.js:256) [2023-11-04 11:03:26] DEBUG: [Watcher] Waiting to add file at "/torrents/2BR02B - librivox.m4b". mtimeMs=1696863726581.3113 lastMTimeMs=0 (loop 0) (Watcher.js:209) [2023-11-04 11:03:27] DEBUG: [Watcher] File finished adding at "/torrents/2BR02B - librivox.m4b" (Watcher.js:205) [2023-11-04 11:03:30] DEBUG: [Scanner] Scanning file update groups in folder "7574feec-eebc-4858-a01e-7613f1eac121" of library "Torrents" (LibraryScanner.js:459) [2023-11-04 11:03:30] DEBUG: [Scanner] scanFolderUpdates fileUpdateGroup { '2BR02B - librivox.m4b': '2BR02B - librivox.m4b' } (LibraryScanner.js:460) [2023-11-04 11:03:31] DEBUG: [LibraryScanner] Folder update group must be a new item "2BR02B - librivox.m4b" in library "Torrents" (LibraryScanner.js:582) [2023-11-04 11:03:31] DEBUG: [AudioFileScanner] Smart track order for "2BR02B - librivox.m4b" using track key trackNumFromMeta (AudioFileScanner.js:94) [2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": "2BR02B - librivox" Getting metadata with precedence [folderStructure, audioMetatags, txtFiles, opfFile, absMetadata] (ScanLogger.js:65) [2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": setChapters: Using embedded chapters in first audio file /torrents/2BR02B - librivox.m4b (ScanLogger.js:65) [2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": Success saving abmetadata to "/workspaces/audiobookshelf/metadata/items/72fb15fe-b773-48c4-a40a-e6f1cb4a97f9/metadata.json" (ScanLogger.js:65) [2023-11-04 11:03:31] DEBUG: [Scan] "2BR02B - librivox.m4b": Created new library item "2BR02B - librivox.m4b" (ScanLogger.js:65) [2023-11-04 11:03:31] DEBUG: [LibraryScanner] Folder scan results { '2BR02B - librivox.m4b': 1 } (LibraryScanner.js:386) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:16:39 +02:00
adam closed this issue 2026-04-25 00:16:39 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3686