void NZBGet::ProcessStandalone() { const char* category = m_commandLineParser->GetAddCategory() ? m_commandLineParser->GetAddCategory() : ""; NzbFile nzbFile(m_commandLineParser->GetArgFilename(), category); if (!nzbFile.Parse()) { printf("Parsing NZB-document %s failed\n\n", m_commandLineParser->GetArgFilename() ? m_commandLineParser->GetArgFilename() : "N/A"); return; } std::unique_ptr<NzbInfo> nzbInfo = nzbFile.DetachNzbInfo(); m_scanner->InitPPParameters(category, nzbInfo->GetParameters(), false); m_queueCoordinator->AddNzbFileToQueue(std::move(nzbInfo), nullptr, false); }