From 04524496a7b3f3b912ba8a238a571a4a7d720077 Mon Sep 17 00:00:00 2001
From: ace20022 <ace20022@ymail.com>
Date: Tue, 11 Sep 2018 19:26:10 +0200
Subject: [FileItem] Refine IsBluray() method.

---
 xbmc/FileItem.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp
index feaf27725f..66304500ef 100644
--- a/xbmc/FileItem.cpp
+++ b/xbmc/FileItem.cpp
@@ -1177,7 +1177,12 @@ bool CFileItem::IsMultiPath() const
 
 bool CFileItem::IsBluray() const
 {
-  return URIUtils::IsBluray(m_strPath);
+  if (URIUtils::IsBluray(m_strPath))
+    return true;
+  
+  CFileItem item = CFileItem(GetOpticalMediaPath(), false);
+  
+  return item.IsBDFile();
 }
 
 bool CFileItem::IsCDDA() const
-- 
cgit v1.2.3