Page 1 of 1

par2 handling

Posted: July 3rd, 2010, 5:12 pm
by spadger
How does sabnzb handle par2 files, does it download them all or just the ones that it needs, discarding the rest from the queue?

Re: par2 handling

Posted: July 3rd, 2010, 5:25 pm
by inpheaux
It downloads the first or smallest par first, and puts all other pars in an as-needed queue. As soon as it finishes one it goes back to downloading rars normally and verifies their hashes as parts complete. Once everything completes we determine if the set passed our internal "quick check". If it fails, we run par2verify using that first par. If par2verify failed we go back to the par list, download however many blocks we need, and then run par2repair.