diff options
author | montellese <montellese@xbmc.org> | 2012-12-06 19:27:45 +0100 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-12-06 19:28:30 +0100 |
commit | 8c2223920d093bd3aadeec3172830acc6f071a42 (patch) | |
tree | 7d92234d839fb988bab61ebaa6ab17f98a7cd350 | |
parent | 8cd02887839fa1db12a676216fe6af7878ac008a (diff) |
jsonrpc: don't loose streamdetails after calling VideoLibrary.SetFooDetails
-rw-r--r-- | xbmc/interfaces/json-rpc/VideoLibrary.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xbmc/interfaces/json-rpc/VideoLibrary.cpp b/xbmc/interfaces/json-rpc/VideoLibrary.cpp index ca3e375662..a1d0e4f000 100644 --- a/xbmc/interfaces/json-rpc/VideoLibrary.cpp +++ b/xbmc/interfaces/json-rpc/VideoLibrary.cpp @@ -495,6 +495,10 @@ JSONRPC_STATUS CVideoLibrary::SetMovieDetails(const CStdString &method, ITranspo if (!videodatabase.GetMovieInfo("", infos, id) || infos.m_iDbId <= 0) return InvalidParams; + // get stream details + videodatabase.GetStreamDetails(infos); + + // get artwork std::map<std::string, std::string> artwork; videodatabase.GetArtForItem(infos.m_iDbId, infos.m_type, artwork); @@ -534,6 +538,7 @@ JSONRPC_STATUS CVideoLibrary::SetTVShowDetails(const CStdString &method, ITransp if (!videodatabase.GetTvShowInfo("", infos, id) || infos.m_iDbId <= 0) return InvalidParams; + // get artwork std::map<std::string, std::string> artwork; videodatabase.GetArtForItem(infos.m_iDbId, infos.m_type, artwork); @@ -587,6 +592,10 @@ JSONRPC_STATUS CVideoLibrary::SetEpisodeDetails(const CStdString &method, ITrans return InvalidParams; } + // get stream details + videodatabase.GetStreamDetails(infos); + + // get artwork std::map<std::string, std::string> artwork; videodatabase.GetArtForItem(infos.m_iDbId, infos.m_type, artwork); @@ -626,6 +635,10 @@ JSONRPC_STATUS CVideoLibrary::SetMusicVideoDetails(const CStdString &method, ITr return InvalidParams; } + // get stream details + videodatabase.GetStreamDetails(infos); + + // get artwork std::map<std::string, std::string> artwork; videodatabase.GetArtForItem(infos.m_iDbId, infos.m_type, artwork); |