From 073a83f592b368e968b13e23d328e45acfc1b5a4 Mon Sep 17 00:00:00 2001
From: angelblue05 <tamara.angel05@gmail.com>
Date: Tue, 2 Jun 2015 16:26:23 -0500
Subject: [PATCH] Added logging for Direct play

---
 resources/lib/PlayUtils.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py
index fe2e84ac..7f7cc224 100644
--- a/resources/lib/PlayUtils.py
+++ b/resources/lib/PlayUtils.py
@@ -106,11 +106,13 @@ class PlayUtils():
         playhttp = self.addon.getSetting('playFromStream')
         # User forcing to play via HTTP instead of SMB
         if playhttp == "true":
+            self.logMsg("Can't direct play: Play from HTTP is enabled.", 1)
             return False
 
         canDirectPlay = result[u'MediaSources'][0][u'SupportsDirectPlay']
         # Make sure it's supported by server
         if not canDirectPlay:
+            self.logMsg("Can't direct play: Server does not allow or support it.", 1)
             return False
 
         location = result[u'LocationType']
@@ -120,6 +122,7 @@ class PlayUtils():
             if self.fileExists(result):
                 return True
             else:
+                self.logMsg("Can't direct play: Unable to locate the content.", 1)
                 return False