mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix external sub conflict
This commit is contained in:
parent
2023188e30
commit
6c9d6e8593
2 changed files with 4 additions and 2 deletions
|
@ -513,7 +513,7 @@ class PlayUtils(object):
|
||||||
LOG.info("[ subtitles/%s ] %s", index, url)
|
LOG.info("[ subtitles/%s ] %s", index, url)
|
||||||
|
|
||||||
if 'Language' in stream:
|
if 'Language' in stream:
|
||||||
filename = "Stream.%s.%s" % (stream['Language'], stream['Codec'])
|
filename = "%s.%s.%s" % (source['Id'], stream['Language'], stream['Codec'])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subs.append(self.download_external_subs(url, filename))
|
subs.append(self.download_external_subs(url, filename))
|
||||||
|
|
|
@ -426,7 +426,9 @@ class Player(xbmc.Player):
|
||||||
dirs, files = xbmcvfs.listdir(path)
|
dirs, files = xbmcvfs.listdir(path)
|
||||||
|
|
||||||
for file in files:
|
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 {}
|
result = item['Server'].jellyfin.get_item(item['Id']) or {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue