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

plex_library_section_size_count depth limited and albums/tracks ignored #5

Open
AndreiGavriliu opened this issue Jan 16, 2020 · 1 comment

Comments

@AndreiGavriliu
Copy link

Hi,

I just implemented this plex_exporter in my OKD environment and wanted to see how many artists/albums/tracks I have in my library. I noticed it only counts the artist type, ignoring the album and track

Also, when checking how many Photos I have, it only counts the first level of photo albums. My folder structure is as follows:

2018/2018-04-12/Some Event/image0005.jpg
2018/2018-08-04/Some other Event/image0004.jpg
2018/2018-08-04/Some other Event/image0008.jpg
2019/2019-09-12/Someone's Birthday/image0085.jpg

This structure only reports 2 photos - one for each year.

Is it possible to change the depth of the photo albums and also add albums and tracks counts?

If it helps, here is a trace output from my plex_exporter pod:

time="2020-01-16T18:40:40Z"
level=trace 
msg="{
  cfa719f1b4dbde85825191ee039df677b2509deb Plex 1.18.4.2171-ac2afe5f8 Linux 0 
  [
    {Concerts movie 74} 
    {Documentaries movie 31} 
    {Kids movie 138}
    {Movies movie 283} 
    {Music artist 258} 
    {Photos photo 11} 
    {TV Shows show 12}
  ]
}" 
context=collector

Thanks,
Andrei

@arnarg
Copy link
Owner

arnarg commented Jan 20, 2020

Yeah I noticed the same thing with TV shows when I was writing this exporter. You get a TV shows library with a number of TV shows but you have to dig in deeper if you want to get the number of episodes.

For simplicity I just grabbed the Libraries and showed their size, as I'm most interested in movies anyway. There has to be created a specific logic for each Library type.

To be perfectly honest, I don't need this feature so I'm not sure when I can find the time to fix this. But I accept contributions.

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

No branches or pull requests

2 participants