From b7c71b84d5968333495c3997304fad53ceb96179 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Thu, 12 Feb 2015 23:51:20 +0100 Subject: [PATCH] core: Update get_images documenatation --- mopidy/core/library.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mopidy/core/library.py b/mopidy/core/library.py index bdff2ccd..b3832d5f 100644 --- a/mopidy/core/library.py +++ b/mopidy/core/library.py @@ -75,8 +75,15 @@ class LibraryController(object): def get_images(self, uris): """Lookup the images for the given URIs - :param list uris: list of uris to find images for - :rtype: dict mapping uris to :class:`mopidy.models.Image` instances + Backends can use this to return image URIs for any URI they know about + be it tracks, albums, playlists... The lookup result is a dictionary + mapping the provided URIs to lists of images. + + Unknown URIs or URIs the corresponding backend couldn't find anything + for will simply return an empty list for that URI. + + :param list uris: list of URIsto find images for + :rtype: {uri: [:class:`mopidy.models.Image`]} """ futures = [ backend.library.get_images(backend_uris)