ericflo/pynzb — Issue #1: issues pynzb library + useful extentions
Author: lrkj
Created: 2011-12-24 17:56:03+00:00
State: open

I've used this library to process thousands of NZB files.
These are additions and fixes I hacked together while using pynzb:
http://pastebin.com/JRC6GD8g
You have permission to use any of this code to improve pynzb.

In short:
* Not all NZBs are valid XML: a function that tries to fix it and parse again e.g. for some NZBs created by newsmangler
* function to grab the file name from the subject + effort to do it for non-standard subject lines too
* the date of a file wasn't time sensitive
* functions to build new NZB files (I used it to create NZBs with certain files)