From 7897fe7bac685a8238635c8ea60c925c2a940cca Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 10 Jan 2014 00:04:06 +0100 Subject: [PATCH] Fix typos --- mopidy/core/library.py | 4 ++-- mopidy/models.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mopidy/core/library.py b/mopidy/core/library.py index ac1aad14..0e25ec4f 100644 --- a/mopidy/core/library.py +++ b/mopidy/core/library.py @@ -42,13 +42,13 @@ class LibraryController(object): Returns a list of :class:`mopidy.models.Ref` objects for the directories and tracks at the given ``path``. - The :class:`~mopidy.models.Ref` objects representing tracks keeps the + The :class:`~mopidy.models.Ref` objects representing tracks keep the track's original URI. A matching pair of objects can look like this:: Track(uri='dummy:/foo.mp3', name='foo', artists=..., album=...) Ref.track(uri='dummy:/foo.mp3', name='foo') - The :class:`~mopidy.models.Ref` objects representing directories has + The :class:`~mopidy.models.Ref` objects representing directories have plain paths, not including any URI schema. For example, the dummy library's ``/bar`` directory is returned like this:: diff --git a/mopidy/models.py b/mopidy/models.py index 53083eb7..ed371f23 100644 --- a/mopidy/models.py +++ b/mopidy/models.py @@ -160,19 +160,19 @@ class Ref(ImmutableObject): #: "directory". Read-only. type = None - #: Constant used for comparision with the :attr:`type` field. + #: Constant used for comparison with the :attr:`type` field. ALBUM = 'album' - #: Constant used for comparision with the :attr:`type` field. + #: Constant used for comparison with the :attr:`type` field. ARTIST = 'artist' - #: Constant used for comparision with the :attr:`type` field. + #: Constant used for comparison with the :attr:`type` field. DIRECTORY = 'directory' - #: Constant used for comparision with the :attr:`type` field. + #: Constant used for comparison with the :attr:`type` field. PLAYLIST = 'playlist' - #: Constant used for comparision with the :attr:`type` field. + #: Constant used for comparison with the :attr:`type` field. TRACK = 'track' @classmethod