Waterboy1602/Addarr

Path on config.yaml doubt

facutopa opened this issue · 2 comments

Hi!

First of all thanks for the job and for the new release!
One question, what mean the field "path" on the config.yaml file?
imagen
Because I'm getting this error when I tried to add some tvshow or movie:

2022-03-14 17:53:58,862 - addarr - DEBUG - User entered a title friends
2022-03-14 17:53:58,863 - addarr - DEBUG - user_data[choice] is Series, skipping step of selecting movie/series
No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/telegram/ext/dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "/usr/local/lib/python3.10/site-packages/telegram/ext/conversationhandler.py", line 626, in handle_update
new_state = handler.handle_update(update, dispatcher, check_result, context)
File "/usr/local/lib/python3.10/site-packages/telegram/ext/handler.py", line 198, in handle_update
return self.callback(update, context)
File "/app/src/addarr.py", line 534, in pathSerieMovie
paths = [p for p in paths if p["path"] not in excluded_root_folders]
File "/app/src/addarr.py", line 534, in
paths = [p for p in paths if p["path"] not in excluded_root_folders]

On telegram show:
imagen
But after push "Yes, add this", the message on the log appear and I don't get anything more.
I ask about the path because maybe this is the problem that generate the fail.

Thanks and regards!

The path in config.yaml is there to define a custom URL path, by example: 192.168.100.8:8989/sonarr

It doesn't look like your error has something to do with the path, because you're getting results of Sonarr. It means the connection is correct.
If I look at the logs, it looks like there is something wrong with the excludedRootFolders setting in config.yaml. Are you sure you've added them correctly? It should look like this:

excludedRootFolders: # If set must not have a trailing slash Eg: /mnt/Media
    - # First excluded folder, add others with a "-" on a new line (same indentation)

Yep, you're right,
I completed with the new data of config.yaml but without the "-", example of my old config.yaml:

excludedRootFolders:
excludedQualityProfiles:
defaultTags:
adminRestrictions: false

The correct now:

excludedRootFolders: # If set must not have a trailing slash Eg: /mnt/Media
- # First excluded folder, add others with a "-" on a new line (same indentation)
excludedQualityProfiles:
-
defaultTags: # If set must be existing tags
- telegram
adminRestrictions: false

Dude, I love you, finally work the bot! Thanks a lot!!!
imagen
Regards