Diff
Differences From Artifact [a62aaaa5c0]:
- File channels/__init__.py — part of check-in [049c5a6edd] at 2016-11-06 18:51:20 on branch trunk — Add unichr() function alias for Python3. (user: mario, size: 31188) [annotate] [blame] [check-ins using]
To Artifact [55add89636]:
- File channels/__init__.py — part of check-in [4ebb6babed] at 2016-11-11 22:58:00 on branch trunk — Adapt GenericChannel to use state icon for multi-URL stations. Fix RadioSure slightly to use spaces instead of TABs for `url` lists. (user: mario, size: 31287) [annotate] [blame] [check-ins using]
| ︙ | |||
402 403 404 405 406 407 408 409 410 411 412 413 414 415 | 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 | + + |
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"))
# this should really go into bookmarks plugin itself,
# disadvantage: would decelerate processing loop further
if not row.get("state"):
if row.get("url", "").find(" ") > 0:
row["state"] = gtk.STOCK_UNINDENT
if row.get("favourite"):
row["state"] = gtk.STOCK_ABOUT
if row.get("deleted"):
row["state"] = gtk.STOCK_DELETE
# Stream list cleanup - invoked directly after reload(),
|
| ︙ |