Skip to content

Commit

Permalink
added: announce after video library export
Browse files Browse the repository at this point in the history
  • Loading branch information
notspiff committed Apr 10, 2015
1 parent df8f577 commit eeb5556
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions xbmc/video/VideoDatabase.cpp
Expand Up @@ -8836,6 +8836,17 @@ void CVideoDatabase::ExportToXML(const std::string &path, bool singleFiles /* =
}
xmlDoc.SaveFile(xmlFile);
}
if (singleFiles)
ANNOUNCEMENT::CAnnouncementManager::Get().Announce(ANNOUNCEMENT::VideoLibrary, "xbmc", "OnExport");
else
{
CVariant data;
data["root"] = exportRoot;
data["xml"] = xmlFile;
if (iFailCount > 0)
data["failcount"] = iFailCount;
ANNOUNCEMENT::CAnnouncementManager::Get().Announce(ANNOUNCEMENT::VideoLibrary, "xbmc", "OnExport", data);
}
}
catch (...)
{
Expand Down

0 comments on commit eeb5556

Please sign in to comment.