From bc795fe4a00a9c9ac8e1f7f3cdfcb735d76d68e6 Mon Sep 17 00:00:00 2001 From: Dave Hayes Date: Tue, 5 Feb 2013 07:09:15 -0600 Subject: [PATCH] Adds support for Replay Gain tags on MP4 files * Stores Replay Gain info in MP4 files using the format '---:com.apple.iTunes:replaygain_*' which is used by FB2K --- beets/mediafile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beets/mediafile.py b/beets/mediafile.py index 491f61a3b..73c760c48 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -1104,25 +1104,25 @@ class MediaFile(object): # ReplayGain fields. rg_track_gain = FloatValueField(2, 'dB', mp3 = StorageStyle('TXXX', id3_desc=u'REPLAYGAIN_TRACK_GAIN'), - mp4 = None, + mp4 = StoragedStyle('---:com.apple.iTunes:replaygain_track_gain'), etc = StorageStyle(u'REPLAYGAIN_TRACK_GAIN'), asf = StorageStyle(u'replaygain_track_gain'), ) rg_album_gain = FloatValueField(2, 'dB', mp3 = StorageStyle('TXXX', id3_desc=u'REPLAYGAIN_ALBUM_GAIN'), - mp4 = None, + mp4 = StorageStyle('---:com.apple.iTunes:replay_gain_album_gain'), etc = StorageStyle(u'REPLAYGAIN_ALBUM_GAIN'), asf = StorageStyle(u'replaygain_album_gain'), ) rg_track_peak = FloatValueField(6, None, mp3 = StorageStyle('TXXX', id3_desc=u'REPLAYGAIN_TRACK_PEAK'), - mp4 = None, + mp4 = StorageStyle('---:com.apple.iTunes:replaygain_track_peak'), etc = StorageStyle(u'REPLAYGAIN_TRACK_PEAK'), asf = StorageStyle(u'replaygain_track_peak'), ) rg_album_peak = FloatValueField(6, None, mp3 = StorageStyle('TXXX', id3_desc=u'REPLAYGAIN_ALBUM_PEAK'), - mp4 = None, + mp4 = StorageStyle('---:com.apple.iTunes:replaygain_album_peak'), etc = StorageStyle(u'REPLAYGAIN_ALBUM_PEAK'), asf = StorageStyle(u'replaygain_album_peak'), )