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

⌈⌋ branch:  streamtuner2


Check-in [da8eb157fd]

Overview
Comment:adapt for renamed pluginconf properties
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: da8eb157fda03b0750ed4672227b13cb918165ac
User & Date: mario on 2022-11-01 23:28:46
Other Links: manifest | tags
Context
2022-11-01
23:28
adapt for renamed pluginconf properties Leaf check-in: da8eb157fd user: mario tags: trunk
23:28
pluginconf 0.8 check-in: 379c7b875f user: mario tags: trunk
Changes

Modified channels/pluginmanager2.py from [b1adf3eb9a] to [0249f93e2e].

130
131
132
133
134
135
136
137

138

139
140
141
142
143
144
145
146
147
        
        # Clean up placeholders in vbox
        _ = [self.vbox.remove(c) for c in self.vbox.get_children()[3:]]
        
        # Attach available downloads after checking dependencies
        # e.g. newpl["depends"] = "streamtuner2 < 2.2.0, config >= 2.5"
        import pluginconf.depends
        dep = pluginconf.depends.DependencyValidation()

        dep.api = ["python", "streamtuner2"]

        for newpl in meta:
            if dep.valid(newpl, log.DEBUG_VALIDITY) and dep.depends(newpl, log.DEBUG_DEPENDS):
                self.add_plugin(newpl)
            else:
                log.DEBUG("plugin fails dependencies:", newpl)

        # Readd some filler labels
        _ = [self.add_(uikit.label("")) for i in range(1,3)]








|
>

>

|







130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
        
        # Clean up placeholders in vbox
        _ = [self.vbox.remove(c) for c in self.vbox.get_children()[3:]]
        
        # Attach available downloads after checking dependencies
        # e.g. newpl["depends"] = "streamtuner2 < 2.2.0, config >= 2.5"
        import pluginconf.depends
        dep = pluginconf.depends.Check()
        dep.system_deps = False
        dep.api = ["python", "streamtuner2"]
        #dep.log.debug = log.DEBUG_DEPENDS
        for newpl in meta:
            if dep.valid(newpl) and dep.depends(newpl):
                self.add_plugin(newpl)
            else:
                log.DEBUG("plugin fails dependencies:", newpl)

        # Readd some filler labels
        _ = [self.add_(uikit.label("")) for i in range(1,3)]

Modified config.py from [6e00d5e847] to [1a733ccd87].

411
412
413
414
415
416
417
418
419
420
421


# populate global conf instance
conf = ConfigDict()
log.PROC("ConfigDict() initialized")

# tie in pluginconf.*
pluginconf.log_ERR = log.ERR
pluginconf.module_base = "config"
pluginconf.plugin_base = ["channels", "plugins"]#, conf.share+"/channels", conf.dir+"/plugins"]








|
|


411
412
413
414
415
416
417
418
419
420
421


# populate global conf instance
conf = ConfigDict()
log.PROC("ConfigDict() initialized")

# tie in pluginconf.*
#pluginconf.log.error = log.ERR (don't really have to override it, just leave it uncolored)
pluginconf.data_root = "config"
pluginconf.plugin_base = ["channels", "plugins"]#, conf.share+"/channels", conf.dir+"/plugins"]

Modified dev/lsplug.py from [3d16a9cbc5] to [0d5d54e42e].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# encoding: UTF-8
# description: list available plugins for wiki

import os, re
from config import *
from base64 import b64decode
import pluginconf
pluginconf.module_base = "config"
pluginconf.plugin_base = ["channels", "contrib"]#, conf.share+"/channels", conf.dir+"/plugins"]

txt_p = """
### Channels

| Title | Ver | Type | Category | Subdir | Priority | Feat. | Description |
| ----- | --- | ---- | -------- | ------ | -------- | ----- | ----------- |







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# encoding: UTF-8
# description: list available plugins for wiki

import os, re
from config import *
from base64 import b64decode
import pluginconf
pluginconf.data_root = "config"
pluginconf.plugin_base = ["channels", "contrib"]#, conf.share+"/channels", conf.dir+"/plugins"]

txt_p = """
### Channels

| Title | Ver | Type | Category | Subdir | Priority | Feat. | Description |
| ----- | --- | ---- | -------- | ------ | -------- | ----- | ----------- |