Posts: 114
Joined: Nov 2012
Reputation:
3
ntropy
Senior Member
Posts: 114
2020-02-21, 02:28
(This post was last modified: 2020-02-21, 02:31 by ntropy.)
I wanted to move from a local database to a mariadb one, so I exported music to one file, quit Kodi, switched advanced settings to point to mariadb IP address, started Kodi, went to media music import and selected the export file for import, saw a flurry of names for a few seconds, and then the music library appeared empty. The music export lasted a few seconds and created an xml of 18107 lines (no artwork folder like the video export did). So why the empty music library? I'm doing a manual scan which is at 35% but I had hoped to avoid this by exporting/importing. Plus the new manual scan is re-writing my "Recently added albums" history. The video export/import seemed to work. Why not the music?
Posts: 114
Joined: Nov 2012
Reputation:
3
ntropy
Senior Member
Posts: 114
I just imported after scanning and don't see any music history emerging.
Posts: 20,237
Joined: Apr 2017
Reputation:
1,344
2020-02-21, 04:38
(This post was last modified: 2020-02-21, 04:39 by Karellen.)
Are you using v18.2 or later? Was the exported file created by v18.2 or later? Playback history was introduced in v18.2 and is not backwards compatible.
I just noticed that requirement is missing from the wiki page (sorry), but I will add that in now.
Posts: 20,237
Joined: Apr 2017
Reputation:
1,344
Can you upload that exported file to a file sharing site and provide the link. You can pm me the link if you want to keep it private.
I would like to check for the song data in the file.
Thanks.
Posts: 4,545
Joined: Jun 2015
Reputation:
269
Did you actually export the song playback history? You exported to a single file, but what items did you choose to export? If ratings and playcount and last played are not importing that I suspect that you simply didn't export them.
If that is the case and you still have the SQLite db file then you can temporarily point Kodi at that database, export the song playback history (only songs need exporting), point Kodi back at your Mariadb and import your newly created xml file.