TV Show added twice by Plex API
AndLindemann opened this issue · 2 comments
I just connected my Plex via API and when I started a client, it nicely added the show I was just watching to Flox, so nice one there!
However, for some reason it added the same show twice. Now I have two pictures of Young Sheldon on my screen, waiting to be rated.
One would be enough... how do I get rid of the other one (without tinkering in the DB?) and why did I end up with two of them in the first place?
Ideally there should be a duplication check - maybe it happened because it came through the Plex API and we're missing a check there?
Thanks for using and testing Flox out :)
You can delete one of them in the subpage under the poster image (if you are logged in). But yeah, this shouldn't happened in the first place.
Could you still look in the DB and check if the two entries have the same tmbd_id
? Because the procedure is as follows:
First, the system checks whether the title already exists in the database. If not, a TMDb request is started and the first item from the request will be used. Using the tmdb_id of the first item, the system checks again whether an entry with this tmdb_id exists in the Flox DB. That should be enough i think.
This is the code: https://github.com/devfake/flox/blob/master/backend/app/Services/Api/Api.php#L47
Unfortunately I already deleted both (by adding them back to the watchlist and then removing them from there).
Can still not see any delete buttons on the subpages... will need to take another look :)
I will check back if it happens again.