Internet radio browser GUI for music/video streams from various directory services.
⌈⌋⎇ branch:
streamtuner2
Check-in [3497339549]
Overview
Comment:
Add plugin defaults (for newly added options, but previously active modules)
in any case when starting with -D flag.
Save settings.json in json.dumps(sort_keys=True) mode.
Add default filters only once in GenericChannel.__init__
Allow preprocess_filter callbacks access to current channel object.
(Used by filter_bitrate to recognize .audioformat if row[format] is absent.)
check-in: ae2f48310a user: mario tags: trunk
Add plugin defaults (for newly added options, but previously active modules)
in any case when starting with -D flag.
Save settings.json in json.dumps(sort_keys=True) mode.
check-in: 3497339549 user: mario tags: trunk
def load_plugin_channels(self):# initialize plugin modules (pre-ordered)
ls = module_list()for name in ls:
gui_startup(4/20.0+13.5/20.0*float(ls.index(name))/len(ls),"loading module "+name)# load defaults on first startupifnot name in conf.plugins:# load defaults - on first startup - or with -D in any caseifnot name in conf.pluginsor conf.debug: conf.add_plugin_defaults(plugin_meta(module=name), name)# skip module if disabledif conf.plugins.get(name,1)==False:
log.STAT("disabled plugin:", name)continue# or if it's a built-in (already imported)