# Song rating via sticker database

**URL:** <https://discourse.indi.software/t/song-rating-via-sticker-database/77>\
**Category:** Feature Request\
**Created:** [February 3, 2021, 12:51pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77 "2021-02-03T12:51:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunschc](https://discourse.indi.software/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@dunschc](https://discourse.indi.software/u/dunschc)\
**Post date:** [February 3, 2021, 12:51pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/1 "2021-02-03T12:51:32Z")

</div>

mpd has a support for maintaining extra meta tags for songs in a separate database called the sticker database, see [User’s Manual — Music Player Daemon 0.22.4 documentation](https://www.musicpd.org/doc/html/user.html#the-sticker-database)

Would be great if you could add this nice feature in MAFA too.

---

<div class="post-metadata">

**Author:** ![Alex\_B](https://discourse.indi.software/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@Alex\_B](https://discourse.indi.software/u/Alex_B)\
**Post date:** [February 3, 2021, 2:33pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/2 "2021-02-03T14:33:49Z")

</div>

Thanks for the suggestion.

Favorites in MAFA can be regarded as items having the highest rating (5/5 in the common terms of ratings).

Stickers in MPD are currently limited only to songs (tracks) in the MPD db. Extra metadata can’t be attached to Albums or Artists.

That’s why the favourites feature in MAFA is implemented locally in the client, and not using stickers.

There is also no MPD approved standard for sticker semantics that different clients can share, so each client has its own stickers defined with different meanings.

Can you please describe a bit more what would you like the proposed song rating feature to be like, and how would it differ from the current Favorites feature?

---

<div class="post-metadata">

**Author:** ![dunschc](https://discourse.indi.software/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@dunschc](https://discourse.indi.software/u/dunschc)\
**Post date:** [February 3, 2021, 6:14pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/3 "2021-02-03T18:14:07Z")

</div>

They way MPDroid shows ratings seems good:

 ![MPDroid](https://discourse.indi.software/uploads/default/original/1X/528bbb8c2b5f761935834d68cf7245bce953016c.jpeg)

---

<div class="post-metadata">

**Author:** ![dunschc](https://discourse.indi.software/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@dunschc](https://discourse.indi.software/u/dunschc)\
**Post date:** [February 3, 2021, 6:14pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/4 "2021-02-03T18:14:40Z")

</div>

The best results come with cantata (OK, it is a desktop app):  
 ![Cantata](https://discourse.indi.software/uploads/default/original/1X/dfc4de31b806f97eaa0ae3fd240793f96906cbd2.png)

---

<div class="post-metadata">

**Author:** ![Alex\_B](https://discourse.indi.software/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@Alex\_B](https://discourse.indi.software/u/Alex_B)\
**Post date:** [February 4, 2021, 8:23am UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/5 "2021-02-04T08:23:34Z")

</div>

Thanks,  
I’ll add it to the suggested features in the to-do list.

---

<div class="post-metadata">

**Author:** ![dunschc](https://discourse.indi.software/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@dunschc](https://discourse.indi.software/u/dunschc)\
**Post date:** [February 6, 2021, 5:34am UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/6 "2021-02-06T05:34:11Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![dunschc](https://discourse.indi.software/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@dunschc](https://discourse.indi.software/u/dunschc)\
**Post date:** [November 30, 2021, 4:31pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/7 "2021-11-30T16:31:35Z")

</div>

Hi Alex,

some Info’s about stickers database:  
[https://mpd.readthedocs.io/en/stable/user.html#the-sticker-database](https://mpd.readthedocs.io/en/stable/user.html#the-sticker-database)

Add this line to “/etc/mpd.conf”:  
**sticker\_file "/mpd.stickers"**

The **mpd.stickers** file is a normal SQLite3 file with only one Table called “sticker”:  
 ![mpd_stickers](https://discourse.indi.software/uploads/default/original/1X/133a0728f11963638ac88ad85095a271996de0db.png)

**Value** of 10=5 Stars, 9=4,5 Stars, 8=4 Stars,…

I don’t know if mpd protocol will give “mpd.stickers” infos directly or if you have to make a SQL command to get the ratings. But MPDroid is OpenSource ([GitHub - abarisain/dmix: A modern MPD Client for Android.](https://github.com/abarisain/dmix)) and you can refer how they have implemented the Ratings.

---

<div class="post-metadata">

**Author:** ![Alex\_B](https://discourse.indi.software/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@Alex\_B](https://discourse.indi.software/u/Alex_B)\
**Post date:** [December 1, 2021, 12:50pm UTC](https://discourse.indi.software/t/song-rating-via-sticker-database/77/8 "2021-12-01T12:50:56Z")

</div>

Hi, thank. I’m aware of the sticker db and protocol. It’s just very limited and requires relatively a lot of work on the client side to implement for albums and other tags except for individual songs.  
There are [open issues for MPD](https://github.com/MusicPlayerDaemon/MPD/issues?q=is%3Aissue+is%3Aopen+%22sticker+database%22) to improve sticker support.  
For know this feature request is in the [to-do list](https://mafa.indi.software/todo/) but with low priority.
