Fix NameError when transcoding

This commit is contained in:
croneter 2019-10-05 12:44:40 +02:00
parent b0fbb3ac09
commit 2f0767d086

View file

@ -19,7 +19,7 @@ from . import playlist_func as PL
from . import playqueue as PQ from . import playqueue as PQ
from . import json_rpc as js from . import json_rpc as js
from . import transfer from . import transfer
from .playback_decision import set_playurl from .playback_decision import set_playurl, audio_subtitle_prefs
from . import variables as v from . import variables as v
from . import app from . import app
@ -477,7 +477,7 @@ def _conclude_playback(playqueue, pos):
listitem.setSubtitles(api.cache_external_subs()) listitem.setSubtitles(api.cache_external_subs())
elif item.playmethod in (v.PLAYBACK_METHOD_DIRECT_STREAM, elif item.playmethod in (v.PLAYBACK_METHOD_DIRECT_STREAM,
v.PLAYBACK_METHOD_TRANSCODE): v.PLAYBACK_METHOD_TRANSCODE):
playutils.audio_subtitle_prefs(listitem) audio_subtitle_prefs(api, listitem)
_set_resume(listitem, item, api) _set_resume(listitem, item, api)
transfer.send(listitem) transfer.send(listitem)
LOG.info('Done concluding playback') LOG.info('Done concluding playback')