mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 21:56:13 +00:00
New transcode method for subs
Extract subtitles and append them to the player, rather than burning them (burning them would result in playback failure 80% of the time)
This commit is contained in:
parent
cf94305743
commit
f3c8ba7077
2 changed files with 23 additions and 6 deletions
|
@ -189,7 +189,7 @@ class PlaybackUtils():
|
|||
|
||||
# For transcoding only, ask for audio/subs pref
|
||||
if utils.window('emby_%s.playmethod' % playurl) == "Transcode":
|
||||
playurl = playutils.audioSubsPref(playurl)
|
||||
playurl = playutils.audioSubsPref(playurl, listitem)
|
||||
utils.window('emby_%s.playmethod' % playurl, value="Transcode")
|
||||
|
||||
listitem.setPath(playurl)
|
||||
|
@ -232,7 +232,7 @@ class PlaybackUtils():
|
|||
playmethod = utils.window('%s.playmethod' % embyitem)
|
||||
# Only for direct play and direct stream
|
||||
subtitles = self.externalSubs(playurl)
|
||||
if playmethod in ("DirectStream", "Transcode"):
|
||||
if playmethod != "Transcode":
|
||||
# Direct play automatically appends external
|
||||
listitem.setSubtitles(subtitles)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue