From 556653a4bae9a75b7068789e0b48bc499e7477b1 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 12 Jul 2021 16:35:35 -0400 Subject: [PATCH] cast to string --- modules/plex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/plex.py b/modules/plex.py index 290d9b16..dd28ce76 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -771,10 +771,10 @@ class Plex: def update_item_from_assets(self, item, overlay=None): logger.debug(item.locations) logger.debug(item.locations[0]) - logger.debug(os.path.dirname(item.locations[0])) - logger.debug(os.path.basename(os.path.dirname(item.locations[0]))) + logger.debug(os.path.dirname(str(item.locations[0]))) + logger.debug(os.path.basename(os.path.dirname(str(item.locations[0])))) - name = os.path.basename(os.path.dirname(item.locations[0]) if self.is_movie else item.locations[0]) + name = os.path.basename(os.path.dirname(str(item.locations[0])) if self.is_movie else str(item.locations[0])) logger.debug(name) found_folder = False uploaded = False