Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Check-in [5020c93825]

Overview
Comment:Fix swapped boolean and integer options in set_plugin_defaults()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5020c93825a77f944ae29d7457e922e9a62157e8
User & Date: mario on 2015-05-23 15:45:50
Other Links: manifest | tags
Context
2015-05-23
15:46
Add a "keep all" web links option. check-in: 9f8cacb1dd user: mario tags: trunk
15:45
Fix swapped boolean and integer options in set_plugin_defaults() check-in: 5020c93825 user: mario tags: trunk
15:29
Support custom audio handlers for soundcloud etc. Example plugin to register them (only `soundcli` so far). check-in: 20f1c3edda user: mario tags: trunk
Changes

Modified pluginconf.py from [f129e17d25] to [91d1d3cd68].

475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495

    # Option defaults, if not yet defined
    for opt in meta.get("config", []):
        if "name" in opt and "value" in opt:
            if opt["name"] not in conf_options:
                # typemap "bool" and "int" here
                if opt["type"] in ("bool", "boolean"):
                    val = bool(opt["value"])
                elif opt["type"] in ("int", "integer", "numeric"):
                    val = opt["value"].lower() in ("1", "true", "yes", "on")
                else:
                    val = str(opt["value"])
                conf_options[opt["name"]] = val

    # Initial plugin activation status
    if module and module not in conf_plugins:
        conf_plugins[module] = meta.get("priority") in (
            "core", "builtin", "always", "default", "standard"
        )









|

|











475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495

    # Option defaults, if not yet defined
    for opt in meta.get("config", []):
        if "name" in opt and "value" in opt:
            if opt["name"] not in conf_options:
                # typemap "bool" and "int" here
                if opt["type"] in ("bool", "boolean"):
                    val = opt["value"].lower() in ("1", "true", "yes", "on")
                elif opt["type"] in ("int", "integer", "numeric"):
                    val = int(opt["value"])
                else:
                    val = str(opt["value"])
                conf_options[opt["name"]] = val

    # Initial plugin activation status
    if module and module not in conf_plugins:
        conf_plugins[module] = meta.get("priority") in (
            "core", "builtin", "always", "default", "standard"
        )