Merge lp:~jamesh/mediascanner2/bug-1436110 into lp:mediascanner2
Proposed by
James Henstridge
Status: | Merged |
---|---|
Approved by: | Michi Henning |
Approved revision: | 303 |
Merged at revision: | 299 |
Proposed branch: | lp:~jamesh/mediascanner2/bug-1436110 |
Merge into: | lp:mediascanner2 |
Diff against target: |
189 lines (+102/-6) 4 files modified
CMakeLists.txt (+1/-1) src/daemon/MetadataExtractor.cc (+3/-0) test/basic.cc (+9/-3) test/test_metadataextractor.cc (+89/-2) |
To merge this branch: | bzr merge lp:~jamesh/mediascanner2/bug-1436110 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michi Henning (community) | Approve | ||
Review via email: mp+260917@code.launchpad.net |
Commit message
Treat invalid dates in MP3s as missing metadata.
Description of the change
If an MP3 includes a year of "-1", or the date is otherwise unparsable, treat that metadata as missing.
I couldn't trigger the bug mentioned in the bug using vorbis files, so I've added tests using mp3 sample files. These tests should only run when the corresponding codec is available, so won't cover us in Jenkins (since the non-free codecs aren't available), but will catch problems when run locally.
I also took the opportunity to add a test for standard metadata extraction on an MP3 file.
To post a comment you must log in.
LGTM!