From 32782005d9220570e9018fb8cf3a53074f74221b Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 19 Jul 2022 09:24:51 -0400 Subject: [PATCH] [39] Fixes #974 Album locations AttributeError --- VERSION | 2 +- modules/plex.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 1dac885c..45f7112b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.1-develop38 +1.17.1-develop39 diff --git a/modules/plex.py b/modules/plex.py index 775e6eed..3ffaee9d 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1033,7 +1033,12 @@ class Plex(Library): if not item_asset_directory: if isinstance(item, (Movie, Artist, Album, Show, Episode, Season)): - starting = item.show() if isinstance(item, (Episode, Season)) else item + if isinstance(item, (Episode, Season)): + starting = item.show() + elif isinstance(item, (Album, Track)): + starting = item.artist() + else: + starting = item if not starting.locations: raise Failed(f"Asset Warning: No video filepath found fo {item.title}") path_test = str(starting.locations[0])