def retrieve_settings():
 excluded_from_all = []
 grab_all = (True if (__addon__.getSetting('all') == 'true') else False)
 for key in SETS:
  if (grab_all and (key not in excluded_from_all)):
   SETS[key]['active'] = True
  else:
   SETS[key]['active'] = (True if (__addon__.getSetting(key) == 'true') else False)
 return ((sys.argv[1] == 'copy'), False)

def retrieve_settings ( ) : excluded_from_all = [ ] grab_all = ( True if ( __addon__ . getSetting ( 'all' ) == 'true' ) else False ) for key in SETS : if ( grab_all and ( key not in excluded_from_all ) ) : SETS [ key ] [ 'active' ] = True else : SETS [ key ] [ 'active' ] = ( True if ( __addon__ . getSetting ( key ) == 'true' ) else False ) return ( ( sys . argv [ 1 ] == 'copy' ) , False )
gets the settings from kodi and activates the relevant entries in sets .