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

⌈⌋ ⎇ branch:  streamtuner2


Diff

Differences From Artifact [b1adf3eb9a]:

To Artifact [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)]