Check-in [20f1c3edda]
Overview
Comment: | Support custom audio handlers for soundcloud etc. Example plugin to register them (only `soundcli` so far). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
20f1c3edda3c9bab09e079568b3e2865 |
User & Date: | mario on 2015-05-23 15:29:09 |
Other Links: | manifest | tags |
Context
2015-05-23
| ||
15:45 | Fix swapped boolean and integer options in set_plugin_defaults() check-in: 5020c93825 user: mario tags: trunk | |
15:29 | Support custom audio handlers for soundcloud etc. Example plugin to register them (only `soundcli` so far). check-in: 20f1c3edda user: mario tags: trunk | |
15:28 | Simplify favicon callbacks, use channel= instead of artifical pixstore= tuple. update_rows() itself extracts liststore and indicies now. Introduce `img_resize` channel option for `img` banner rescaling in favicon module. check-in: 867c9f9f94 user: mario tags: trunk | |
Changes
Added contrib/cfg_soundcloud.py version [1301f5ed6f].
|
Modified contrib/reddit.py from [2555b583aa] to [a3ed237dfe].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | - + - - + + + + + | # encoding: UTF-8 # api: streamtuner2 # title: redditβ± # description: Music recommendations from reddit /r/music and associated subreddits. |
︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | + | class reddit (ChannelPlugin): # control attributes has_search = False listformat = "srv" audioformat = "video/youtube" titles = dict(playing="submitter", listeners="votes", bitrate=False) img_resize = 24 # scale down reddit preview `img` artwork # just subreddit names to extract from categories = [ # static radio list "radioreddit π", # major subreddits |
︙ | |||
247 248 249 250 251 252 253 | 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | - - + + - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + | # find links in text posts text_urls = re.findall("\]\((https?://(?:www\.)?youtu[^\"\'\]\)]+)", row.get("selftext", "")) url_ext = (re.findall("\.(\w+)$", row["url"]) or [None])[0] listformat = "href" state = "gtk-media-play" |
︙ |