mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Quick follow up
Including additional logging.
This commit is contained in:
parent
4a6c5c10ac
commit
9d866f9fc9
1 changed files with 3 additions and 1 deletions
|
@ -158,10 +158,12 @@ class PlayUtils():
|
||||||
location = result[u'LocationType']
|
location = result[u'LocationType']
|
||||||
# File can be FileSystem or Remote, not Virtual
|
# File can be FileSystem or Remote, not Virtual
|
||||||
if u'Virtual' in location:
|
if u'Virtual' in location:
|
||||||
|
self.logMsg("File location is virtual. Can't proceed.", 1)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Verify BitRate
|
# Verify BitRate
|
||||||
if not self.isNetworkQualitySufficient(result):
|
if not self.isNetworkQualitySufficient(result):
|
||||||
|
self.logMsg("The network speed is insufficient to playback the file.", 1)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -318,7 +320,7 @@ class PlayUtils():
|
||||||
|
|
||||||
def audioSubsPref(self, mediaSources):
|
def audioSubsPref(self, mediaSources):
|
||||||
|
|
||||||
addon = xbmcaddon.Addon(id=self.addonId)
|
addon = xbmcaddon.Addon()
|
||||||
|
|
||||||
defaultAudio = mediaSources[0][u'DefaultAudioStreamIndex']
|
defaultAudio = mediaSources[0][u'DefaultAudioStreamIndex']
|
||||||
playurlprefs = "&AudioStreamIndex=%s" % defaultAudio
|
playurlprefs = "&AudioStreamIndex=%s" % defaultAudio
|
||||||
|
|
Loading…
Reference in a new issue