fix: catch MutagenError on corrupt audio files#11
Conversation
Files with malformed metadata (e.g. MP4 with truncated chapter atoms) crash the scan. Catch MutagenError and skip unreadable files gracefully. Closes #10
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesAudio metadata resilience
🎯 1 (Trivial) | ⏱️ ~3 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #11 +/- ##
==========================================
- Coverage 86.24% 85.09% -1.16%
==========================================
Files 6 6
Lines 269 275 +6
==========================================
+ Hits 232 234 +2
- Misses 37 41 +4
🚀 New features to boost your workflow:
|
Summary
mutagen.File()calls in try/except forMutagenError, skipping files with corrupt or malformed metadata instead of crashingMP4MetadataErrorduring directory scanTest plan
Closes #10
Summary by CodeRabbit
Release Notes