Skip to content

Commit

Permalink
Change path join for session metadata cache
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Apr 7, 2024
1 parent 2258a88 commit 6a9e532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plexpy/activity_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def on_created(rating_key, **kwargs):

def delete_metadata_cache(session_key):
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:
logger.error("Tautulli ActivityHandler :: Failed to remove metadata cache file (sessionKey %s): %s"
% (session_key, e))

0 comments on commit 6a9e532

Please sign in to comment.