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

⌈⌋ branch:  streamtuner2


Diff

Differences From Artifact [cbdf5c690d]:

To Artifact [904e423c83]:


143
144
145
146
147
148
149
150
151
152
153






154
155
156
157
158
159
160
143
144
145
146
147
148
149




150
151
152
153
154
155
156
157
158
159
160
161
162







-
-
-
-
+
+
+
+
+
+






        log.EXEC(cmd)
        os.system(cmd)
    except:
        log.ERR("Command not found:", cmd)

# Open help browser, streamtuner2 pages
def help(*args):
    run([
       "yelp /usr/share/doc/streamtuner2/help/",
       r"\usr\share\doc\streamtuner2\help.chm"
    ][1 if conf.windows else 0])
    if not os.path.exists("/usr/share/doc/streamtuner2/help"):
        browser("http://fossil.include-once.org/streamtuner2/doc/tip/help/html/index.html")
    elif conf.windows:
        run(r"\usr\share\doc\streamtuner2\help.chm")
    else:
        run("yelp /usr/share/doc/streamtuner2/help/")

# Invokes player/recorder for stream url and format
def run_fmt_url(row={}, audioformat="audio/mpeg", source="pls", assoc={}, append=None, cmd=None, add_default=True):
    # look for specific "audio/type" or "urn:service:…" resolvers
    if audioformat in handler:
        handler[audioformat](row, audioformat, source, assoc)
    elif row.get("url", "").startswith("urn:"):