Don't cache subtitles if direct playing

This commit is contained in:
croneter 2018-02-23 14:59:11 +01:00
parent 11ac4fbe46
commit edff54bb7e

View file

@ -291,9 +291,9 @@ def _conclude_playback(playqueue, pos):
else:
playurl = item.file
listitem.setPath(try_encode(playurl))
if item.playmethod in ('DirectStream', 'DirectPlay'):
if item.playmethod == 'DirectStream':
listitem.setSubtitles(api.cache_external_subs())
else:
elif item.playmethod == 'Transcode':
playutils.audio_subtitle_prefs(listitem)
if state.RESUME_PLAYBACK is True:
state.RESUME_PLAYBACK = False