From 5ef7f6c4c2e209076c4ec374b66fcfd017f6ae49 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 19 Jan 2022 10:41:08 -0500 Subject: [PATCH] add Artists to assets --- modules/plex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/plex.py b/modules/plex.py index 47b40f12..e77ace46 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -4,6 +4,7 @@ from modules.library import Library from modules.util import Failed, ImageData from PIL import Image from plexapi import utils +from plexapi.audio import Artist from plexapi.exceptions import BadRequest, NotFound, Unauthorized from plexapi.collection import Collection from plexapi.playlist import Playlist @@ -827,7 +828,7 @@ class Plex(Library): def find_assets(self, item, name=None, upload=True, overlay=None, folders=None, create=None): if isinstance(item, Movie): name = os.path.basename(os.path.dirname(str(item.locations[0]))) - elif isinstance(item, Show): + elif isinstance(item, (Artist, Show)): name = os.path.basename(str(item.locations[0])) elif isinstance(item, Collection): name = name if name else item.title