Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

json-rpc: add new notification OnScanStarted for libraries

  • Loading branch information...
commit 0a370b3cd8f9ca6fb76c1d65e2ebe1bc18163cc1 1 parent 26c1ace
@alcoheca authored
View
18 xbmc/interfaces/json-rpc/ServiceDescription.h
@@ -2881,6 +2881,15 @@ namespace JSONRPC
"],"
"\"returns\": null"
"}",
+ "\"AudioLibrary.OnScanStarted\": {"
+ "\"type\": \"notification\","
+ "\"description\": \"An audio library scan has started.\","
+ "\"params\": ["
+ "{ \"name\": \"sender\", \"type\": \"string\", \"required\": true },"
+ "{ \"name\": \"data\", \"type\": \"null\", \"required\": true }"
+ "],"
+ "\"returns\": null"
+ "}",
"\"AudioLibrary.OnScanFinished\": {"
"\"type\": \"notification\","
"\"description\": \"Scanning the audio library has been finished.\","
@@ -2919,6 +2928,15 @@ namespace JSONRPC
"],"
"\"returns\": null"
"}",
+ "\"VideoLibrary.OnScanStarted\": {"
+ "\"type\": \"notification\","
+ "\"description\": \"A video library scan has started.\","
+ "\"params\": ["
+ "{ \"name\": \"sender\", \"type\": \"string\", \"required\": true },"
+ "{ \"name\": \"data\", \"type\": \"null\", \"required\": true }"
+ "],"
+ "\"returns\": null"
+ "}",
"\"VideoLibrary.OnScanFinished\": {"
"\"type\": \"notification\","
"\"description\": \"Scanning the video library has been finished.\","
View
18 xbmc/interfaces/json-rpc/notifications.json
@@ -82,6 +82,15 @@
],
"returns": null
},
+ "AudioLibrary.OnScanStarted": {
+ "type": "notification",
+ "description": "An audio library scan has started.",
+ "params": [
+ { "name": "sender", "type": "string", "required": true },
+ { "name": "data", "type": "null", "required": true }
+ ],
+ "returns": null
+ },
"AudioLibrary.OnScanFinished": {
"type": "notification",
"description": "Scanning the audio library has been finished.",
@@ -120,6 +129,15 @@
],
"returns": null
},
+ "VideoLibrary.OnScanStarted": {
+ "type": "notification",
+ "description": "A video library scan has started.",
+ "params": [
+ { "name": "sender", "type": "string", "required": true },
+ { "name": "data", "type": "null", "required": true }
+ ],
+ "returns": null
+ },
"VideoLibrary.OnScanFinished": {
"type": "notification",
"description": "Scanning the video library has been finished.",
View
1  xbmc/music/infoscanner/MusicInfoScanner.cpp
@@ -73,6 +73,7 @@ CMusicInfoScanner::~CMusicInfoScanner()
void CMusicInfoScanner::Process()
{
+ ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::AudioLibrary, "xbmc", "OnScanStarted");
try
{
unsigned int tick = XbmcThreads::SystemClockMillis();
View
1  xbmc/video/VideoInfoScanner.cpp
@@ -84,6 +84,7 @@ namespace VIDEO
m_bCanInterrupt = true;
CLog::Log(LOGNOTICE, "VideoInfoScanner: Starting scan ..");
+ ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::VideoLibrary, "xbmc", "OnScanStarted");
// Reset progress vars
m_currentItem = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.