Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movie lookup error when using add_movie #176

Open
2 tasks done
maikell opened this issue Jul 8, 2024 · 0 comments
Open
2 tasks done

Movie lookup error when using add_movie #176

maikell opened this issue Jul 8, 2024 · 0 comments
Labels
type/bug Something isn't working

Comments

@maikell
Copy link

maikell commented Jul 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behaviour

add_movies function throws an unexpected error

in relation with bug report: #163

Problematic code

movies = radarr.add_movie(movie=lookup,
                           root_dir=root_dir,
                           quality_profile_id=quality_profiles[0]["id"],
                           monitored=False,
                           search_for_movie=False,
                           monitor="movieOnly",
                           minimum_availability="announced",
                           )

Solution

movies = radarr.add_movie(movie=lookup[0],
                           root_dir=root_dir,
                           quality_profile_id=quality_profiles[0]["id"],
                           monitored=False,
                           search_for_movie=False,
                           monitor="movieOnly",
                           minimum_availability="announced",
                           )

Steps To Reproduce

No response

Expected behaviour

Slice not needed to be defined

Pyarr Version

5.2.0

Python Version

3.11.4

Example Code

No response

Relevant log output

File "/home/maikel/Documents/python/.venv/lib/python3.11/site-packages/pyarr/radarr.py", line 111, in add_movie
    movie["rootFolderPath"] = root_dir
    ~~~~~^^^^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maikell maikell added the type/bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant