added new option <NzbAddedProcess> to setup a script called after a nzb-file is added to queue

This commit is contained in:
Andrey Prygunkov
2012-11-16 20:50:56 +00:00
parent 2bb1162adf
commit 2fcfbc2e1a
6 changed files with 140 additions and 1 deletions

View File

@@ -270,6 +270,11 @@ void PrePostProcessor::NZBAdded(DownloadQueue* pDownloadQueue, NZBInfo* pNZBInfo
{
PausePars(pDownloadQueue, pNZBInfo);
}
if (strlen(g_pOptions->GetNZBAddedProcess()) > 0)
{
NZBAddedScriptController::StartScript(pDownloadQueue, pNZBInfo, g_pOptions->GetNZBAddedProcess());
}
}
void PrePostProcessor::NZBDownloaded(DownloadQueue* pDownloadQueue, NZBInfo* pNZBInfo)