petio-team / petio

Petio Request, Discover, Review
https://petio.tv
MIT License
251 stars 28 forks source link

After deleting media from Radarr/Sonarr, Pelio still thinks the media is available in Plex #455

Closed mkanet closed 3 years ago

mkanet commented 3 years ago

Describe the bug After deleting media from Radarr/Sonarr, Pelio still thinks the media is there

Version: 0.5.1 Alpha OS: Windows 10

To Reproduce Steps to reproduce the behavior:

  1. Make a request to download a movie or TV show
  2. Wait for media to show up in Plex/Petio after it's downloaded successfully
  3. Delete media in Radarr/Sonarr (completely removing items)
  4. Pelio still shows these items are available in plex

Expected behavior I expect the media to not show in Pelio after media has been deleted (and not showing in Plex anymore)

Screenshots Possible related errors in console: Untitled picture

PS: Lastly, I keep getting the message below with a dark background when clicking on the TV and/or Movie section.. the spinning circle stays there a long time every time.

Building your personalised Movie Discovery…
angrycuban13 commented 3 years ago

Petio doesn't track media availability from either of the *arrs. It uses Plex to determine media availability.

mkanet commented 3 years ago

Okay thanks. So, how can I fix this issue?

Note: Ombi doesn't have this issue which is currently also connected to the same Plex/*arrs.

angrycuban13 commented 3 years ago

Petio isn't Ombi, what Ombi does or how it works has no relevance to Petio. Petio connects directly to Plex and sets media availability based on what Plex reports. I'd check your Plex server to be sure the media isn't still in Plex's recycling bin or you might need to do a library refresh.

mkanet commented 3 years ago

Hi, items are not in Plex trash; as Plex is set to "Empty trash automatically after every scan".

I manually emptied Plex trash anyway and refreshed respective Plex libraries. There is no trace of the medias anywhere on my server other than Petio.

Maybe there's a problem with the MongoDB database? Maybe, Petio is having trouble communicating with Plex? If either is true, how would I resolve this issue?

My apologies if this isn't right place for Petio support. Maybe I should ask for help on the Plex discord channel instead?

AshDyson commented 3 years ago

So if a media item is removed from Plex it does not get retroactively removed from Petio (currently). Petio only does additive scanning at the moment meaning it will add to it's "known media" pool as things become available. I'm going to close this issue as it's a duplicate of the feature request #378 which will be applied as soon as we have the time to impliment.

mkanet commented 3 years ago

@AshDyson Thank you for confirming this issue! I'll follow https://github.com/petio-team/petio/issues/378 progress.