Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of single media file updates #2283

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Nov 4, 2023

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)

@mikiher mikiher marked this pull request as ready for review November 4, 2023 11:12
@advplyr
Copy link
Owner

advplyr commented Nov 6, 2023

Works well. Thanks!

@advplyr advplyr merged commit 5ce1cda into advplyr:master Nov 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Watcher fails to add single audio file to library if library is audiobooks-only
2 participants