mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Added logging for Direct play
This commit is contained in:
parent
4cbb648dc4
commit
073a83f592
1 changed files with 3 additions and 0 deletions
|
@ -106,11 +106,13 @@ class PlayUtils():
|
||||||
playhttp = self.addon.getSetting('playFromStream')
|
playhttp = self.addon.getSetting('playFromStream')
|
||||||
# User forcing to play via HTTP instead of SMB
|
# User forcing to play via HTTP instead of SMB
|
||||||
if playhttp == "true":
|
if playhttp == "true":
|
||||||
|
self.logMsg("Can't direct play: Play from HTTP is enabled.", 1)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
canDirectPlay = result[u'MediaSources'][0][u'SupportsDirectPlay']
|
canDirectPlay = result[u'MediaSources'][0][u'SupportsDirectPlay']
|
||||||
# Make sure it's supported by server
|
# Make sure it's supported by server
|
||||||
if not canDirectPlay:
|
if not canDirectPlay:
|
||||||
|
self.logMsg("Can't direct play: Server does not allow or support it.", 1)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
location = result[u'LocationType']
|
location = result[u'LocationType']
|
||||||
|
@ -120,6 +122,7 @@ class PlayUtils():
|
||||||
if self.fileExists(result):
|
if self.fileExists(result):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
self.logMsg("Can't direct play: Unable to locate the content.", 1)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue