From 2f0767d086b2720a8496e1463e67a7713a99b75b Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 5 Oct 2019 12:44:40 +0200 Subject: [PATCH] Fix NameError when transcoding --- resources/lib/playback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/playback.py b/resources/lib/playback.py index 6d71b7d8..786d2735 100644 --- a/resources/lib/playback.py +++ b/resources/lib/playback.py @@ -19,7 +19,7 @@ from . import playlist_func as PL from . import playqueue as PQ from . import json_rpc as js 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 app @@ -477,7 +477,7 @@ def _conclude_playback(playqueue, pos): listitem.setSubtitles(api.cache_external_subs()) elif item.playmethod in (v.PLAYBACK_METHOD_DIRECT_STREAM, v.PLAYBACK_METHOD_TRANSCODE): - playutils.audio_subtitle_prefs(listitem) + audio_subtitle_prefs(api, listitem) _set_resume(listitem, item, api) transfer.send(listitem) LOG.info('Done concluding playback')