def _api_change_opts(name, output, kwargs):
 value = kwargs.get('value')
 value2 = kwargs.get('value2')
 if (value and value2 and value2.isdigit()):
  result = NzbQueue.do.change_opts(value, int(value2))
 return report(output, keyword='status', data=bool((result > 0)))

def _api_change_opts ( name , output , kwargs ) : value = kwargs . get ( 'value' ) value2 = kwargs . get ( 'value2' ) if ( value and value2 and value2 . isdigit ( ) ) : result = NzbQueue . do . change_opts ( value , int ( value2 ) ) return report ( output , keyword = 'status' , data = bool ( ( result > 0 ) ) )
api: accepts output .