def try_alt_nzb(nzo):
 url = nzo.nzo_info.get('failure')
 if (url and cfg.new_nzb_on_failure()):
  sabnzbd.add_url(url, nzo.pp, nzo.script, nzo.cat, nzo.priority)

def try_alt_nzb ( nzo ) : url = nzo . nzo_info . get ( 'failure' ) if ( url and cfg . new_nzb_on_failure ( ) ) : sabnzbd . add_url ( url , nzo . pp , nzo . script , nzo . cat , nzo . priority )
try to get a new nzb if available .