def _media_file_to_dict(mf, d):
 for fld in mf.readable_fields():
  if ('art' == fld):
   continue
  val = getattr(mf, fld)
  if (val is None):
   val = ''
  if _verify_var_type(val):
   d[('$' + fld)] = _as_str(val)

def _media_file_to_dict ( mf , d ) : for fld in mf . readable_fields ( ) : if ( 'art' == fld ) : continue val = getattr ( mf , fld ) if ( val is None ) : val = '' if _verify_var_type ( val ) : d [ ( '$' + fld ) ] = _as_str ( val )
populate dict with tags read from media file .