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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [5c941bcb6f]

Overview
Comment:Combine relative and local path searches for help pages / or chm lookup.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5c941bcb6fe008643ed2a9df328b50ef0d8499e3
User & Date: mario on 2016-11-19 13:15:27
Other Links: manifest | tags
Context
2016-11-19
13:15
-rc1 check-in: 544aa93056 user: mario tags: trunk
13:15
Combine relative and local path searches for help pages / or chm lookup. check-in: 5c941bcb6f user: mario tags: trunk
13:14
Document Dirble plugin status indicators check-in: 659381dd58 user: mario tags: trunk
Changes

Modified action.py from [904e423c83] to [e425666e38].

141
142
143
144
145
146
147
148
149
150
151
152
153
154
155

156
157
158
159
160
161
162
        cmd = cmd + " &"
    try:
        log.EXEC(cmd)
        os.system(cmd)
    except:
        log.ERR("Command not found:", cmd)

# Open help browser, streamtuner2 pages
def help(*args):
    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:"):







|

|
<
|
|
|
|
>







141
142
143
144
145
146
147
148
149
150

151
152
153
154
155
156
157
158
159
160
161
162
        cmd = cmd + " &"
    try:
        log.EXEC(cmd)
        os.system(cmd)
    except:
        log.ERR("Command not found:", cmd)

# Open help browser, chm, or streamtuner2 pages
def help(*args):
    for path in [p for p in ("./help", "/usr/share/doc/streamtuner2/help") if os.path.exists(p)]:

        if conf.windows:
            return run(("%s/help.chm" % path).replace("/", '\\'))
        else:
            return run("yelp %s" % path)
    return browser("http://fossil.include-once.org/streamtuner2/doc/tip/help/html/index.html")

# 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:"):