Check-in [ae2f48310a]
Overview
Comment: | Add default filters only once in GenericChannel.__init__ Allow preprocess_filter callbacks access to current channel object. (Used by filter_bitrate to recognize .audioformat if row[format] is absent.) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ae2f48310aa69498c73e09f2a64fc7ff |
User & Date: | mario on 2015-05-12 22:18:54 |
Other Links: | manifest | tags |
Context
2015-05-13
| ||
00:00 | Move mime_fmt() into regular function. Fix live365 ahttp feedback= bug. Regroup functions and update a few comments in channels/__init__ check-in: 2335ea7a46 user: mario tags: trunk | |
2015-05-12
| ||
22:18 | Add default filters only once in GenericChannel.__init__ Allow preprocess_filter callbacks access to current channel object. (Used by filter_bitrate to recognize .audioformat if row[format] is absent.) check-in: ae2f48310a user: mario tags: trunk | |
22:17 | Add plugin defaults (for newly added options, but previously active modules) in any case when starting with -D flag. Save settings.json in json.dumps(sort_keys=True) mode. check-in: 3497339549 user: mario tags: trunk | |
Changes
Modified channels/__init__.py from [8b2d122cbc] to [51e13176b4].
︙ | |||
131 132 133 134 135 136 137 | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | + - - - - - - - + + + + + + + + | # add default options values to config.conf.* dict conf.add_plugin_defaults(self.meta, self.module) # Only if streamtuner2 is run in graphical mode if (parent): # Update/display stream processors if not self.prepare_filters: |
︙ | |||
302 303 304 305 306 307 308 | 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 | - + | new_streams = self.update_streams(category) # Postprocess new list of streams (e.g. assert existing title and url) if new_streams: try: new_streams = self.postprocess(new_streams) except Exception as e: |
︙ | |||
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | + - - + + - + + - + + - + | # Prepare stream list for display prepare_filters = [] def prepare(self, streams): for f in self.prepare_filters: map(f, streams) return streams # state icon: bookmark star, or deleted mark def prepare_filter_icons(self, row): if conf.show_bookmarks:# and "bookmarks" in self.parent.channels: row["favourite"] = self.parent.bookmarks.is_in(row.get("url", "file:///tmp/none")) if not row.get("state"): if row.get("favourite"): row["state"] = gtk.STOCK_ABOUT if row.get("deleted"): row["state"] = gtk.STOCK_DELETE |
︙ |
Modified channels/filter_bitrate.py from [123128ab48] to [1de3cdcb14].
1 2 3 | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - - + + - - - - + + + + - + - + - + - + + - - - - + + + + + - + - - + | # encoding: UTF-8 # api: streamtuner2 # title: Filter Bitrate |