midgetspy/Sick-Beard — pull request #537 by thezoggy (2012-11-25 09:42:19+00:00)
Title: Newzbin code cleanup

* Updated provider to set the `maxage` off the users `usenet retention` value rather than always be 0 (unlimited)
* Use **urllib2** and handle errors a little more gracefully, cleaned up logging messages and made them unicode safe
* Retry a max of **5** times when Newzbin is throttling API request (5 nzb in 60 secs max)
* Handle an odd bug where sometimes randomly we will try and fetch a http not an http**S** url which resulted in SB not being able to parse the reportid and failing (still can not figure out where this bug is coming from)
* Increased the Newzbin cache from `1` min to `15` min so it matches the rest of the providers (majority use 15min, while the actual min is 10mins)