mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1727] Music import fails with bad ID3 metadata #949
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#949
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @volcs0 on GitHub (Dec 18, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1727
Describe the bug
When the music importer hits a file with missing/wrong/some other metadata, it crashes.
To reproduce
Steps to reproduce the behavior:
run: php artisan koel:sync
against my music library
When it hits a file with corrupt metadata, the import crashes.
When I re-write the metadata using MusicBrainz Picard, the import proceeds normally (until the next bad track).
A clear and concise description of what you expected to happen.
Expect the import to continue without stopping.
If there is a flag to have it continue, even when it encounters a problem, I don't know what it is.
Screenshots
Screenshot attached.
Environment
@phanan commented on GitHub (Dec 23, 2023):
Hey, sorry this happened to you. As you have correctly identified, this happens with weird corrupted files where even getId3 crashes (it normally gracefully handles exceptions). I thought about wrapping every single file scan in a try/catch block, but this would come with some performance cost (especially for huge libraries), so I'm still on the fence about it.
For artist images: You need Spotify integration enabled and configured.
@h4dr05 commented on GitHub (Dec 24, 2023):
Faced the same problem today. Any idea how to find out on which file it crashes, exactly?
@volcs0 commented on GitHub (Dec 24, 2023):
Do the import from the command line with verbose logging.
php artisan koel:sync -vv
Then you should see which track(s) are causing the problem.
For each track/album that was causing the issue, it was easy to see why (usually a weird character).
I ended up doing a lot of renaming and using MusicBrainz Picard to re-write ID3 tags.
I had to do this >50 times - each time taking longer for the import to fail.
But after about 2 days, I was done, and now the library works.
Hope this helps.
@phanan commented on GitHub (Dec 25, 2023):
What @volcs0 suggested (thanks!) I'm aware that this is not the best, however, so I have implemented a sync log functionality in
1518196af0and will tag once I have the time :) Sorry for the inconvenience.