Add album and track totals to artist library from Tautulli #127
This commit is contained in:
parent
5b7fddddaf
commit
c42a0b58e4
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ class TautulliAPI(object):
|
|||
if library['section_type'] == 'show':
|
||||
data['fields']['seasons'] = int(library['parent_count'])
|
||||
data['fields']['episodes'] = int(library['child_count'])
|
||||
|
||||
elif library['section_type'] == 'artist':
|
||||
data['fields']['albums'] = int(library['parent_count'])
|
||||
data['fields']['tracks'] = int(library['child_count'])
|
||||
influx_payload.append(data)
|
||||
|
||||
self.dbmanager.write_points(influx_payload)
|
||||
|
|
Loading…
Reference in a new issue