Duplicate playlists after restore

Issue description:

After restoring a backup with playlists, I end up with duplicate playlists.

Logs:

Upload description: Duplicate playlists

Additional information:

 

 

Reproduction steps:

 

  1. Restore a backup that doesn’t have playlists (the process will fire sync and import playlists from the local device)
  2. Go to Playlists and you will see one new playlist imported. In my case, the playlist is called “Best R&B 70s”
  3. Create a new backup, include playlists
  4. Delete the local device provider to clear all data
  5. Restore the backup including media providers (local device) and playlists

RESULT
Go to Playlists and you will see two playlists with the same name and tracks (screenshot attached)

I suppose what happens is: the playlist is restored from the backup and then the sync process (that is fired automatically) creates another playlist from the local device with the same name.

EXPECTED RESULT
You should see only one playlist with the same name
 

Media provider:

Local device

Screenshots:

 

    

Hum ok so this is not a restore issue but an import after restore.