Skip to content

Instantly share code, notes, and snippets.

SABnzbd PAR2 Verification and Repair Explained

This document details the process SABnzbd uses to verify the integrity of downloaded files using PAR2 and repair them if necessary. PAR2 (Parchive 2) is crucial for Usenet downloads as it allows reconstruction of missing or corrupted data using redundancy files.

SABnzbd employs a multi-stage process involving internal checks and an external PAR2 command-line utility.

Phase 1: Parsing PAR2 Index Files (sabnzbd/par2file.py)

Before verification can begin, SABnzbd needs to understand the structure of the downloaded set according to the PAR2 index file (usually setname.par2). The function parse_par2_file handles this.

@ShivamB25
ShivamB25 / xrdp-nvidia-setup.sh
Last active April 6, 2024 09:53 — forked from Nexarian/xrdp-nvidia-setup.sh
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update