y-brehm / waveAlign

Python repo for audio loudness matching in order to end the loudness war between DJs.
3 stars 0 forks source link

hotfix: metadata transfer only when metadata present #34

Closed maosi100 closed 1 month ago

maosi100 commented 2 months ago

Only metadata present (= not None) in the original file is transferred into the new file as opposed to before where an empty string was transfered.

maosi100 commented 1 month ago

Im my recent commit I have replaced music-tag by mutagen for metadata transfer. Music-tag is only a wrapper for mutagen which is not maintained anymore. Using mutagen directly makes more sense. Since mutagen returns an empty dictionary when no metadata is present I had to use isinstance() in reading and writing the metadata. Same functionality as the checks with None before.

Also I added an integration test as well as the corresponding .aiff file containing metadata.