Check-in [7bdd44a163]
Overview
| Comment: | bookmarks: save origin channel in `extra` field. (It's mostly unused, except for the Jamendo and timer plugins.) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
7bdd44a163a2ea1929cd2654bad7886a |
| User & Date: | mario on 2016-10-30 13:13:44 |
| Other Links: | manifest | tags |
Context
|
2016-10-31
| ||
| 14:31 | radio-browser.info: support for submitting stations check-in: 01c7c85d47 user: mario tags: trunk | |
|
2016-10-30
| ||
| 13:13 | bookmarks: save origin channel in `extra` field. (It's mostly unused, except for the Jamendo and timer plugins.) check-in: 7bdd44a163 user: mario tags: trunk | |
|
2016-10-28
| ||
| 23:40 | Updated HTML version of help/ check-in: 4293fd7db3 user: mario tags: trunk | |
Changes
Modified channels/bookmarks.py from [199659c7f2] to [d6be6027d1].
| ︙ | ︙ | |||
95 96 97 98 99 100 101 |
return str(url) in self.urls
# called from main window / menu / context menu,
# when bookmark is to be added for a selected stream entry
def add(self, row):
| | | | > > | | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
return str(url) in self.urls
# called from main window / menu / context menu,
# when bookmark is to be added for a selected stream entry
def add(self, row):
# Add / copy some row attributes
row["favourite"] = 1
if not row.get("favicon"):
pass# row["favicon"] = favicon.file(row.get("homepage"))
if not row.get("listformat"):
row["listformat"] = self.parent.channel().listformat
if not row.get("extra"):
row["extra"] = self.parent.channel().module
# append to storage
self.streams["favourite"].append(row)
self.save()
self.load(self.default)
self.urls.append(row["url"])
|
| ︙ | ︙ |