Code Monkey home page Code Monkey logo

Comments (6)

Waterboy1602 avatar Waterboy1602 commented on June 2, 2024

I can't replicate this issue. Could you give me some more information about what you're exactly doing when this crash happens?

from addarr.

heisenberg2980 avatar heisenberg2980 commented on June 2, 2024

I am just following the normal process to search and download, which was working fine some time back. I am not sure when it started failing, but I know it was working in January 28th and I made some changes in the config file that I mentioned in the issue #152 (according to the timing it could be related)

These are the steps I am following:

  • send a message to the bot in telegram with the text /movie
  • after the results are returned click "Yes, add this"

Then the error happens.

This is the radarr part of my config.yaml, just in case it helps:

radarr:
  server:
    addr: 192.168.0.208
    port : 7878 # Default is 7878
    path: / # Default is / . If set, it must start and finish with / . Eg: /radarr/
    ssl: false #default false
  auth:
    apikey: ***REMOVED***
    username: ***REMOVED***
    password: ***REMOVED***
  search: true
  minimumAvailability: announced
  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:
    - Any
    - HD - 720p/1080p
    - HD-1080p
    - HD-720p
    - Minimum 720p - English
    - Minimum 1080p - Spanish
    - Minimum 720p - Spanish
    - SD
    - Ultra-HD 
  defaultTags: # If set must be existing tags
    - telegram
  adminRestrictions: false
  narrowRootFolderNames: true # If true, only the last folder name will be shown instead of full path
  addRequesterIdTag: true # Add telegram user id as tag on series

And this is ther addarr part of the docker-compose.yaml:

  addarr:
    container_name: addarr
    image: waterboy1602/addarr
    restart: unless-stopped
    network_mode: host
    volumes:
    - ./config/addarr/config.yaml:/app/config.yaml:ro
    - ./config/addarr/chatid.txt:/app/chatid.txt:rw
    - ./config/addarr/admin.txt:/app/admin.txt:ro
    - ./config/addarr/allowlist.txt:/app/allowlist.txt:ro

from addarr.

Waterboy1602 avatar Waterboy1602 commented on June 2, 2024
addarr  | 2024-03-06 11:04:16,768 - addarr.radarr - INFO - http://192.168.0.208:7878/api/v3/movie/lookup?apikey=***REMOVED***&term=/movie

I was looking at your logs and noticed that you're requesting a movie with the title /movie. So I guess this has something to do with a bug in the flow of searching a movie.

Could you tell me the exact order of the messages that you're sending in Addarr?

from addarr.

heisenberg2980 avatar heisenberg2980 commented on June 2, 2024

Ah sorry, that was just one of the test when I might have typed /movie twice (/movie is what I send to start the search) but the error happens with every movie.

This is the sequence of messages:

image

And the error happens when I click "Yes, add this"

08/03/2024
10:59:18
2024-03-08 10:59:18,065 - addarr.radarr - INFO - http://192.168.0.208:7878/api/v3/movie/lookup?apikey=***REMOVED***&term=the%20equalizer
08/03/2024
10:59:20
No error handlers are registered, logging exception.
08/03/2024
10:59:20
Traceback (most recent call last):
08/03/2024
10:59:20
  File "/usr/local/lib/python3.11/site-packages/telegram/ext/_application.py", line 1234, in process_update
08/03/2024
10:59:20
    await coroutine
08/03/2024
10:59:20
  File "/usr/local/lib/python3.11/site-packages/telegram/ext/_conversationhandler.py", line 857, in handle_update
08/03/2024
10:59:20
    new_state: object = await handler.handle_update(
08/03/2024
10:59:20
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
  File "/usr/local/lib/python3.11/site-packages/telegram/ext/_basehandler.py", line 157, in handle_update
08/03/2024
10:59:20
    return await self.callback(update, context)
08/03/2024
10:59:20
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
  File "/app/src/addarr.py", line 594, in pathSerieMovie
08/03/2024
10:59:20
    return await qualityProfileSerieMovie(update, context)
08/03/2024
10:59:20
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
  File "/app/src/addarr.py", line 646, in qualityProfileSerieMovie
08/03/2024
10:59:20
    return await selectSeasons(update, context)
08/03/2024
10:59:20
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
  File "/app/src/addarr.py", line 684, in selectSeasons
08/03/2024
10:59:20
    return await addSerieMovie(update, context)
08/03/2024
10:59:20
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
  File "/app/src/addarr.py", line 817, in addSerieMovie
08/03/2024
10:59:20
    service.createTag(str(update.effective_message.chat.id))
08/03/2024
10:59:20
  File "/app/src/radarr.py", line 147, in createTag
08/03/2024
10:59:20
    "id": max([t["id"] for t in getTags()])+1,
08/03/2024
10:59:20
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08/03/2024
10:59:20
ValueError: max() arg is an empty sequence

from addarr.

Waterboy1602 avatar Waterboy1602 commented on June 2, 2024

I think I've solved this issue with my latest commit. The new docker image should compile in some time. Could you check if it works?

It had to do with an empty list of tags returned by Radarr. I see you've added the tag "telegram" in your config, but you've probably not created this tag in Radarr itself. Addarr at the moment doesn't create a tag if it doesn't exist yet. So it's looking for the tag, but doesn't get one returned and it crashes.

I had already fixed this for Sonarr, but forgot for Radarr. Now it should be alright.

from addarr.

heisenberg2980 avatar heisenberg2980 commented on June 2, 2024

Thank you very much @Waterboy1602, after updating the container the issue is gone

from addarr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.