def _api_change_cat(name, output, kwargs):
 value = kwargs.get('value')
 value2 = kwargs.get('value2')
 if (value and value2):
  nzo_id = value
  cat = value2
  if (cat == 'None'):
   cat = None
  result = NzbQueue.do.change_cat(nzo_id, cat)
  return report(output, keyword='status', data=bool((result > 0)))
 else:
  return report(output, _MSG_NO_VALUE)

def _api_change_cat ( name , output , kwargs ) : value = kwargs . get ( 'value' ) value2 = kwargs . get ( 'value2' ) if ( value and value2 ) : nzo_id = value cat = value2 if ( cat == 'None' ) : cat = None result = NzbQueue . do . change_cat ( nzo_id , cat ) return report ( output , keyword = 'status' , data = bool ( ( result > 0 ) ) ) else : return report ( output , _MSG_NO_VALUE )
api: accepts output .