Check-in [0a425cfb5d]
Overview
Comment: | Adapt urn_resolve() invocation. Most handlers update the dict in place. A few will return a new row however. (This can be utilized to return a copy, instead of changing station entries → menat for user "script stations" plugin.) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0a425cfb5d3e7f9d0974686e2a8c7b55 |
User & Date: | mario on 2016-12-17 11:01:22 |
Other Links: | manifest | tags |
Context
2016-12-17
| ||
11:14 | new plugin: script stations, for single-station extractiong/user scripts check-in: 8a77525fb0 user: mario tags: trunk | |
11:01 | Adapt urn_resolve() invocation. Most handlers update the dict in place. A few will return a new row however. (This can be utilized to return a copy, instead of changing station entries → menat for user "script stations" plugin.) check-in: 0a425cfb5d user: mario tags: trunk | |
10:52 | streema: fix search using right parameter (search= instead of cat=) check-in: 35e6840757 user: mario tags: trunk | |
Changes
Modified action.py from [476ab89429] to [078f11948a].
︙ | |||
155 156 157 158 159 160 161 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | - + - + + - + - | 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): |
︙ |
Modified channels/__init__.py from [55add89636] to [96d271c529].
︙ | |||
260 261 262 263 264 265 266 | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | + - + | # Currently selected entry in stations list, return complete data dict def row(self): row = self.stations() [ self.rowno() ] # resolve stream url for some plugins if row.get("url", "urn:x-streamtuner2:no").startswith("urn:"): self.status("Resolving actual stream URL for `%s`" % row["url"], timeout=2) # most urn: handlers update `row` - some return a new value - which is handled in action.run_fmt_url() however |
︙ |