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

⌈⌋ branch:  streamtuner2


Diff

Differences From Artifact [5e8b20930b]:

To Artifact [2f5daeee00]:


178
179
180
181
182
183
184
185

186
187
188
189



190
191
192
193
194
195
196
178
179
180
181
182
183
184

185
186



187
188
189
190
191
192
193
194
195
196







-
+

-
-
-
+
+
+






        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=""):
        base = [os.environ["ProgramFiles"], "c:/windows", "c:/program files", "c:/windows/internet explorer/"]
        base = [os.environ["ProgramFiles"], "c:\\windows", "c:\\program files", "c:\\windows\\internet explorer\\"]
        players = {
            "audio": ["/VLC*/vlc.exe", "wmplayer.exe %asx"],
            "browser": ["/Moz*/firefox.exe", "iexplore.exe %url"],
            "xterm": ['/D "C:/program files/streamripper" streamripper.exe %srv']
            "audio": ["\\VLC*\\vlc.exe", "wmplayer.exe %asx"],
            "browser": ["\\Moz*\\firefox.exe", "iexplore.exe %url"],
            "xterm": ['/D "C:\\program files\\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