Skip to content

Scanner should treat Pt ## audiobook subfolders as part folders #262

Description

@potseeslc

Summary

BookOrbit v1.9.0 treats audiobook subfolders named Pt 00, Pt 01, etc. as separate books instead of recognizing them as part/disc folders belonging to the parent audiobook.

Environment

  • BookOrbit: v1.9.0
  • Deployment: Docker
  • Library type: audiobook library
  • Scanner mode: folder-based audiobook scan

Example layout

/audiobooks/Stephen King/Holly (2023)/
  Pt 00/
    Stephen King - Holly - Holly - Pt 00 - 01 of 02 - Audible.mp3
    Stephen King - Holly - Holly - Pt 00 - 02 of 02 - Dedication.mp3
  Pt 01/
    Stephen King - Holly - Holly - Pt 01 - 01 of 10.mp3
    ...
  Pt 43/
    Stephen King - Holly - Holly - Pt 43 - 02 of 02 - Outro.mp3

Actual behavior

The scanner created one missing parent audiobook record for:

/audiobooks/Stephen King/Holly (2023)

and many separate present audiobook records, one per Pt ## child folder.

In my case this produced 44 split child records for the same audiobook.

Expected behavior

Pt ## should be treated the same as common disc/part subfolder names such as Part ##, Disc ##, CD ##, etc., so all MP3 files are grouped under the parent audiobook folder.

Workaround confirmed

Renaming the folders from Pt ## to Part ## and rescanning fixed the issue. The parent audiobook became present with all MP3 files attached, and the split child records were no longer present.

Likely code area

The scanner disc directory pattern appears to recognize cd, disc, disk, part, and side, but not pt.

A likely minimal fix is to include pt as an accepted disc/part folder prefix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreleasedIssue or PR is included in a released version.status:needs-triageNew issue awaiting initial triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions