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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [5e6408e8c5]

Overview
Comment:Use sys.encoding for os.system calls on Windows
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5e6408e8c5fd02d4d761c22440a29b437527cc23
User & Date: Oliver on 2017-01-22 16:42:51
Other Links: manifest | tags
Context
2017-01-22
16:43
Add osxpkg; though unused check-in: 66781c2e9d user: mario tags: trunk
16:42
Use sys.encoding for os.system calls on Windows check-in: 5e6408e8c5 user: Oliver tags: trunk
2017-01-09
16:04
failed attempt to make config tables resizeable check-in: 83f54d5ffd user: mario tags: trunk
Changes

Modified action.py from [12a6d46476] to [1923204c8e].

1
2
3
4
5
6
7

8
9
10
11
12
13
14
1
2
3
4
5
6

7
8
9
10
11
12
13
14






-
+







# encoding: UTF-8
# api: streamtuner2
# type: functions
# category: io
# title: play/record actions
# description: Starts audio applications, guesses MIME types for URLs
# version: 1.2.0
# version: 1.2.1
# priority: core
#
# Multimedia interface for starting audio players, recording app,
# or web browser (listed as "url/http" association in players).
# It maps audio MIME types, and extracts/converts playlist types
# (PLS, M3U, XSPF, SMIL, JSPF, ASX, raw urls).
#
39
40
41
42
43
44
45

46
47
48
49
50
51
52
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53







+







import json
import subprocess, pipes
from datetime import datetime
from xml.sax.saxutils import escape as xmlentities, unescape as xmlunescape

import ahttp
from config import *
import sys


# Coupling to main window
#
main = None


133
134
135
136
137
138
139
140

141
142
143
144
145
146
147
134
135
136
137
138
139
140

141
142
143
144
145
146
147
148







-
+









# Exec wrapper
def run(cmd):
    if "cmd" in conf:
        cmd = conf.cmd % cmd
    elif conf.windows:
        cmd = "start " + cmd
        cmd = "start " + cmd.encode(sys.getfilesystemencoding())
    else:
        cmd = cmd + " &"
    try:
        log.EXEC(cmd)
        os.system(cmd)
    except:
        log.ERR("Command not found:", cmd)