diff options
author | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-12-21 20:15:05 +0100 |
---|---|---|
committer | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-12-21 20:15:05 +0100 |
commit | 227d928d93ff88db3004bc7369bf4a0cbd51132c (patch) | |
tree | d36f4e387665a10e9f66b40f86dfbf71f97566c3 | |
parent | 4cd482dafd49ec671d5b46077dbef06eeb67ca3b (diff) |
fixed: fire the OnUpdate announce after fetching the artwork - fixes empty recently-added thumbs if the library is updating while XBMC is on the home screen
-rw-r--r-- | xbmc/video/VideoDatabase.cpp | 8 | ||||
-rw-r--r-- | xbmc/video/VideoInfoScanner.cpp | 5 |
2 files changed, 5 insertions, 8 deletions
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp index e73c89b98a..1569e7dfbe 100644 --- a/xbmc/video/VideoDatabase.cpp +++ b/xbmc/video/VideoDatabase.cpp @@ -1804,8 +1804,6 @@ int CVideoDatabase::SetDetailsForMovie(const CStdString& strFilenameAndPath, con m_pDS->exec(sql.c_str()); CommitTransaction(); - AnnounceUpdate("movie", idMovie); - return idMovie; } catch (...) @@ -1866,8 +1864,6 @@ int CVideoDatabase::SetDetailsForTvShow(const CStdString& strPath, const CVideoI m_pDS->exec(sql.c_str()); CommitTransaction(); - AnnounceUpdate("tvshow", idTvShow); - return idTvShow; } catch (...) @@ -1943,8 +1939,6 @@ int CVideoDatabase::SetDetailsForEpisode(const CStdString& strFilenameAndPath, c m_pDS->exec(sql.c_str()); CommitTransaction(); - AnnounceUpdate("episode", idEpisode); - return idEpisode; } catch (...) @@ -2017,8 +2011,6 @@ int CVideoDatabase::SetDetailsForMusicVideo(const CStdString& strFilenameAndPath m_pDS->exec(sql.c_str()); CommitTransaction(); - AnnounceUpdate("musicvideo", idMVideo); - return idMVideo; } catch (...) diff --git a/xbmc/video/VideoInfoScanner.cpp b/xbmc/video/VideoInfoScanner.cpp index 75b533bf89..c253eb5996 100644 --- a/xbmc/video/VideoInfoScanner.cpp +++ b/xbmc/video/VideoInfoScanner.cpp @@ -36,6 +36,7 @@ #include "dialogs/GUIDialogProgress.h" #include "dialogs/GUIDialogYesNo.h" #include "dialogs/GUIDialogOK.h" +#include "interfaces/AnnouncementManager.h" #include "settings/AdvancedSettings.h" #include "settings/GUISettings.h" #include "settings/Settings.h" @@ -1155,6 +1156,10 @@ namespace VIDEO FetchActorThumbs(movieDetails.m_cast, parentDir); if (bApplyToDir) ApplyThumbToFolder(parentDir, cachedThumb); + + CVariant data; + data["id"] = movieDetails.m_iDbId; + ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::VideoLibrary, "xbmc", "OnUpdate", data); } void CVideoInfoScanner::DownloadImage(const CStdString &url, const CStdString &destination, bool asThumb /*= true */, CGUIDialogProgress *progress /*= NULL */) |