def _analyse(fn, url):
 data = None
 if ((not fn) or (fn.code != 200)):
  logging.debug('No usable response from indexer, retry after 60 sec')
  if fn:
   msg = fn.msg
  else:
   msg = ''
  return (None, msg, True, 60, data)
 if ((not fn) or (fn.msg != 'OK')):
  logging.debug('Received nothing from indexer, retry after 60 sec')
  return (None, fn.msg, True, 60, data)
 if (('.oznzb.com' in url) and ('login?' in fn.url)):
  return (None, T('Unauthorized access'), False, 0, data)
 return (fn, fn.msg, False, 0, data)

def _analyse ( fn , url ) : data = None if ( ( not fn ) or ( fn . code != 200 ) ) : logging . debug ( 'No usable response from indexer, retry after 60 sec' ) if fn : msg = fn . msg else : msg = '' return ( None , msg , True , 60 , data ) if ( ( not fn ) or ( fn . msg != 'OK' ) ) : logging . debug ( 'Received nothing from indexer, retry after 60 sec' ) return ( None , fn . msg , True , 60 , data ) if ( ( '.oznzb.com' in url ) and ( 'login?' in fn . url ) ) : return ( None , T ( 'Unauthorized access' ) , False , 0 , data ) return ( fn , fn . msg , False , 0 , data )
analyze response of indexer returns fn|none .