pynzb icon indicating copy to clipboard operation
pynzb copied to clipboard

issues pynzb library + useful extentions

Open pyrescene opened this issue 13 years ago • 1 comments

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)

pyrescene avatar Dec 24 '11 17:12 pyrescene

Bummer, I just spent a good chunk of last night implementing NZB write functionality. Welcome to use my code as well:

base.py - http://pastebin.com/30uJ9kQA lxml_nzb.py - http://pastebin.com/ZCi9U5uT etree_nzb.py - http://pastebin.com/aSb4jnaw

rickatnight11 avatar Jan 31 '12 02:01 rickatnight11