mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 19:12:40 +01:00
Use flexible attribute for track_alt
No need for a built-in field for a simple string-type optional field like this.
This commit is contained in:
parent
5250ba8020
commit
703f47ae97
4 changed files with 2 additions and 3 deletions
|
|
@ -423,7 +423,6 @@ class Item(LibModel):
|
|||
'month': types.PaddedInt(2),
|
||||
'day': types.PaddedInt(2),
|
||||
'track': types.PaddedInt(2),
|
||||
'track_alt': types.STRING,
|
||||
'tracktotal': types.PaddedInt(2),
|
||||
'disc': types.PaddedInt(2),
|
||||
'disctotal': types.PaddedInt(2),
|
||||
|
|
|
|||
|
|
@ -197,7 +197,6 @@ Ordinary metadata:
|
|||
* original_year, original_month, original_day: The release date of the original
|
||||
version of the album.
|
||||
* track
|
||||
* track_alt
|
||||
* tracktotal
|
||||
* disc
|
||||
* disctotal
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ class EditDuringImporterTest(TerminalImportSessionSetup, unittest.TestCase,
|
|||
ImportHelper, TestHelper, EditMixin):
|
||||
"""TODO
|
||||
"""
|
||||
IGNORED = ['added', 'album_id', 'id', 'mtime', 'path', 'track_alt']
|
||||
IGNORED = ['added', 'album_id', 'id', 'mtime', 'path']
|
||||
|
||||
def setUp(self):
|
||||
self.setup_beets()
|
||||
|
|
|
|||
|
|
@ -189,6 +189,7 @@ class MBAlbumInfoTest(_common.TestCase):
|
|||
'position': '2',
|
||||
'track-list': second_track_list,
|
||||
})
|
||||
|
||||
d = mb.album_info(release)
|
||||
self.assertEqual(d.mediums, 2)
|
||||
t = d.tracks
|
||||
|
|
|
|||
Loading…
Reference in a new issue