def _api_change_script(name, output, kwargs):
 value = kwargs.get('value')
 value2 = kwargs.get('value2')
 if (value and value2):
  nzo_id = value
  script = value2
  if (script.lower() == 'none'):
   script = None
  result = NzbQueue.do.change_script(nzo_id, script)
  return report(output, keyword='status', data=bool((result > 0)))
 else:
  return report(output, _MSG_NO_VALUE)

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