diff --git a/mopidy/models.py b/mopidy/models.py index d138b490..b5ec6a5f 100644 --- a/mopidy/models.py +++ b/mopidy/models.py @@ -231,6 +231,8 @@ class Track(ImmutableObject): :type bitrate: integer :param musicbrainz_id: MusicBrainz ID :type musicbrainz_id: string + :param last_modified: integer representing last modifcation time + :type last_modified: integer """ #: The track URI. Read-only. @@ -263,6 +265,10 @@ class Track(ImmutableObject): #: The MusicBrainz ID of the track. Read-only. musicbrainz_id = None + #: Integer representing when the track was last modified, exact meaning + #: depends on source of track. + last_modified = 0 + def __init__(self, *args, **kwargs): self.__dict__['artists'] = frozenset(kwargs.pop('artists', [])) super(Track, self).__init__(*args, **kwargs)