Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

plex_library_section_size_count depth limited and albums/tracks ignored #5

@AndreiGavriliu

Description

@AndreiGavriliu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions