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

AttributeError: 'AsObj' object has no attribute 'title' on radarr_tools.py, line 18 #151

Closed
vaparr opened this issue Dec 18, 2020 · 3 comments · Fixed by #156
Closed

AttributeError: 'AsObj' object has no attribute 'title' on radarr_tools.py, line 18 #151

vaparr opened this issue Dec 18, 2020 · 3 comments · Fixed by #156

Comments

@vaparr
Copy link

vaparr commented Dec 18, 2020

Getting this error.. Removing the ".format(m)" on radarr_tools.py, line 20, fixes the issue for me.

Traceback (most recent call last):
File "/tmp/Plex-Auto-Collections/app/radarr_tools.py", line 18, in add_to_radarr
tmdb_title = tmovie.title
AttributeError: 'AsObj' object has no attribute 'title'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./plex_auto_collections.py", line 1035, in
update_from_config(config_path, plex, False)
File "./plex_auto_collections.py", line 685, in update_from_config
add_to_radarr(config_path, missing)
File "/tmp/Plex-Auto-Collections/app/radarr_tools.py", line 20, in add_to_radarr
print("| --- Unable to fetch necessary TMDb information for IMDb ID {}, skipping".format(m))
NameError: name 'm' is not defined

@xFlawless11x
Copy link

xFlawless11x commented Dec 18, 2020

There was a merge issue on the update to 2.8.0 last night/this morning, he's fixing it now so I would retest after that.

@mza921
Copy link
Owner

mza921 commented Dec 18, 2020

This doesn't look like it came from the bad merge. The fix will be similar to your workaround. It's just informational, so shouldn't have any effect on radarr functionality.

@xFlawless11x
Copy link

Seems to be affecting myself as well --

Version: 2.8.1

Was attempting to utilize the new functionality of adding "add_to_radarr" under only a specific collection as I don't want it applied across all. Here's the configs:

collections:
Top Antidepressant Movies:
imdb_list: https://www.imdb.com/list/ls082047526/
sync_mode: sync
collection_mode: show_items
add_to_radarr: true

radarr:
url: {IP Removed}
token: {Token Removed}
quality_profile_id: 4
root_folder_path: /mnt/user/PlexMedia/movies
search_movie: false
add_to_radarr: false
version: v3

Got this error when running it:

| Adding missing movies to Radarr
Traceback (most recent call last):
File "/mnt/user/appdata/Plex-Auto-Collections/app/radarr_tools.py", line 18, in add_to_radarr
tmdb_title = tmovie.title
AttributeError: 'AsObj' object has no attribute 'title'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/user/appdata/Plex-Auto-Collections/app/plex_auto_collections.py", line 1026, in
update_from_config(config_path, plex, True, args.no_meta, args.no_images)
File "/mnt/user/appdata/Plex-Auto-Collections/app/plex_auto_collections.py", line 685, in update_from_config
add_to_radarr(config_path, missing)
File "/mnt/user/appdata/Plex-Auto-Collections/app/radarr_tools.py", line 20, in add_to_radarr
print("| --- Unable to fetch necessary TMDb information for IMDb ID {}, skipping".format(m))
NameError: name 'm' is not defined

@mza921 mza921 linked a pull request Dec 26, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants