Add Album.date attribute

This commit is contained in:
Stein Magnus Jodal 2012-10-30 09:56:26 +01:00
parent bbda85462d
commit d1a42d95f1
2 changed files with 8 additions and 0 deletions

View File

@ -67,6 +67,9 @@ backends:
it completed the calibration first, and then quit, which could take more than
15 seconds.
- Added :attr:`mopidy.models.Album.date` attribute. It has the same format as
the existing :attr:`mopidy.models.Track.date`.
**Bug fixes**
- :issue:`213`: Fix "streaming task paused, reason not-negotiated" errors

View File

@ -120,6 +120,8 @@ class Album(ImmutableObject):
:type artists: list of :class:`Artist`
:param num_tracks: number of tracks in album
:type num_tracks: integer
:param date: album release date (YYYY or YYYY-MM-DD)
:type date: string
:param musicbrainz_id: MusicBrainz ID
:type musicbrainz_id: string
"""
@ -136,6 +138,9 @@ class Album(ImmutableObject):
#: The number of tracks in the album. Read-only.
num_tracks = 0
#: The album release date. Read-only.
date = None
#: The MusicBrainz ID of the album. Read-only.
musicbrainz_id = None