[39] Fixes #974 Album locations AttributeError

This commit is contained in:
meisnate12 2022-07-19 09:24:51 -04:00
parent 535fa3023f
commit 32782005d9
2 changed files with 7 additions and 2 deletions

View file

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

View file

@ -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])