def _api_eval_sort(name, output, kwargs):
 import sabnzbd.tvsort
 name = kwargs.get('name', '')
 value = kwargs.get('value', '')
 title = kwargs.get('title')
 multipart = kwargs.get('movieextra', '')
 path = sabnzbd.tvsort.eval_sort(value, title, name, multipart)
 if (path is None):
  return report(output, _MSG_NOT_IMPLEMENTED)
 else:
  return report(output, keyword='result', data=path)

def _api_eval_sort ( name , output , kwargs ) : import sabnzbd . tvsort name = kwargs . get ( 'name' , '' ) value = kwargs . get ( 'value' , '' ) title = kwargs . get ( 'title' ) multipart = kwargs . get ( 'movieextra' , '' ) path = sabnzbd . tvsort . eval_sort ( value , title , name , multipart ) if ( path is None ) : return report ( output , _MSG_NOT_IMPLEMENTED ) else : return report ( output , keyword = 'result' , data = path )
api: evaluate sorting expression .