Hellowlol / HTPC-Manager

A fully responsive interface to manage all your favorite software on your Htpc.
MIT License
344 stars 48 forks source link

Recent Movies Plex Dashboard Not Updating #595

Closed goku-son closed 5 years ago

goku-son commented 5 years ago

Reporting Issues:

To ensure that a I has enough information to work with please include all of the following information.

Use proper markdown syntax to structure your post (i.e. code/log in code blocks).

Make sure you provide the following information below:

6734237c2959f5979219510a4d9a206565e037b9

Windows-10-10.0.14393

Close your issue when it's solved! If you found the solution yourself please comment so that others benefit from it.

Link to log:

jeremysherriff commented 5 years ago

Recently Added is a list exposed via the Plex API, not calculated via the DateAdded data directly from the Plex database. I believe your question needs to be directed to the Plex forums.

goku-son commented 5 years ago

Thanks, I can certainly check on the plex forums. The strange thing is that Plex and Tautulli both show current items for recently added movies and shows. It is as if HTPC is out of sync for some reason.

goku-son commented 5 years ago

Is there a way I can remove the plex info and reconfig that part? I tried removing and readding to the dash but the issue persists. Does HTPC manager have a DB I can try blowing away in the event that data is cached there?

goku-son commented 5 years ago

Checked on Plex forums and the feedback provided was that it is not a Plex issue since recently added movies and tv shows reflect correctly there and in Tautulli. The recently added music appears to be updating correctly in HTPC but not the movies or tv shows. Any other suggestions that I can try? Thanks in advance.

goku-son commented 5 years ago

I tried blowing away the HTPC database and starting all over. I started with Plex first and noted the same issue recently added:

Music accurate Movies not accurate TV Shows not accurate

The thing that is confusing to me is that Plex itself and Tautulli both show accurate recently added movies and tv shows.

Not really sure where to try and look for the cause at this point. Everything else working just fine.

jeremysherriff commented 5 years ago

Your talking about the dashboard, right? With the title 'Latest Movies' and the 5 images that scroll around continuously in the carousel?

jeremysherriff commented 5 years ago

The dash code is here: https://github.com/Hellowlol/HTPC-Manager/blob/6734237c2959f5979219510a4d9a206565e037b9/interfaces/default/js/dash.js#L340-L342 You can see it is a web request that pulls data from the HTPC Plex module.

The GetRecentMovies function is here: https://github.com/Hellowlol/HTPC-Manager/blob/6734237c2959f5979219510a4d9a206565e037b9/modules/plex.py#L123-L133 Again you can see it is a web call, this time to the Plex instance itself.

None of this is cached, except by your browser maybe.

Note that the response to the GetRecentMovies module call is affected by your "Show watched" setting for the HTPC Plex settings. So if you've watched your recent movies and then it will show you the 5 most recent "old" movies.

goku-son commented 5 years ago

@jeremysherriff that is exactly what I am referring to thanks for that info. The only plex related dashboard settings I have are Show Plex recent movies/tv shows/music all set to yes. The strange thing is that the music shows up correctly. Do you happen to know if that is coming from a db table from plex? I guess that may be more of a question in the plex forums. Just a very bizarre issue. Thanks again for the help.

jeremysherriff commented 5 years ago

Yes it's coming from somewhere in Plex, but no idea where. It's a call to the public API, you can craft the same call yourself using curl.

goku-son commented 5 years ago

I noticed when looking at the code before the GetRecentMovies function it calls cherrypy. I am seeing these errors in the log:

2018-09-19 15:50:53 cherrypy.error ERROR [19/Sep/2018:15:50:53] ENGINE Set handler for console events. 2018-09-19 11:17:15 cherrypy.error.60820224 ERROR [19/Sep/2018:11:17:15] HTTP 2018-09-18 10:18:18 cherrypy.error ERROR [18/Sep/2018:10:18:18] ENGINE Set handler for console events. 2018-09-17 23:58:48 cherrypy.error.65473280 ERROR [17/Sep/2018:23:58:48] HTTP 2018-09-17 23:58:43 cherrypy.error.65473280 ERROR [17/Sep/2018:23:58:43] HTTP 2018-09-17 23:58:35 cherrypy.error.65473280 ERROR [17/Sep/2018:23:58:35] HTTP 2018-09-17 23:58:30 cherrypy.error.65473280 ERROR [17/Sep/2018:23:58:30] HTTP 2018-09-17 23:58:28 cherrypy.error.65473280 ERROR [17/Sep/2018:23:58:28] HTTP 2018-09-16 17:33:06 cherrypy.error ERROR [16/Sep/2018:17:33:06] ENGINE Set handler for console events. 2018-09-16 15:59:17 cherrypy.error.61569736 ERROR [16/Sep/2018:15:59:17] HTTP

Could this be related to the issue I am seeing?

goku-son commented 5 years ago

No responses over on the Plex forums. Being that Tautulli pulls the correct recent movies and TV from Plex, is there a way to have HTPC pull that info from Tautulli and use it for its plex dashboard?

jeremysherriff commented 5 years ago

Are you SURE that this isn't related to the watched/unwatched filtering? The setting on the Plex module page affects the content of the carousel on the dashboard. This one here: image

goku-son commented 5 years ago

That was exactly the problem!!! Totally overlooked that staring me right in the face!! Thanks for helping me with this issue @jeremysherriff!!

jeremysherriff commented 5 years ago

glad we got there in the end :)

On Mon, 24 Sep 2018 at 02:09, goku-son notifications@github.com wrote:

That was exactly the problem!!! Totally overlooked that staring me right in the face!! Thanks for helping me with this issue @jeremysherriff https://github.com/jeremysherriff!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hellowlol/HTPC-Manager/issues/595#issuecomment-423819322, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCDZb3q3GRfS3pS-uq0PsMrsXTkQ4JTks5ud5YdgaJpZM4WikkY .