diff options
Diffstat (limited to 'xbmc/video/ContextMenus.cpp')
-rw-r--r-- | xbmc/video/ContextMenus.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/xbmc/video/ContextMenus.cpp b/xbmc/video/ContextMenus.cpp index a7a724e082..1ab69f504e 100644 --- a/xbmc/video/ContextMenus.cpp +++ b/xbmc/video/ContextMenus.cpp @@ -24,6 +24,7 @@ #include "utils/ExecString.h" #include "utils/StringUtils.h" #include "utils/URIUtils.h" +#include "video/VideoFileItemClassify.h" #include "video/VideoInfoTag.h" #include "video/VideoManagerTypes.h" #include "video/VideoUtils.h" @@ -35,6 +36,8 @@ #include <utility> +using namespace KODI::VIDEO; + namespace CONTEXTMENU { @@ -87,7 +90,7 @@ bool CVideoMarkWatched::IsVisible(const CFileItem& item) const if (item.m_bIsFolder) // Only allow video db content, video and recording folders to be updated recursively { if (item.HasVideoInfoTag()) - return item.IsVideoDb(); + return IsVideoDb(item); else if (item.GetProperty("IsVideoFolder").asBoolean()) return true; else @@ -116,7 +119,7 @@ bool CVideoMarkUnWatched::IsVisible(const CFileItem& item) const if (item.m_bIsFolder) // Only allow video db content, video and recording folders to be updated recursively { if (item.HasVideoInfoTag()) - return item.IsVideoDb(); + return IsVideoDb(item); else if (item.GetProperty("IsVideoFolder").asBoolean()) return true; else @@ -237,7 +240,7 @@ bool CVideoChooseVersion::IsVisible(const CFileItem& item) const return item.HasVideoVersions() && !CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool( CSettings::SETTING_VIDEOLIBRARY_SHOWVIDEOVERSIONSASFOLDER) && - !VIDEO::IsVideoAssetFile(item); + !IsVideoAssetFile(item); } bool CVideoChooseVersion::Execute(const std::shared_ptr<CFileItem>& item) const @@ -272,7 +275,7 @@ std::vector<std::string> GetPlayers(const CPlayerCoreFactory& playerCoreFactory, const CFileItem& item) { std::vector<std::string> players; - if (item.IsVideoDb()) + if (IsVideoDb(item)) { //! @todo CPlayerCoreFactory and classes called from there do not handle dyn path correctly. CFileItem item2{item}; @@ -351,7 +354,7 @@ void SetPathAndPlay(const std::shared_ptr<CFileItem>& item, PlayMode mode) else { const auto itemCopy{std::make_shared<CFileItem>(*item)}; - if (itemCopy->IsVideoDb()) + if (IsVideoDb(*itemCopy)) { if (!itemCopy->m_bIsFolder) { @@ -431,7 +434,7 @@ bool CVideoPlayUsing::IsVisible(const CFileItem& item) const if (item.HasVideoVersions() && !CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool( CSettings::SETTING_VIDEOLIBRARY_SHOWVIDEOVERSIONSASFOLDER) && - !VIDEO::IsVideoAssetFile(item)) + !IsVideoAssetFile(item)) return false; if (item.IsLiveTV()) @@ -453,7 +456,7 @@ bool CVideoPlayVersionUsing::IsVisible(const CFileItem& item) const return item.HasVideoVersions() && !CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool( CSettings::SETTING_VIDEOLIBRARY_SHOWVIDEOVERSIONSASFOLDER) && - !VIDEO::IsVideoAssetFile(item); + !IsVideoAssetFile(item); } bool CVideoPlayVersionUsing::Execute(const std::shared_ptr<CFileItem>& itemIn) const |