From b3b41240a18362a231759c337dff847cca1fce26 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sun, 19 May 2013 23:47:53 +0200 Subject: [PATCH] core: Add last_modified to track model --- mopidy/models.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)