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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [369203acfe]

Overview
Comment:Fix integer handling in config dialog (once more). See also: ticket #4163057c37
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 369203acfe1d47b0d8ac790d31b4c8f5502c847c
User & Date: mario on 2020-05-13 06:42:33
Other Links: manifest | tags
Context
2020-05-13
06:44
radiobrowser: Initial transition to new Rust API and new server names. Added more configuration options, such as minimum count of stations per category (to hide fringe tags). check-in: ad370f17b0 user: mario tags: trunk
06:42
Fix integer handling in config dialog (once more). See also: ticket #4163057c37 check-in: 369203acfe user: mario tags: trunk
2020-05-12
18:24
Elevate liveradio.ie channel to default plugin. Introduce support for PyQuery extraction (HTML5 microdata). check-in: c75d34fd1e user: mario tags: trunk
Changes

Modified channels/configwin.py from [860639b8e3] to [d89524210f].

81
82
83
84
85
86
87



88
89

90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
81
82
83
84
85
86
87
88
89
90
91

92
93
94
95
96
97
98
99



100
101
102
103
104
105
106







+
+
+

-
+







-
-
-







            #log.CONF("config load", prefix+key, val, type(w))

    # Store gtk widget valus back into conf. dict
    def save_config(self, config, prefix="config_", save=0, widgets={}):
        for key,val in config.items():
            w = self.main.get_widget(prefix + key) or widgets.get(prefix + key)
            if w:
                # int
                if isinstance(w, gtk.SpinButton):
                    config[key] = int(w.get_value())
                # text
                if isinstance(w, gtk.Entry):
                elif isinstance(w, gtk.Entry):
                    config[key] = w.get_text()
                # pre-defined text
                elif isinstance(w, ComboBoxText):
                    config[key] = w.get_active_text()
                # boolean
                elif isinstance(w, gtk.CheckButton):
                    config[key] = w.get_active()
                # int
                elif isinstance(w, gtk.SpinButton):
                    config[key] = int(w.get_value(val))
                # dict
                elif isinstance(w, gtk.ListStore):
                    if key in config and isinstance(config[key], list):
                        config[key] = []
                        for row in w:
                            config[key].append([str(e) for e in row])
                    else: