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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [1874107bb9]

Overview
Comment:Fixed VLC default path (Oliver), added quoting regexp.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1874107bb9b67bb07fcc094cd808f54764b5837b
User & Date: mario on 2016-12-02 20:36:57
Other Links: manifest | tags
Context
2016-12-02
20:37
timer: warning for invalid dates. check-in: 68349f8772 user: mario tags: trunk
20:36
Fixed VLC default path (Oliver), added quoting regexp. check-in: 1874107bb9 user: mario tags: trunk
2016-12-01
13:19
Fix help.chm lookup and default Windows paths. check-in: a88fe29963 user: mario tags: trunk
Changes

Modified config.py from [2f5daeee00] to [f1b8e36cc0].

178
179
180
181
182
183
184

185

186
187

188
189

190
191
192
193
194
195
196

197
198
199
200
201
202
203
178
179
180
181
182
183
184
185

186
187

188
189

190
191
192
193
194
195
196

197
198
199
200
201
202
203
204







+
-
+

-
+

-
+






-
+







        for bin in players[typ]:
            if find_executable(bin.split()[0]):
                return bin
        return default

    # Windows look for c:/program files/*/*.exe
    def find_player_win(self, typ="audio", default="wmplayer %asx", append=""):
        pf = os.environ["ProgramFiles"]
        base = [os.environ["ProgramFiles"], "c:\\windows", "c:\\program files", "c:\\windows\\internet explorer\\"]
        base = [pf, "c:\\windows", "c:\\program files", "c:\\windows\\internet explorer\\"]
        players = {
            "audio": ["\\VLC*\\vlc.exe", "wmplayer.exe %asx"],
            "audio": ["\\VideoLAN\\VLC*\\vlc.exe", "\\VLC*\\vlc.exe", "wmplayer.exe %asx"],
            "browser": ["\\Moz*\\firefox.exe", "iexplore.exe %url"],
            "xterm": ['/D "C:\\program files\\streamripper" streamripper.exe %srv']
            "xterm": ['/D "'+pf+'\\streamripper" streamripper.exe %srv']
        }
        typ = typ if typ in players else "audio"
        for bin in players[typ]:
            for b in base:
                fn = glob.glob(b + bin)
                if len(fn):
                    return fn[0] + append
                    return re.sub("^(.+?)(\s%\w+)?$", '"\\g<1>"\\g<2>', fn[0], 1) + append
        return players[typ][-1]
    
        
    # http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
    def xdg(self, path="/streamtuner2"):
        home = os.environ.get("HOME", self.tmp)
        config = os.environ.get("XDG_CONFIG_HOME", os.environ.get("APPDATA", home+"/.config"))