Downloads:

24,348

Downloads of v 0.7.20:

1,098

Last Update:

26 May 2015

Package Maintainer(s):

Software Author(s):

  • The SABnzbd-team

Tags:

usenet binary newsreader downloader

SABnzbd+

This is not the latest version of SABnzbd+ available.

  • 1
  • 2
  • 3

0.7.20 | Updated: 26 May 2015

Downloads:

24,348

Downloads of v 0.7.20:

1,098

Maintainer(s):

Software Author(s):

  • The SABnzbd-team

  • 1
  • 2
  • 3
SABnzbd+ 0.7.20

This is not the latest version of SABnzbd+ available.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install SABnzbd+, run the following command from the command line or from PowerShell:

>

To upgrade SABnzbd+, run the following command from the command line or from PowerShell:

>

To uninstall SABnzbd+, run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade sabnzbd -y --source="'INTERNAL REPO URL'" --version="'0.7.20'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade sabnzbd -y --source="'INTERNAL REPO URL'" --version="'0.7.20'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install sabnzbd
  win_chocolatey:
    name: sabnzbd
    version: '0.7.20'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'sabnzbd' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.7.20'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller sabnzbd
{
    Name     = "sabnzbd"
    Version  = "0.7.20"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'sabnzbd':
  ensure   => '0.7.20',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator ferventcoder on 25 Dec 2015.

Description

SABnzbd is an open-source cross-platform binary newsreader written in Python. It simplifies the process of downloading from Usenet dramatically, thanks to its web-based user interface and advanced built-in post-processing options that automatically verify, repair, extract and clean up posts downloaded from Usenet.

It's totally free, incredibly easy to use, and works practically everywhere.

SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can. All you have to do is add an .nzb. SABnzbd takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction.

This installer properly sets up a system service to keep SABnzbd always running in the background and also properly sets up firewall exclusions.

Documentation

Community


tools\chocolateyInstall.ps1
$packageName = 'sabnzbd'
$installerType = 'exe'
$silentArgs = '/S'
$url = 'http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-win32-setup.exe/download'
$checksum = '1c8462cd89c86bc095c9694b9df5916b00f5faf8'
$checksumType = 'sha1'
$validExitCodes = @(0)
$upgrade = $false

function Get-CurrentDirectory {
  $thisName = $MyInvocation.MyCommand.Name
  [IO.Path]::GetDirectoryName((Get-Content function:$thisName).File)
}

. (Join-Path (Get-CurrentDirectory) 'WaitForSuccess.ps1')

# stop helper services if they're running
Get-Service -Include SABnzbd, SABHelper |
  Stop-Service -Force

$programFilesPath = "${Env:\ProgramFiles(x86)}", $Env:ProgramFiles |
  Where-Object { Test-Path $_ } |
  Select -First 1

$helper = 'SABnzbd-helper.exe'
$service = 'SABnzbd-service.exe'

$installPath = Join-Path $programFilesPath 'sabnzbd'
# already installed, so must call remove on existing exes to be safe
if (Test-Path $installPath)
{
  $upgrade = $true
  $helper, $service |
    % {
      $path = Join-Path $installPath $_
      if (Test-Path $path) { &$path remove }
    }
}

# uses NSIS installer
Install-ChocolateyPackage -PackageName "$packageName" `
                          -FileType "$installerType" `
                          -SilentArgs "$silentArgs" `
                          -Url "$url" `
                          -ValidExitCodes $validExitCodes `
                          -Checksum "$checksum" `
                          -ChecksumType "$checksumType"

# need to turn on / install services
@("${Env:\ProgramFiles(x86)}", '^%ProgramFiles(x86)^%'),
@($Env:ProgramFiles, '^%ProgramFiles^%') |
  % {
    $path = Join-Path $_[0] 'sabnzbd'
    if (Test-Path $path)
    {
      Write-Host "Found SABnzbd installed at $path"
      $installPath = $path
      $dosPath = $_[1]
    }
  }

# register file association
# http://stackoverflow.com/questions/323426/windows-command-line-non-evaluation-of-environment-variable
Write-Host "Registering SABnzbd NZB file associations"
cmd /c assoc .nzb=NZBFile
$sabPath = "^`"$dosPath\sabnzbd\SABnzbd.exe^`""
cmd /c ftype NZBFile=$sabPath `"%1`"

Push-Location $installPath

$dataDirectory = Join-Path $Env:LOCALAPPDATA 'sabnzbd'
Write-Host "Registering SABnzbd service with data at $dataDirectory"
&".\$service" -f $dataDirectory install | Out-Null
&".\$helper" install | Out-Null

Pop-Location

# Set-Service cmdlet doesn't have delayed start :(
sc.exe config SABnzbd start= delayed-auto

# configure windows firewall: http://wiki.sabnzbd.org/firewalls-and-virus-scanners
Write-Host "Registering SABnzbd firewall exclusions"
netsh advfirewall firewall delete rule name="SABnzbd"
netsh advfirewall firewall add rule name="SABnzbd" dir=in protocol=tcp localport=8080 action=allow program="$installPath\SABnzbd-service.exe"
netsh advfirewall firewall add rule name="SABnzbd" dir=in protocol=tcp localport=9090 action=allow program="$installPath\SABnzbd-service.exe"

Write-Host "Starting SABnzbd service"
Start-Service SABnzbd

#wait up to 5 seconds for service to fire up
$msg = 'SABnzbd service to start, to launch browser config'
if (WaitForSuccess { (Get-Service SABnzbd).Status -eq 'Running' } 10 $msg)
{
  # no need to use the web UI to configure an upgrade
  if (!$upgrade)
  {
    #launch local default browser to configure
    [Diagnostics.Process]::Start('http://localhost:8080') | Out-Null
  }
}
else
{
  Write-Warning 'SABnzbd service failed to start!'
  return
}

tools\chocolateyUninstall.ps1
$package = 'SABnzbd+'

function Get-CurrentDirectory
{
  $thisName = $MyInvocation.MyCommand.Name
  [IO.Path]::GetDirectoryName((Get-Content function:$thisName).File)
}

. (Join-Path (Get-CurrentDirectory) 'WaitForSuccess.ps1')

try
{
  # stop helper services if they're running
  Get-Service -Include SABnzbd, SABHelper |
    Stop-Service -Force

  Write-Host 'Removing Windows Firewall Exclusions'
  netsh advfirewall firewall delete rule name="SABnzbd+"

  $installPath = (Join-Path "${Env:\ProgramFiles(x86)}" 'sabnzbd'),
    (Join-Path 'Env:ProgramFiles' 'sabnzbd') |
    ? { Test-Path $_ } |
    Select -First 1

  $helper = 'SABnzbd-helper.exe'
  $service = 'SABnzbd-service.exe'

  # already installed, so must call remove on existing exes to be safe
  if ($installPath -ne $null)
  {
    Write-Host 'Removing SABnzbd+ services'
    $upgrade = $true
    $helper, $service |
      % {
        $path = Join-Path $installPath $_
        if (Test-Path $path) { &$path remove }
      }
  }

  # the above should completely remove existing services, but in case not
  'SABHelper', 'SABnzbd' |
    % { if (Get-Service -Include $_) { sc.exe delete $_ } }

  $uninstall = Join-Path $installPath 'Uninstall.exe'

  #uses NSIS installer - http://nsis.sourceforge.net/Docs/Chapter3.html
  $uninstallParams = @{
    PackageName = $package;
    FileType = 'exe';
    SilentArgs = '/S';
    File = $uninstall;
  }

  Uninstall-ChocolateyPackage @uninstallParams

  #remove file association to sabnzbd
  #http://stackoverflow.com/questions/323426/windows-command-line-non-evaluation-of-environment-variable
  Write-Host 'Removing SABnzbd+ NZB file associations'
  $nzbRunner = cmd /c ftype NZBFile
  if ($nzbRunner -match 'SABnzbd.exe')
  {
    cmd /c ftype NZBFile=
  }

  $uninstallComplete = {
    (Get-Process 'uninstall' -ErrorAction SilentlyContinue) -eq $null
  }
  if (WaitForSuccess $uninstallComplete 10 'uninstall to complete')
  {
    $installPath, (Join-Path $Env:LOCALAPPDATA 'sabnzbd') |
      % {
        $count = (Get-ChildItem $_ -Recurse -ErrorAction SilentlyContinue).Count
        if ($count -gt 0)
        {
          Write-Host "Remove remaining $count files from $_ manually"
        }
      }
  }

  Write-ChocolateySuccess $package
}
catch
{
  Write-ChocolateyFailure $package "$($_.Exception.Message)"
  throw
}
tools\WaitForSuccess.ps1
function WaitForSuccess([ScriptBlock] $script, [int]$seconds = 10,
  [string]$description = 'operation to complete')
{
  $skip = $false
  Write-Host "Waiting up to $($seconds)s for $description..."
  $result = 0..($seconds * 2) |
    % {
      if ($skip) { return $true }
      $status = &$script
      if ($status -eq $true)
      {
        $skip = $true
        return $true
      }
      else
      {
        Start-Sleep -Milliseconds 500
      }
      return $false
    } |
    Select -Last 1

  return $result
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
SABnzbd 3.5.0-RC4 7 Tuesday, January 18, 2022 Exempted
SABnzbd 3.5.0-RC3 7 Monday, January 17, 2022 Approved
SABnzbd 3.5.0-RC2 8 Thursday, January 13, 2022 Approved
SABnzbd 3.5.0-RC1 11 Sunday, January 9, 2022 Approved
SABnzbd 3.5.0-Beta3 15 Thursday, December 23, 2021 Approved
SABnzbd 3.5.0-Beta2 20 Tuesday, November 30, 2021 Exempted
SABnzbd 3.5.0-Beta1 24 Saturday, November 20, 2021 Exempted
SABnzbd 3.4.2-RC3 21 Friday, October 8, 2021 Approved
SABnzbd 3.4.2-RC2 22 Wednesday, October 6, 2021 Approved

Program

Package

  • Automatically built and uploaded by dtgm

This package has no dependencies.

Discussion for the SABnzbd+ Package

Ground Rules:

  • This discussion is only about SABnzbd+ and the SABnzbd+ package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or SABnzbd+, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus