Page 1 of 1

NZB optional attributes

Posted: May 29th, 2010, 2:38 am
by qwerty967
The bytes and number attributes of the segment element is optional according to the NZB DTD, but SABnzbd requires them.

Code: Select all

2010-05-29 00:15:35,823 WARNING: Invalid NZB file test.nzb, skipping (reason=int() argument must be a string or a number, not 'NoneType', line=0)

Re: NZB optional attributes

Posted: May 29th, 2010, 3:02 am
by shypike
Any self-respecting indexing site generates these attributes.
Where did you get the NZB from?

Re: NZB optional attributes

Posted: May 29th, 2010, 5:07 am
by qwerty967
shypike wrote:Any self-respecting indexing site generates these attributes.
Where did you get the NZB from?
From myself :D

It's okay. I just have to include a column for the size in my database. I'm learning SQL right now and building an index of NZB files for my first project.