Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions daemon/extension/QueueScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
static const char* QUEUE_EVENT_NAMES[] = {
"FILE_DOWNLOADED",
"URL_COMPLETED",
"NZB_DIRECTRENAMED",
"NZB_MARKED",
"NZB_ADDED",
"NZB_NAMED",
Expand Down
1 change: 1 addition & 0 deletions daemon/extension/QueueScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class QueueScriptCoordinator
{
qeFileDownloaded, // lowest priority
qeUrlCompleted,
qeNzbDirectRenamed,
qeNzbMarked,
qeNzbAdded,
qeNzbNamed,
Expand Down
2 changes: 2 additions & 0 deletions daemon/queue/DirectRenamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "Options.h"
#include "FileSystem.h"
#include "ParParser.h"
#include "QueueScript.h"

#ifndef DISABLE_PARCHECK
#include <par2/libpar2.h>
Expand Down Expand Up @@ -385,6 +386,7 @@ void DirectRenamer::RenameFiles(DownloadQueue* downloadQueue, NzbInfo* nzbInfo,
if (renamedCount > 0)
{
nzbInfo->PrintMessage(Message::mkInfo, "Successfully renamed %i file(s) for %s", renamedCount, nzbInfo->GetName());
g_QueueScriptCoordinator->EnqueueScript(nzbInfo, QueueScriptCoordinator::qeNzbDirectRenamed);
}
else
{
Expand Down
1 change: 1 addition & 0 deletions docs/extensions/QUEUE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ In the future they can be called on other events too.
The event type is passed with env. var NZBNA_EVENT and can have following values:
- **NZB_ADDED** - after adding of nzb-file to queue;
- **FILE_DOWNLOADED** - after a file included in nzb is downloaded;
- **NZB_DIRECTRENAMED** - after DirectRename (only triggered if files are renamed);
- **NZB_DOWNLOADED** - after all files in nzb are downloaded (before post-processing);
- **NZB_DELETED** - after nzb-file is deleted from queue, by duplicate check or manually by user;
- **URL_COMPLETED** - after an nzb-file queued with URL is fetched but could no be added for download.
Expand Down