mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-08 16:13:18 +00:00
Add temporary setting to disable external subs
For direct stream
This commit is contained in:
parent
f89d5c96f6
commit
e97a3a616d
2 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import downloadutils
|
|||
import playutils as putils
|
||||
import playlist
|
||||
import read_embyserver as embyserver
|
||||
import shutil
|
||||
from utils import Logging, window, settings, language as lang
|
||||
|
||||
#################################################################################################
|
||||
|
|
@ -228,7 +229,7 @@ class PlaybackUtils():
|
|||
# Append external subtitles to stream
|
||||
playmethod = window('%s.playmethod' % embyitem)
|
||||
# Only for direct stream
|
||||
if playmethod in ("DirectStream"):
|
||||
if playmethod in ("DirectStream") and settings('enableExternalSubs') == "true":
|
||||
# Direct play automatically appends external
|
||||
subtitles = self.externalSubs(playurl)
|
||||
listitem.setSubtitles(subtitles)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue