NZB optional attributes

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

NZB optional attributes

Post 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)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: NZB optional attributes

Post by shypike »

Any self-respecting indexing site generates these attributes.
Where did you get the NZB from?
qwerty967
Jr. Member
Jr. Member
Posts: 57
Joined: February 27th, 2008, 5:46 am

Re: NZB optional attributes

Post 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.
Post Reply