Repository navigation
Conversation
Add m4b to the audio/mp4 extension list so autodetection and ID3-based music matching treat audiobooks as audio instead of falling back to movie/series detection. Fixes masterxq#9
Author
|
Tested on MacOS distro UI manually. Worked as expected. |
KalebJS
marked this pull request as ready for review
December 6, 2026 03:23
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
m4bas an audio extension so audiobook files participate in music autodetection and ID3-based matching..m4baudio classification.Why
m4bwas missing fromsource/org/openfilebot/MediaTypes.properties:MediaTypes.AUDIO_FILESis built from that file, so.m4bfiles were neither audio nor video. Two user-visible failures followed:.m4basMusic. In a folder namedaudiobooks, it fell through to series detection, treatedaudiobooksas a series name, and returned no TheTVDB results.ID3 Tagsdatasource filtered candidates throughAUDIO_FILES/VIDEO_FILES, so.m4bfiles were dropped before their tags were read..mp3audiobooks worked becausemp3is registered.MediaInfo already reads the
Performer,Title, andAlbumfields from.m4bfiles, so no new metadata provider is required for local tag-based renaming.Change
Plus a
MediaDetectionTest.m4bIsAudioregression test covering lowercase and uppercase extensions, the video filter, andAutoDetection.isMusic.Testing
ant -Djavafx.classifier=mac-aarch64 -lib cache/ivy.jar test-compileJUnitCore org.openfilebot.media.MediaDetectionTest→OK (7 tests)AutoDetectionnow groups these public-domain sample files asMusic:The Adventures of Sherlock Holmes.m4bPride and Prejudice.m4bID3Lookupresolves:Arthur Conan Doyle - The Adventures of Sherlock HolmesJane Austen - Pride and Prejudiceant -Djavafx.classifier=mac-aarch64 -lib cache/ivy.jar resolve mac;codesign --verify --deep --strictpasses.Fixes #9