Small Python tool to sort an NZB file by subject (files) alphabetically. This comes in handy if you want to pipe the files in order as they come.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


nzbsort - unix-style nzb sorter

Sort your NZB files alphabetically before downloading them. This will allow you to stream/uncompress the files in the right order and possibly pipe the output to a media player.

This tool was designed to be simple and work with stdin/stdout. Here are a few examples, all doing the same thing:

$ nzbsort < original.nzb > output.nzb
$ nzbsort original.nzb > output.nzb
$ cat original.nzb | nzbsort > output.nzb

The output XML is ugly but hey, it's XML, news reader don't give a shit.