Change path join for session metadata cache

This commit is contained in:
JonnyWong16 2024-04-07 15:58:28 -07:00
commit 6a9e532805
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -746,7 +746,7 @@ def on_created(rating_key, **kwargs):
def delete_metadata_cache(session_key): def delete_metadata_cache(session_key):
try: try:
os.remove(os.path.join(plexpy.CONFIG.CACHE_DIR, 'session_metadata/metadata-sessionKey-%s.json' % session_key)) os.remove(os.path.join(plexpy.CONFIG.CACHE_DIR, 'session_metadata', 'metadata-sessionKey-%s.json' % session_key))
except OSError as e: except OSError as e:
logger.error("Tautulli ActivityHandler :: Failed to remove metadata cache file (sessionKey %s): %s" logger.error("Tautulli ActivityHandler :: Failed to remove metadata cache file (sessionKey %s): %s"
% (session_key, e)) % (session_key, e))