Commits

Anonymous committed 643f5c3

Map a few more tags to custom/nonstandard attributes

* Adds TotalTracks, TotalDiscs, MusicBrainz/ASIN and
* Acoustid/Fingerpint

  • Participants
  • Parent commits f992563

Comments (0)

Files changed (1)

File beets/mediafile.py

         etc = [StorageStyle('TRACKTOTAL'),
                StorageStyle('TRACKC'),
                StorageStyle('TOTALTRACKS')],
-        asf = None,
+        asf = StorageStyle('TotalTracks'),
     )
     disc = MediaField(out_type=int,
         mp3 = StorageStyle('TPOS', packing=packing.SLASHED, pack_pos=0),
         etc = [StorageStyle('DISCTOTAL'),
                StorageStyle('DISCC'),
                StorageStyle('TOTALDISCS')],
-        asf = None,
+        asf = StorageStyle('TotalDiscs'),
     )
     lyrics = MediaField(
         mp3 = StorageStyle('USLT', list_elem=False, id3_desc=u''),
         mp3 = StorageStyle('TXXX', id3_desc=u'ASIN'),
         mp4 = StorageStyle("----:com.apple.iTunes:ASIN"),
         etc = StorageStyle('ASIN'),
-        asf = None,
+        asf = StorageStyle('MusicBrainz/ASIN'),
     )
     catalognum = MediaField(
         mp3 = StorageStyle('TXXX', id3_desc=u'CATALOGNUMBER'),
         mp4 = StorageStyle('----:com.apple.iTunes:Acoustid Fingerprint',
                            as_type=str),
         etc = StorageStyle('ACOUSTID_FINGERPRINT'),
-        asf = None,
+        asf = StorageStyle('Acoustid/Fingerprint'),
     )
     acoustid_id = MediaField(
         mp3 = StorageStyle('TXXX',