nwithan8 / tauticord

A Discord bot that displays live data from Tautulli
GNU General Public License v3.0
107 stars 22 forks source link

[HELP] - 2 libraries with the same name, how to select the new one ? #206

Closed NeZios closed 5 months ago

NeZios commented 5 months ago

This issue has not already been resolved

You have read the documentation

Installation Type

Docker on Unraid

Configuration Type

Configuration File

Type of Issue

Configuration (e.g settings not being applied)

Issue Details

Hi, I had a problem with my library Movies so I had to delete it and create a new one. I now have 2 libraries with the same name in Tautulli including one obsolete. I do not want to delete it to keep track on history. When I give tauticord my library name in the yaml file, Tauticord selects the wrong library. image

Here is the log :

image

So Tauticord selects the library "Films" with the section_id=8, whereas I need the new library "Films" with the section_id=10.

Thanks in advance for your help!

Steps to Reproduce

Requirements : having 2 libraries with the same name in Tautulli. In the YAML file, enter the name of the library.

Logs

07/04/2024
11:49:15
2024-04-07 11:49:15,183 - [INFO]: Updating library stats...
07/04/2024
11:49:15
INFO:Updating library stats...
07/04/2024
11:49:15
2024-04-07 11:49:15,184 - [INFO]: Collecting stats about library "Films"
07/04/2024
11:49:15
INFO:Collecting stats about library "Films"
07/04/2024
11:49:15
DEBUG:JSON returned by GET request: {'row_id': 1, 'server_id': 'XXXXXXXXXXXXXXXXXXXXXX', 'section_id': 8, 'section_name': 'Films', 'section_type': 'movie', 'library_thumb': '/:/resources/video.png', 'library_art': '/:/resources/movie-fanart.jpg', 'count': 5237, 'parent_count': None, 'child_count': None, 'is_active': 0, 'do_notify': 1, 'do_notify_created': 1, 'keep_history': 1, 'deleted_section': 0, 'last_accessed': None}
07/04/2024
11:49:15
2024-04-07 11:49:15,213 - [INFO]: Retrieving latest version information from GitHub
07/04/2024
11:49:15
INFO:Retrieving latest version information from GitHub
07/04/2024
11:49:15
2024-04-07 11:49:15,614 - [INFO]: Updated 🎬 Films: 5237 successfully
07/04/2024
11:49:15
INFO:Updated 🎬 Films: 5237 successfully

Supporting Information

No response

cyb3rgh05t commented 5 months ago

combine those "Films" libraries :)

https://github.com/cyb3rgh05t/tauticord/blob/dev/documentation/DOCUMENTATION.md#combined-libraries

NeZios commented 5 months ago

combine those "Films" libraries :)

https://github.com/cyb3rgh05t/tauticord/blob/dev/documentation/DOCUMENTATION.md#combined-libraries

Does not work, it add the 2 "Films" libraries with the same ID. Here is the logs :

image

Here is my YAML configuration :

image

Thanks for the help!

nwithan8 commented 5 months ago

This is going to require a feature change, working on it.