# Images for Genres Sub-Folder

**URL:** <https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918>\
**Category:** Help and support\
**Created:** [March 27, 2024, 2:04pm UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918 "2024-03-27T14:04:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![schrma](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/schrma/32/2488_2.png) [@schrma](https://discourse.mopidy.com/u/schrma)\
**Post date:** [March 27, 2024, 2:04pm UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918/1 "2024-03-27T14:04:24Z")

</div>

Is it possible to add an image for the subfolers in Genres? E.g an image of a guitar.jpg for Rock or a violin.jpg for classic.

---

<div class="post-metadata">

**Author:** ![Matthias\_Meulien](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/matthias_meulien/32/2260_2.png) [@Matthias\_Meulien](https://discourse.mopidy.com/u/Matthias_Meulien)\
**Post date:** [March 27, 2024, 11:22pm UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918/2 "2024-03-27T23:22:51Z")

</div>

[According to the documentation](https://docs.mopidy.com/stable/api/core/#mopidy.core.LibraryController.get_images), getting images is supported only for tracks, albums and playlists (UPDATE: I am wrong, the documentation says any URI is supported!).

In Mopidy-Local sources, one can see that only albums and tracks are handled:

> <https://github.com/orontee/mopidy-local/blob/master/mopidy_local/library.py#L92>

But the documentation seems to be wrong, and some extensions return images for other URIs. See for example Mopidy-Bandcamp where images are returned for any URI: [mopidy-bandcamp/mopidy\_bandcamp/library.py at master · impliedchaos/mopidy-bandcamp · GitHub](https://github.com/impliedchaos/mopidy-bandcamp/blob/master/mopidy_bandcamp/library.py#L147)

([https://dummyimage.com](https://dummyimage.com) is used to generate colored “text” icons).

> Is it possible to add an image for the subfolers in Genres?

You’ll have to implement that feature!

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [March 28, 2024, 1:07am UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918/3 "2024-03-28T01:07:04Z")

</div>

The documentation is accurate, that’s not quite what it says. Those are examples, not an exhaustive list.

> Backends can use this to return image URIs for any URI they know about be it tracks, albums, playlists.

We can change it to be clearer by removing the examples.

---

<div class="post-metadata">

**Author:** ![Matthias\_Meulien](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/matthias_meulien/32/2260_2.png) [@Matthias\_Meulien](https://discourse.mopidy.com/u/Matthias_Meulien)\
**Post date:** [March 28, 2024, 6:00am UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918/4 "2024-03-28T06:00:24Z")

</div>

Oh yes, sorry… My interpretation was wrong sorry.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [March 28, 2024, 8:16am UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918/5 "2024-03-28T08:16:57Z")

</div>

I totally agree with everything else though.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [March 31, 2024, 8:17am UTC](https://discourse.mopidy.com/t/images-for-genres-sub-folder/5918/6 "2024-03-31T08:17:11Z")

</div>

Closed on March 31, 2024, 8:17am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
