Skip to content

[Bug]: AttributeError: 'Album' object has no attribute 'locations' #974

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

Closed
jaamarcelis opened this issue Jul 19, 2022 · 1 comment
Closed
Assignees
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet

Comments

@jaamarcelis
Copy link

Version Number

1.17.1

What branch are you on?

master

Describe the Bug

When updating an album (any property), an error is raised and the flow is terminated.
The properties itself are updated successfully, but any other albums / artists in de configfile are not processed any longer.

In this example I update the record_label to 'Bardo' for 9 albums of 2 artists.

Error:

Artist: Annemarie Barendswaard-Van Boven Details Update Not Needed |
| Asset Warning: Unable to find asset folder: 'Annemarie Barendswaard-Van Boven' |
| |
| Updating album Bardo! of Annemarie Barendswaard-Van Boven... |
| Detail: record_label updated to Bardo |
| Album: Bardo! Details Update Successful |
| Traceback (most recent call last): |
| File "/app/pmm/plex_meta_manager.py", line 479, in run_libraries |
| metadata.update_metadata() |
| File "/app/pmm/modules/meta.py", line 789, in update_metadata |
| self.update_metadata_item(i, title, mapping_name, meta, methods) |
| File "/app/pmm/modules/meta.py", line 1078, in update_metadata_item |
| self.library.item_images(album, album_dict, album_methods, asset_location=asset_location, |
| File "/app/pmm/modules/plex.py", line 927, in item_images |
| asset_poster, asset_background, item_dir, folder_name = self.find_item_assets(item, item_asset_directory=asset_location) |
| File "/app/pmm/modules/plex.py", line 1032, in find_item_assets |
| if not starting.locations: |
| File "/usr/lib/python3.9/site-packages/plexapi/base.py", line 468, in getattribute |
| value = super(PlexPartialObject, self).getattribute(attr) |
| AttributeError: 'Album' object has no attribute 'locations' |
| |
| 'Album' object has no attribute 'locations'

Relevant Collection/Overlay/Playlist Definition

metadata:
  "Annemarie Barendswaard-Van Boven":
    albums:
      "Bardo!":
        record_label: "Bardo"
      "Bardo zoekt verder":
        record_label: "Bardo"
      "Bardo wordt beroemd":
        record_label: "Bardo"
      "Bardo en de inbreker":
        record_label: "Bardo"
      "Bardo wordt ontvoerd":
        record_label: "Bardo"
      "Bardo vindt een schat":
        record_label: "Bardo"
      "Bardo redt Boris":
        record_label: "Bardo"
      "Bardo op vakantie":
        record_label: "Bardo"
  "Martha Heutink":
    albums:
      "Bardo volgt het spoor":
        record_label: "Bardo"

Logs

https://gist.github.com/jaamarcelis/86be8d30eef424d4215995cb04b9ca6f

@jaamarcelis jaamarcelis added bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Jul 19, 2022
@jaamarcelis jaamarcelis changed the title [Bug]: [Bug]: AttributeError: 'Album' object has no attribute 'locations' Jul 19, 2022
@jaamarcelis
Copy link
Author

I just downgraded to V1.16.5 and this version runs without issues. (in this case ;))

nwithan8 pushed a commit to nwithan8/Plex-Meta-Manager that referenced this issue Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet
Projects
None yet
Development

No branches or pull requests

2 participants