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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [b5753830fa]

Overview
Comment:Remove stale comment, fix whitespace issue
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b5753830facfd76be2c196d19471c0a467db09d2
User & Date: mario on 2016-12-27 21:20:32
Other Links: manifest | tags
Context
2016-12-27
21:21
set bitrate to integer 0 always ("n/a" won't work) check-in: 98ce646c0b user: Oliver tags: trunk
21:20
Remove stale comment, fix whitespace issue check-in: b5753830fa user: mario tags: trunk
2016-12-26
21:54
Implement search function for I-R, fix DOM extraction method. check-in: 4eccc8b70a user: mario tags: trunk
Changes

Modified action.py from [4e163fed55] to [a600e70b5c].

255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
    if add_default and cmd.find("%") < 0:
        cmd = cmd + " %pls"
        # "pls" as default requires no conversion for most channels, and seems broadly supported by players

    # Playlist type placeholders (%pls, %m3u, %xspf, etc.)
    for dest, rx in placeholder_map.items():
        rx = "(?<!%%)%s\\b" % rx
#        rx = '(?!"\a"|"\n")%s\\b' % rx
        if re.search(rx, cmd, re.X):
            # no conversion
            if conf.playlist_asis:
                url = row["url"]
            # e.g. from .m3u to .pls
            else:
                url = convert_playlist(row["url"], listfmt(source), listfmt(dest), local_file=True, row=row)







<







255
256
257
258
259
260
261

262
263
264
265
266
267
268
    if add_default and cmd.find("%") < 0:
        cmd = cmd + " %pls"
        # "pls" as default requires no conversion for most channels, and seems broadly supported by players

    # Playlist type placeholders (%pls, %m3u, %xspf, etc.)
    for dest, rx in placeholder_map.items():
        rx = "(?<!%%)%s\\b" % rx

        if re.search(rx, cmd, re.X):
            # no conversion
            if conf.playlist_asis:
                url = row["url"]
            # e.g. from .m3u to .pls
            else:
                url = convert_playlist(row["url"], listfmt(source), listfmt(dest), local_file=True, row=row)