Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TV Show added twice by Plex API #143

Closed
AndLindemann opened this issue Feb 3, 2020 · 2 comments
Closed

TV Show added twice by Plex API #143

AndLindemann opened this issue Feb 3, 2020 · 2 comments

Comments

@AndLindemann
Copy link

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?

@devfake
Copy link
Owner

devfake commented Feb 3, 2020

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

@AndLindemann
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants