Kodi Community Forum

Full Version: How to export my user ratings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a library of my favorite singles (proper folder structure). I have added my own ratings for all couple hundred songs. I do NOT use SQL, nor do I wish to.

How can I export my user ratings? I am currently using Kodi on Android devices (Sony Bravia and Nvidia Shield).

Thanks in advance..
Unfortunately Kodi does not (yet) have a native facility to export song user ratings. There may be an addon that can do it, I really don't know but perhaps someone else will be able to help.
You can do this with the TheAudioDB sync add-on(search google), then re-import on other Kodi Devices. You will have to sign up as a user on TADB for it to work.

Once you have synced, you could then look at the user page on the website to see all your ratings.

http://www.theaudiodb.com/ratings.php?u=zag

You could even use the API to list a single JSON data file and save that as a text file to your computer:

http://www.theaudiodb.com/api/v1/json/1/...p?user=Zag
Thank you
(2018-07-26, 20:01)DaveBlake Wrote: [ -> ]Unfortunately Kodi does not (yet) have a native facility to export song user ratings. There may be an addon that can do it, I really don't know but perhaps someone else will be able to help.

Facility to import/export dynamic song data including rating is added by PR 15864 (PR)
(2019-04-05, 20:34)DaveBlake Wrote: [ -> ]
(2018-07-26, 20:01)DaveBlake Wrote: [ -> ]Unfortunately Kodi does not (yet) have a native facility to export song user ratings. There may be an addon that can do it, I really don't know but perhaps someone else will be able to help.

Facility to import/export dynamic song data including rating is added by PR 15864 (PR) 
Installed and tested the posted test build on Win 7.

Added a music source and scanned/scraped.  Played and rated some tracks.  Went to library music export.  Verified export songs only available in single file export.  Did a single file export of songs, and single file export of songs, albums, and album artists.  By inspection verified that all exported songs had userrating or playcount > 0 (unable to test "rating").

Imported each file into the library, no change (as expected).

Dumped the source and added a new source.  verified all songs un-userrated and playcount 0.  Imported each file.   Verified userrating and playcount updated from import file.

I couldn't really test the threading aspect, but it didn't cause a problem that I could see.  Note that the song files are identical in both sources; I didn't test if a song file with same title/album etc would update (If I understand ImportSongHistory the temp song table is used to compare album MBID and title and if an album match is found look for album, track number and track MBID with fallback to album, track number, and tract title to determine that a <song> in the import file should update a database song.)

So everything seems to work as expected.

scott s.
.