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
Library Statistics Graph Tab #1472
base: nightly
Are you sure you want to change the base?
Library Statistics Graph Tab #1472
Conversation
The graphs are a good idea, but we really shouldn't be using the A new permanent table should be created to cache the libraries. |
Oh. Under what circumstances does the table get erased? As the table is quite good to analyse the library growth. An alternative would be to create a new permanent table for this and get the initial data from the Plex server itself. Which in the end could also just be done by making a permanent table based on |
…/herby2212/Tautulli into feature-library-statistics-graph
Or running the The A new table should be created and sourced directly from Plex. Or a table might not even be required if the data can be loaded live from Plex, but that will have to be tested for performance to see if it's viable. |
Thanks for the information. |
What is the change in database size before and after? How many rows in the table? |
16694 rows. Datasize before: 67152 KB after: 97764 KB = ~30 MB |
Notice: It can happen that some media items have a timestamp that is in the future or in a time period before the server existed. This issue comes from the way how Plex handels the
Taken from https://forums.plex.tv/t/date-added-wrong/302575/12. A way to solve this would be to set the UPDATE: Fixed in commit herby2212@2386cab. |
Description
Addition of a new graph tab called "Library Statistics" which features currently two new graphs.
The first one called "Daily addition by media type" shows the added movies, shows, seasons and episodes on a per day basis. The time range is set like for the other graphs.
The second one called "Addition count by media type" shows the total count of movies, shows, seasons and episodes added in the set time range split in two categories: Movies and TV which includes shows, seasons and episodes.
Update 01/08/2021: #1472 (comment)
Third graph added called "Addition count by source resolution" which shows the total count of movies, shows, seasons and episodes added in the set time range by the different resolutions your media have. (Currently supported: 4k, 1080p, 720p, 576p, 480p, SD)
Update 19/08/2021: #1472 (comment)
Fourth graph called "Library Growth" shows the library growth by the library stats on a per day basis. It is synced with the "Daily addition by media type" graph above so the influence of the additions in regards to the overall growth can be seen instantly.
This feature is work in progress and there are the following things planned before its finished:
When clicking on a day show the corresponding movies/shows/seasons/episodes (depending on which media type clicked) added on that day.- Moving to a future update.I decided to open this request now so improvements, ideas or changes required (that come up through a review for example) can be implemented while in development.
This feature is based on the ideas mentioned in issue #1403.
Screenshot
Library Statistics Graph Tab
General Tab that might get expanded with additional graphs related to library statistics.
Addition count by media type
TV category combines Shows, Seasons and Episodes count.
Daily addition by media type
Updated version with Episode count moved to a second axis.
Broader view of Movies, Shows and Seasons added over time. Episodes filtered out here for a better overview.
Type of Change
Checklist