[BUG] Duplicate file and path entries in database

Hi !

I post this bug here because I don’t have the privilege to do a ticket.

I’m developing an add-on and I noticed a bug on the Android version.

When we start playing a video, its “path” (“path” table’s entry) and its “file” (“files” table’s entry) are added several times in the data base (with different ID). (In my case there are 4 duplications for each path and file).
It is annoying for the JSON-RPC request GetFileDetail, I get wrong data.

Here, some screens :
[Image: 1491433448-screenkodidb1.png]
[Image: 1491433448-screenkodidb2.png]

I tested this on LG G4 – Marshmallow 6.0 only with video files on a fresh installed version of Kodi (without any add-on).
There is no problem on Windows version.

If it is not a general bug I hope that you could help me ! Thanks Smile

Bye bye !