Skip to content

dont skip files that taglib doesnt like#7

Closed
metalheim wants to merge 5 commits into
masterfrom
import-metadataless-files
Closed

dont skip files that taglib doesnt like#7
metalheim wants to merge 5 commits into
masterfrom
import-metadataless-files

Conversation

@metalheim
Copy link
Copy Markdown
Owner

@metalheim metalheim commented May 14, 2026

Instead of importing nothing, import a file with empty metadata and audioproperties.
This is useful to import music formats that taglib cannot handle. For example retro music files (.mod, .xm, .midi) or music videos.

Description

Currently, file formats that taglib cannot handle are skipped (nothing is imported by scanner).
This PR introduces a new configuration option scanner.importonreaderror
When set to true, the scanner will import a file that is giving taglib errors anyways (with emtpy metadata).
Defaults to false to preserve original behaviour

Related Issues

navidrome#2894
navidrome#1929
navidrome#5196

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Other (please describe):

Checklist

Please review and check all that apply:

  • My code follows the project’s coding style
  • I have tested the changes locally
  • I have added or updated documentation as needed
  • I have added tests that prove my fix/feature works (or explain why not)
  • All existing and new tests pass

How to Test

TODO: provide test files

metalheim added 5 commits May 14, 2026 08:38
instead import with empty metadata/audioproperties
new configuration option scanner.importonreaderror. Defaults false to preserve original behaviour
@metalheim
Copy link
Copy Markdown
Owner Author

i was mistaken. This is not even required. Navidrome reads .xm retro music files just fine when being told that it is a valid audio format in resources/mime_types.yaml

.xm: audio/xm

@metalheim metalheim closed this May 14, 2026
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.

1 participant