Duplicate movies and tv episodes after upgrade to Kodi 17

Hi!

I just upgraded my Kodi 16.1 to 17.0 RC2.
First after upgrade I couldnt play any movies, it said the files where missing.
Restarted Kodi and it started to sync for new media.
After that almost every movie and tv episode seems duplicated.

I have made sure that the same media source isnt added twice.
The duplicates point to the same files,
Only movies and tv-series that are rar-archived are duplicated.
Only difference seems to be the caption of some encoded characters in filenameandpath/basepath
rar://Y%3a%5cvideo
vs
rar://Y%3A%5Cvideo

Its the one with capitol letters that is new
Strange is that dateadded is the same on both copies although votes and plot and some other metadata is different.

Se below for detailed example

Does anyone know why this happend?
And how I can get rid of the duplicates?
I,got a backup of the userdata folder
I’m thinking of removing all sources and start from scratch but then I guess all watchedstates are gone.

Any ideas?

Example from lib export xml file
Version 1
<path>Y:\video\film\hd\Nerve.2016.720p\</path>
<filenameandpath>rar://Y%3a%5cvideo%5cfilm%5chd%5cNerve.2016.720p.rar/Nerve.2016.720p.mkv</filenameandpath>
<basepath>rar://Y%3a%5cvideo%5cfilm%5chd%5cNerve.2016.720%5cnerve.2016.720p.rar/Nerve.2016.720p.mkv</basepath>

Version 2
<path>Y:\video\film\hd\Nerve.2016.720p\</path>
<filenameandpath>rar://Y%3A%5Cvideo%5Cfilm%5Chd%5CNerve.2016.720p%5Cnerve.2016.720p.rar/Nerve.2016.720p.mkv</filenameandpath>
<basepath>rar://Y%3A%5Cvideo%5Cfilm%5Chd%5CNerve.2016.720p%5Cnerve.2016.720p.rar/Nerve.2016.720p.mkv</basepath>

Running on Windows 10, all media from Synology NAS via SMB-share and mapped network drive.

One more thing, I think i before used a imdb plugin, so i did get ratings from Imdb, maybe it has to do with that.
The old copy says
<uniqueid type=”imdb” default=”true”>tt3531824</uniqueid>
The new one
<uniqueid type=”unknown” default=”true”>tt3531824</uniqueid>

Thanks..