[39] Fixes #974 Album locations AttributeError

pull/970/head
meisnate12 2 years ago
parent 535fa3023f
commit 32782005d9

@ -1 +1 @@
1.17.1-develop38 1.17.1-develop39

@ -1033,7 +1033,12 @@ class Plex(Library):
if not item_asset_directory: if not item_asset_directory:
if isinstance(item, (Movie, Artist, Album, Show, Episode, Season)): 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: if not starting.locations:
raise Failed(f"Asset Warning: No video filepath found fo {item.title}") raise Failed(f"Asset Warning: No video filepath found fo {item.title}")
path_test = str(starting.locations[0]) path_test = str(starting.locations[0])

Loading…
Cancel
Save