mirror of
https://github.com/nzbget/nzbget.git
synced 2026-04-24 14:56:53 -04:00
fixed: by adding nzb-files with assigned category and empty option <CategoryX.DefScript> the global option <DefScript> should be used but it wasn't
This commit is contained in:
@@ -1008,7 +1008,7 @@ void PostScriptController::InitParamsForNewNZB(NZBInfo* pNZBInfo)
|
||||
if (pNZBInfo->GetCategory() && strlen(pNZBInfo->GetCategory()) > 0)
|
||||
{
|
||||
Options::Category* pCategory = g_pOptions->FindCategory(pNZBInfo->GetCategory());
|
||||
if (pCategory)
|
||||
if (pCategory && pCategory->GetDefScript() && strlen(pCategory->GetDefScript()) > 0)
|
||||
{
|
||||
szDefScript = pCategory->GetDefScript();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user