Skip to content

Commit

Permalink
jsonrpc: don't loose streamdetails after calling VideoLibrary.SetFooD…
Browse files Browse the repository at this point in the history
…etails
  • Loading branch information
Montellese committed Dec 6, 2012
1 parent 8cd0288 commit 8c22239
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions xbmc/interfaces/json-rpc/VideoLibrary.cpp
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 8c22239

Please sign in to comment.