Fix external sub conflict

This commit is contained in:
Matt 2021-07-08 19:19:18 -04:00
parent 2023188e30
commit 6c9d6e8593
2 changed files with 4 additions and 2 deletions

View file

@ -426,7 +426,9 @@ class Player(xbmc.Player):
dirs, files = xbmcvfs.listdir(path)
for file in files:
xbmcvfs.delete(os.path.join(path, file))
# Only delete the cached files for the previous play session
if item['Id'] in file:
xbmcvfs.delete(os.path.join(path, file))
result = item['Server'].jellyfin.get_item(item['Id']) or {}