From b68ef6df84cc897223be22f962b8698c4821a366 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 13 Jun 2015 17:54:48 -0500 Subject: [PATCH] Disable audio-subs pref Temporarily to re-work. --- resources/lib/Player.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/Player.py b/resources/lib/Player.py index 1d62c673..e7e2e0b8 100644 --- a/resources/lib/Player.py +++ b/resources/lib/Player.py @@ -243,7 +243,7 @@ class Player( xbmc.Player ): # Set audio and subtitles automatically # Following Emby user preference. - if self.audioPref == "default" and self.subsPref == "default": + '''if self.audioPref == "default" and self.subsPref == "default": self.logMsg("No Emby user preferences found.", 2) # Emby user preferences are not set. pass @@ -287,7 +287,7 @@ class Player( xbmc.Player ): xbmcplayer.setSubtitleStream(index) else: # Use default subs - if defaultsubs == "ssa": + if defaultsubs == "ssa" or defaultsubs == "srt": # For some reason, Kodi sees SSA as '' self.logMsg("Door 1.2", 1) index = subs.index('') @@ -311,7 +311,7 @@ class Player( xbmc.Player ): xbmcplayer.setSubtitleStream(index) else: # Use default subs - if defaultsubs == "ssa": + if defaultsubs == "ssa" or defaultsubs == "srt": # For some reason, Kodi sees SSA as '' self.logMsg("Door 2.2", 1) index = subs.index('') @@ -340,7 +340,7 @@ class Player( xbmc.Player ): xbmcplayer.showSubtitles(False) else: # Use default subs - if defaultsubs == "ssa": + if defaultsubs == "ssa" or defaultsubs == "srt": # For some reason, Kodi sees SSA as '' self.logMsg("Door 3.4", 1) index = subs.index('') @@ -352,7 +352,7 @@ class Player( xbmc.Player ): else: # Nothing matches, let the user decide. self.logMsg("Door 3.6", 1) - xbmcplayer.showSubtitles(False) + xbmcplayer.showSubtitles(False)''' # we may need to wait until the info is available item_id = WINDOW.getProperty(currentFile + "item_id")