Skip to content

[Bug] Renaming an audiobook only renames the first file of a multi-mp3 book #521

Description

@ponchohoncho

What went wrong?

When updating metadata, I have bookorbit rename files to organize them for me. single-file books have been great, but I just tried to rename an audiobook with multiple mp3s as chapters and it only renamed the first one.

Steps to reproduce

Edit metadata on a book that would alter its filename
Click save/write to file, whatever will trigger the rename for you
See the filenames afterwards

Expected vs actual behavior

This is what one book looks like now. The files are all still identified by BookOrbit as track1, track2, track3, etc.

-a---- 7/3/2026 8:15 AM 29224666 How Will You Measure Your Life_ - Clayton M. Christensen.mp3
-a---- 12/4/2024 4:01 PM 105558 How.Will.You.Measure.Your.Life-Cover.jpg
-a---- 7/3/2026 8:15 AM 31025720 How.Will.You.Measure.Your.Life-Part02.mp3
-a---- 7/3/2026 8:15 AM 29343583 How.Will.You.Measure.Your.Life-Part03.mp3
-a---- 7/3/2026 8:15 AM 31889999 How.Will.You.Measure.Your.Life-Part04.mp3
-a---- 7/3/2026 8:15 AM 36604551 How.Will.You.Measure.Your.Life-Part05.mp3
-a---- 12/4/2024 4:11 PM 3845 metadata.json

Your setup

BookOrbit 2.0.1 in LXC on Proxmox
Files through NFS on NAS
No other permissions issues

Relevant logs (optional)

I updated the metadata for this book, it only renamed the first file and then stopped.

Jul 03 09:01:39 bookorbit node[16679]: {"level":30,"time":1783087299504,"pid":16679,"hostname":"bookorbit","req":{"id":"req-3b8","method":"PATCH","url":"/api/v1/books/521/metadata-and-locks?syncFileWrite=true"},"context":"FileWriteService","msg":"[file_write.write] [end] bookId=521 format=mp3 triggeredBy=sync userId=1 dryRun=false durationMs=9695 status=success fieldsWritten=14 - file write completed"}
Jul 03 09:01:39 bookorbit node[16679]: {"level":30,"time":1783087299504,"pid":16679,"hostname":"bookorbit","req":{"id":"req-3b8","method":"PATCH","url":"/api/v1/books/521/metadata-and-locks?syncFileWrite=true"},"context":"FileRenameService","msg":"[file.rename] [start] bookId=521 userId=1 force=false - file rename started"}
Jul 03 09:01:39 bookorbit node[16679]: {"level":30,"time":1783087299525,"pid":16679,"hostname":"bookorbit","req":{"id":"req-3b8","method":"PATCH","url":"/api/v1/books/521/metadata-and-locks?syncFileWrite=true"},"context":"FileRenameService","msg":"[file.rename] [end] bookId=521 userId=1 durationMs=21 status=success oldPath=\"/books/Clayton M. Christensen/How Will You Measure Your Life_ (2012)/How.Will.You.Measure.Your.Life-Part01.mp3\" newPath=\"/books/Clayton M. Christensen/How Will You Measure Your Life_ (2012)/How Will You Measure Your Life_ - Clayton M. Christensen.mp3\" - file rename completed"}
Jul 03 09:01:39 bookorbit node[16679]: {"level":30,"time":1783087299551,"pid":16679,"hostname":"bookorbit","req":{"id":"req-3b8","method":"PATCH","url":"/api/v1/books/521/metadata-and-locks?syncFileWrite=true"},"context":"BookService","msg":"[book.update_metadata_and_locks] [end] bookId=521 durationMs=9773 scalarFields=8 customMetadataUpdated=false lockFields=0 - metadata and lock update completed"}

Screenshots (optional)

No response

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions